.NET

.NET

Reply
Valued Contributor
86 Posts
1 Kudo
Registered: ‎07-14-2010
Post 1 of 6
Accepted Solution

How to get collection object after explod a block

346 Views, 5 Replies
05-16-2012 03:58 AM

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

Hi,

 

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

 

thanks

Virupaksha Aithak

Valued Contributor
86 Posts
1 Kudo
Registered: ‎07-14-2010
Post 2 of 6

Re: How to get collection object after explod a block

05-16-2012 06:04 AM in reply to: yaqiz

the exploded block also lost the child group

Distinguished Mentor
582 Posts
91 Kudos
Registered: ‎04-11-2010
Post 3 of 6

Re: How to get collection object after explod a block

05-16-2012 11:12 AM in reply to: yaqiz
Valued Contributor
86 Posts
1 Kudo
Registered: ‎07-14-2010
Post 4 of 6

Re: How to get collection object after explod a block

05-17-2012 01:01 AM in reply to: gasty1001

Thanks for your reply.

 

The block doesn't solve my problem.

ADN Support Specialist
102 Posts
26 Kudos
Registered: ‎06-15-2011
Post 5 of 6

Re: How to get collection object after explod a block

05-17-2012 01:31 AM 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

Valued Contributor
86 Posts
1 Kudo
Registered: ‎07-14-2010
Post 6 of 6

Re: How to get collection object after explod a block

05-17-2012 03:19 AM in reply to: Virupaksha.aithal

Thanks

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!