Page 1 of 1

Alternative to Block Editor

Posted: 14 Sep 2016, 20:46
by rtec
HI,
Since CADEditorControl do not have block editing capabilities, I want to convert all inserts in cadimage into appropriate cadentities and create a new cad image from these entities so that
user can select individual entities instead of selected whole insert.

Is there any way to convert all inserts in the cad image to individual entities instead of calling
CADConst.DoScale2D(ref cadItirate) on each cadEntity and manually converting each vertex
cadItirate.matrix.PtXMat(cadPoint.Point);



Thanks
Ravi

Re: Alternative to Block Editor

Posted: 14 Sep 2016, 21:18
by support
Hello Ravi,

If you are looking for a ready-to-use method such as "CADImage.ExplodeAllInserts", let me disappoint you - there is no such method. As a CAD developer, you are entrusted with the task of implementing similar routines.


Mikhail

Re: Alternative to Block Editor

Posted: 14 Sep 2016, 22:04
by rtec
Hello Mikhail,
Thanks for your reply.
So you mean I need to follow your import example to iterate through each entity and convert each vertex of the entity manually.
Just curious since you have to do all these calculations during drawing anyway, why not expose those routines so that developers don't need to do it manually.

Thanks
Ravi