Method SaveBlockAs
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SaveBlockAs(string)
Saves the content of the Block Editor as a new block, as BSAVEAS: the block opened is read back as it was opened or last saved, the new one holds the content as it is now with the base point, unit, description and flags of the block opened, and the editor goes on with the new block. The session stays one undo step.
public CadEditResult SaveBlockAs(string name)
Parameters
namestringThe name of the new block.
Returns
- CadEditResult
What came of it: refused where the editor is not open, a command's group of edits is open, the name is not one AutoCAD takes or a block of it exists already.
Exceptions
- ArgumentNullException
Thrown when the name is null.