.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get collection object after explod a block

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
yaqiz
755 Views, 5 Replies

How to get collection object after explod a block

Hi All,

 

I would like explode a block which still maintain all sub blocks' XData

myBlockRef.ExplodeToOwnerSpace()

 The above code does the job. However I can not get the exploded collection

 

Use the following code I can get object collection but there is no XData for each sub block.

Dim colAssemblyEnt As DBObjectCollection = New DBObjectCollection()
 myBlockRef.Explode(colAssemblyEnt)

 

My question is how can I get the sub block collection with each block's XData?

 

Thanks

5 REPLIES 5
Message 2 of 6
yaqiz
in reply to: yaqiz

the exploded block also lost the child group

Message 3 of 6
hgasty1001
in reply to: yaqiz

Message 4 of 6
yaqiz
in reply to: hgasty1001

Thanks for your reply.

 

The block doesn't solve my problem.

Message 5 of 6
Virupaksha_aithal
in reply to: yaqiz

Hi,

 

check this blog post http://adndevblog.typepad.com/autocad/2012/05/getting-the-entities-created-from-explodetoownerspace-... . Though the blog is in C#, logic should help.

 

thanks

Virupaksha Aithak



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 6 of 6
yaqiz
in reply to: Virupaksha_aithal

Thanks

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost