Method ResetBlock
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ResetBlock(CadDocument, IReadOnlyCollection<string>)
Puts every dynamic property of the dynamic INSERTs among entities back to the block's own, as AutoCAD's RESETBLOCK: each INSERT places its dynamic block again (ResetBlock()), keeping its place, scale and attributes. One undo step.
public static CadEditResult ResetBlock(CadDocument document, IReadOnlyCollection<string> handles)
Parameters
documentCadDocumentThe document.
handlesIReadOnlyCollection<string>The handles of the entities; those that are not INSERTs of a dynamic block are passed over.
Returns
- CadEditResult
What came of it: done with a record of each INSERT reset, none where none was; refused for an INSERT on a locked layer.
Exceptions
- ArgumentNullException
Thrown when the document or the handles are null.