Habs schon Danke!
Sub MoveObj_to_Bottom(ObjectACAD)
'Get an extension dictionary and, if necessary, add a SortentsTable object
Dim arrx(0) As AcadObject
Dim ObjIds(1) As Long
Dim sentityObj As Object
Dim eDictionary As Object
Set eDictionary = ThisDrawing.Modelspace.GetExtensionDictionary
On Error Resume Next
sentityObj = Nothing
Set sentityObj = eDictionary.GetObject("ACAD_SORTENTS")
On Error GoTo 0
If sentityObj Is Nothing Then
'If Err <> 0 Then
' No SortentsTable object, so add one
Set sentityObj = eDictionary.AddObject("ACAD_SORTENTS", "AcDbSortentsTable")
End If
On Error GoTo 0
ObjIds(0) = ObjectACAD.ObjectID 'plineObj.ObjectID
Dim varObject As AcadObject
Set varObject = ThisDrawing.ObjectIdToObject(ObjIds(0))
Set arrx(0) = ObjectACAD 'varObject
'Move the Object to the bottom
sentityObj.MoveToBottom arrx
AcadApplication.Update
Err.Clear
End Sub
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP