Class CadBlocks
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
What the block dialogs check and list as the block commands do: the names AutoCAD takes and the blocks a user names.
public static class CadBlocks
- Inheritance
-
CadBlocks
- Inherited Members
Methods
- IsName(string)
Gets whether AutoCAD takes a name for a block: 1 to 255 letters, none of <>/":;?*|,=` and no space at either end.
- IsTag(string)
Gets whether AutoCAD takes a tag for an attribute: one word, with no space.
- Named(DxfDatabase)
Gets the blocks of a drawing a user names, in ordinal order of their names, letters of either case alike first: no layout, no block AutoCAD names itself (*U1, *D2), no external reference.
- Rename(CadDocument, string, string)
Renames a block with every reference to it, as -RENAME Block does: each INSERT, dimension and table that draws it, its dynamic and attribute definitions with it. Refused for a block of a layout, an external reference or one AutoCAD names itself,
Cannot find block "X".; for a name AutoCAD does not take,Invalid block name.; and for the name of another block, letters of either case the same,Block "X" already exists.