alright, are you also an augi member? I posted same question over there to see what they could come up with, I could attach a file there.
what I meant by "wipeouts are set behind everything in my blocks" is this. Sometimes when I insert a block into a dwg that has a wipeout in it, the wipeout is brought to the front in the block reference. To fix this I have to either refedit the block and put the wipeout to the back, I used to do this with the ai_draworder command, not sure if it was available back in 2000i. or open it with the new blockeditor now and set it to the back with the new draworder command (not sure if there's any difference actually but they added it to the rightclick popup)
I have attempted everyway possible to fix this with out code but have gotten no where. it doesnt happen as much in 2007 but it still does occasionally.
The zorder may be a way but I dont know.
<but for now don't you have to add items to the sentityObj object before doing anything with them?>
thats what I thought this bit does:
'********
Dim ObjIds(0) As Long
ObjIds(0) = BlockEntity.ObjectID
'ObjIds(1) = leaderObj.ObjectID
Dim varObject As ACADObject
Set varObject = ThisDrawing.ObjectIdToObje
Dim arr(0) As ACADObject
Set arr(0) = varObject
'MsgBox arr(0).ObjectName
'Move the object to the bottom
sentityObj.MoveToBottom arr '**** I get an invalid input error here.
AcadApplication.Update
'***********
It works when I use this in another piece of code that inserts a block, creates a leader attaches the block to the leader then sets the leader behind the block. I'll put that code in the dwg I post too. But it doesnt work while I'm "inside" the block reference.
I'm probably going about this all wrong but it was worth a shot. Let me know if you can get on augi forums and I'll post a link, its free too, if you need another forum to subscribe too ;)
Main Topics
Browse All Topics





by: dragontoothPosted on 2006-09-14 at 13:42:01ID: 17524244
LOL no and I was looking hehe, the version I have is 2000i and after seaching the autodesk ng (I hang out there on occasion also as dragontooth don't post much because of the version - "they" are already on 2007) I find that I require at least 2005 for this. So if you can give me an explaination of "wipeouts are set behind everything in my blocks" I'll see what I can do. I "may" be able to get access. My understanding is you can run different versions side by side. Could you post a drawing with the information? There is a website around that Netminder and andother mod is sponsering but I don't know the link, otherwise e-mail is in profile.
I think you are talking about the "z" order, or the order in which each object was created in the block. One method could be to redefine the block or just rewrite it, in code it would be a lot faster but as you said really don't want to go there.
I'll look into it when I get home, but for now don't you have to add items to the sentityObj object before doing anything with them?
I'll post back when I know what I'm talking/doing LOL
dragontooth