Public Sub UmgrenzungenNeuErstellen()
Dim objEntity As AcadEntity
Dim SelSet1 As AcadSelectionSet
Set SelSet1 = ThisDrawing.SelectionSets.Add(clsTools.GenID("S1"))
SelSet1.SelectOnScreen
If SelSet1.Count = 0 Then
SelSet1.Delete
Exit Sub
End If
For Each objEntity In SelSet1
If objEntity.ObjectName = "AcDbHatch" Then
ThisDrawing.SendCommand ("_-hatchedit" & vbCr & "(handent " & Chr(34) & objEntity.Handle & Chr(34) & ")" & vbCr & "_b" & vbCr & "_p" & vbCr & "_n" & vbCr)
End If
Next
SelSet1.Delete
End Sub
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP