Rotate and non-editable

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Sergi
Posts: 10
Joined: 09 Jan 2012, 13:00

Rotate and non-editable

Post by Sergi » 09 Jan 2012, 13:14

Hello ,

- How can I rotate a CADArc and a CADEllipse? (I've achived to rotate CADLWPolyline, CADSpline ....)

- How can I make a non-editable and non-moveable CADEntity? (Figure in background)

Thanks in advance.

Best regards.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: Rotate and non-editable

Post by support » 10 Jan 2012, 17:32

Hello.
CADArc geometry defined by its central point, radius and start/end angles. CADEllipse defined by its central point, radial point and minor to major axes ratio. Rotation around central point is simple - just recalculate StartAngle, EndAngle for an arc and RadPt for an ellipse. Rotation around some other point requires recalculation of Point property as well. Both entities are flat that means using Extrusion property to specify 3D orientation.

CAD Import .NET doesn't provide non-editable or non-moveable entities. You can realize such feature as conditional in your application. For example entity's Handle can be used.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply