Proper way to explode entity

Proper way to explode entity

SaddamShaikh77
Advocate Advocate
624 Views
1 Reply
Message 1 of 2

Proper way to explode entity

SaddamShaikh77
Advocate
Advocate

Hello forum,

I am trying to explode entities as per the following ways.
1. editor.command("EXPLODE",ent.id);

It did work for me when I was selecting entity manual from AutoCAD. But when I automated the process of selection it failed.

2. Then I tried document.SendStringToExecute("EXPLODE \n"+entobject+"\n",true,false,false);

It also failed for me.
3. Then I have tried,

(Entity)myObject.Explode(DB collection);

It worked for me.

Problem: The entity for explode is polyline. When I am exploding it manually I am getting set of 5 lines and same I am getting in approach 1. When I am using third approach for exploding the same entity(i.e polyline), I am getting 10 lines instead of 5 which is affecting my further work.

Please help me understand where I am making mistake. If is there any way to achieve this?

Thank you.

0 Likes
625 Views
1 Reply
Reply (1)
Message 2 of 2

Kent1Cooper
Consultant
Consultant

I'm not familiar with that kind of code.  There are several other Customization Forums for different programming languages, >here<, if one of those is for the one you're using.

Kent Cooper, AIA
0 Likes