Class CadRefEditRequest
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
AutoCAD 2021's Reference Edit dialog of REFEDIT, as data the command and the window share: the references the point picked reaches (Levels, each a block or an external reference with the path of its file), the one chosen, whether the objects to edit are all taken or asked for by point, and the three settings of its Settings tab: display of attribute definitions, unique layer and symbol names, and the lock on the objects outside the working set. The window fills it and sets IsAccepted on OK; the command then writes the settings to the document and opens the edit. With no window to show it, REFEDIT asks the same things on the command line, as -REFEDIT does.
public sealed class CadRefEditRequest
- Inheritance
-
CadRefEditRequest
- Inherited Members
Constructors
- CadRefEditRequest(CadDocument, IReadOnlyList<CadRefEditLevel>)
Makes the request of a document: the settings are those the document holds, the first reference chosen, every object taken.
Properties
- DisplayAttributeDefinitions
Gets or sets whether the attribute definitions of the block are in the working set (Display attribute definitions for editing).
- Document
Gets the document.
- IsAccepted
Gets or sets whether OK was pressed; false for Cancel, Esc and the close button.
- Levels
Gets the references the dialog lists, the outermost first.
- LockObjects
Gets or sets whether the objects outside the working set are locked (Lock objects not in working set).
- PromptForObjects
Gets or sets whether the objects to edit are asked for by point (Prompt to select nested objects); false takes every object (Automatically select all nested objects).
- Selected
Gets the reference chosen.
- SelectedIndex
Gets or sets which of Levels is chosen; the first, the reference picked, until set.
- UniqueNames
Gets or sets whether the layers of an external reference's objects take names of their own while they are edited (Enable unique layer and symbol names).
Methods
- Apply()
Writes the three settings to the document, as OK does; the edit then opens with them.
- HasAttributeDefinitionsAt(int)
Gets whether a reference of the list has attribute definitions, which the setting to display them is for.