Proper way to explode entity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.