Table of Contents

Class CadPropertyEditor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Sets a property of the selected entities from the Properties panel, as AutoCAD's palette does: the row's label and the text typed into it, the text written as Describe(CadDocument, CadSpace, IReadOnlyCollection<string>) shows it, so that what a row shows can be typed back. One call is one undo step.

public static class CadPropertyEditor
Inheritance
CadPropertyEditor
Inherited Members

Remarks

The rows that can be set: Color (ByLayer, ByBlock, Red to White, an index 1 to 255, or red, green and blue as 255,128,0), Layer (a layer of the drawing), Linetype (ByLayer, ByBlock or a linetype of the drawing), Linetype scale (above nought) and Lineweight (ByLayer, ByBlock, Default, or one of AutoCAD's widths in millimetres as 0.25 mm) of every entity; the ends of a line; the centre, radius, diameter and circumference of a circle; the centre, radius and the start and end angles (in degrees) of an arc; the contents, height, rotation (in degrees) and position of a text and of an MTEXT; the text override of a dimension, "<> TYP" showing 3000 TYP on a dimension of 3 000, an empty one its measurement and one of a single space, which is not trimmed as every other value is, no text at all, as AutoCAD reads it; the arrowhead of a multileader, one of Names (its block made as AutoCAD makes it on first use) or a block of the drawing as a user arrow; and the rows AutoCAD 2021 sets of a polyline, an ellipse, a hatch, a dimension (as overrides of its variables, the dimension drawn again), an MTEXT, a block reference and its attributes, a viewport and a multileader. Current vertex of a polyline is no edit: it sets CurrentVertex. With no entity selected, the first five set the drawing's current settings, which new entities take, and so does Transparency (ByLayer, ByBlock or the per cent 0 to 90, as CETRANSPARENCY takes it).

Methods

Set(CadDocument, IReadOnlyCollection<string>, string, string)

Sets one property of entities.