Method OpenRefEdit
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
OpenRefEdit(IReadOnlyList<string>, IReadOnlyList<string>)
Opens the in-place edit of a reference, as REFEDIT: the objects of its block copied into the drawing where the reference draws them, the working set. One undo step while the session lasts. The objects the reference's placing cannot hold (a circle under a scale unlike along its axes) are left in the block.
public CadEditResult OpenRefEdit(IReadOnlyList<string> chain, IReadOnlyList<string> objects)
Parameters
chainIReadOnlyList<string>The handles of the references: the one in a space first, then, to edit a nested reference, each reference nested in the block of the one before it, as FindRefEditLevels(string, GeoPoint2?, double) gives them.
objectsIReadOnlyList<string>The handles of the objects of the block to take, as "Prompt to select nested objects" does; null takes every object, as "Automatically select all nested objects" does.
Returns
- CadEditResult
What came of it: refused where an edit is open already, the Block Editor is, a command's group of edits is, the chain names no reference, or the block is an external reference, anonymous (a dynamic block's, a dimension's), an array or has no object to edit.
Exceptions
- ArgumentNullException
Thrown when the chain is null.