How to get collection object after explod a block

How to get collection object after explod a block

Anonymous
Not applicable
1,047 Views
5 Replies
Message 1 of 6

How to get collection object after explod a block

Anonymous
Not applicable

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

0 Likes
Accepted solutions (1)
1,048 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

the exploded block also lost the child group

0 Likes
Message 3 of 6

hgasty1001
Advisor
Advisor
0 Likes
Message 4 of 6

Anonymous
Not applicable

Thanks for your reply.

 

The block doesn't solve my problem.

0 Likes
Message 5 of 6

Virupaksha_aithal
Autodesk Support
Autodesk Support
Accepted solution

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

0 Likes
Message 6 of 6

Anonymous
Not applicable

Thanks

0 Likes