Page 1 of 1

Rotate and non-editable

Posted: 09 Jan 2012, 13:14
by Sergi
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.

Re: Rotate and non-editable

Posted: 10 Jan 2012, 17:32
by support
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.