ARX explode command

ARX explode command

Anonymous
Not applicable
565 Views
1 Reply
Message 1 of 2

ARX explode command

Anonymous
Not applicable
Hi all!

I'm trying to make a tangram game on autocad. The pieces are block with
polyline. But, to check if the pieces are in intersection, I can't use the
intersectWith function because my pieces are blocks. I'm trying to explode
polylines in each block to be able to use the intersectWith function.

Does anybody have an example of the explode function?

Thanks
David Mercier, student
(Québec, Canada)
0 Likes
566 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi David!

the explode()-method gives you an AcDbVoidPtrArray wherein the expolded
entities are.

one thing you can do, is to expolde the blockreference that gives you the
entities. these entities aren't yet in the ModelSpace. Now make the
blockreference invisible and add the entities to ModelSpace.
Now you can do your operations with the entities defined in the Blockrecord.
when your ready, erase the entites out of the database and make the
blockreference visible.

hope this helps!

Steffen Lips

"David Mercier" schrieb im Newsbeitrag
news:[email protected]...
> Hi all!
>
> I'm trying to make a tangram game on autocad. The pieces are block with
> polyline. But, to check if the pieces are in intersection, I can't use the
> intersectWith function because my pieces are blocks. I'm trying to explode
> polylines in each block to be able to use the intersectWith function.
>
> Does anybody have an example of the explode function?
>
> Thanks
> David Mercier, student
> (Québec, Canada)
>
>
0 Likes