I get a VBA Error
Run-time error '-2145386493 (80200003)
Invalid Input
and either way I run the code I get this error on this line..
sentityObj.MoveToBottom arr
I will say that it does work on all wipeout objects NOT in the block for the entire drawing. I added the drawing and changed the extension from Block-Fix.dwg to Block-Fix.jpg. So :) you will need to change it back if you would like to see the drawing I am testing with. I am doing this in Civil 3D 2008 and not Autocad 2008 but for this purpose I can not see that being any part of the issue.
Thank you for the response as well.
Main Topics
Browse All Topics





by: robberbaronPosted on 2008-02-19 at 02:28:27ID: 20927056
1/ what error do you get ? .com/threa d.jspa?thr eadID=5375 96
ct(ents.Ob jectID)
2/ I guess you are using the code from http://discussion.autodesk
3/ You are trying to order the entities within a block. I would suspect that this is not possible without redefining the block. Surely draworder is set within the block. You may be able to do an inplace edit for the block ? But dont want to do this for 4 copies of the same block just placed at different locations which is a likely scenario for using wipeouts.
4/
I dont understand why you are using
Set arr(0) = ThisDrawing.ObjectIdToObje
rather than
set arr(0)=ents
doesnt this get the object that has a nominated ID, yet you get that id from the object ?