Page 1 of 1
Add polylines in container
Posted: 26 Oct 2018, 23:29
by coo5hda
Hello
I need to add 4 polylines in the same container and if the person selects them all move together not separately
Re: Add polylines in container
Posted: 26 Oct 2018, 23:41
by support
Hello,
You can use a CADBlock object as the container for polylines and place the block instance (CADInsert) on the Model layout to allow the user to move the polylines.
Mikhail
Re: Add polylines in container
Posted: 29 Oct 2018, 15:45
by coo5hda
support wrote: ↑26 Oct 2018, 23:41
Hello,
You can use a CADBlock object as the container for polylines and place the block instance (CADInsert) on the Model layout to allow the user to move the polylines.
Mikhail
Could you help me with an example?
Re: Add polylines in container
Posted: 29 Oct 2018, 17:58
by support
Hello,
Code example which creates a new CADBlock and CADInsert objects can be found in the AddEntities demo project: look at the AddInsert() method in Form1.cs. To add the polylines (CADPolyLine or CADLWPolyLine) into a block, you should use a CADBlock.AddEntity() method.
Mikhail