.NET

Reply
Valued Contributor
yaqiz
Posts: 86
Registered: ‎07-14-2010
Message 1 of 6 (252 Views)
Accepted Solution

How to get collection object after explod a block

252 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

Valued Contributor
yaqiz
Posts: 86
Registered: ‎07-14-2010
Message 2 of 6 (246 Views)

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

Valued Mentor
Posts: 381
Registered: ‎04-11-2010
Message 3 of 6 (236 Views)

Re: How to get collection object after explod a block

05-16-2012 11:12 AM in reply to: yaqiz
Valued Contributor
yaqiz
Posts: 86
Registered: ‎07-14-2010
Message 4 of 6 (215 Views)

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
Virupaksha.aithal
Posts: 85
Registered: ‎06-15-2011
Message 5 of 6 (212 Views)

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
yaqiz
Posts: 86
Registered: ‎07-14-2010
Message 6 of 6 (204 Views)

Re: How to get collection object after explod a block

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

Thanks

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community