Method Rename
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Rename(CadDocument, string, string)
Renames a style with the multileaders drawn in it, as -RENAME multileadeRstyle does: the entry of the dictionary ACAD_MLEADERSTYLE takes the new name, which the multileaders follow since they point at the style by its handle, and the current style (CMLEADERSTYLE) names it where it was the one renamed. Standard keeps its name.
public static CadEditResult Rename(CadDocument document, string name, string newName)
Parameters
documentCadDocumentThe document.
namestringThe style's name, letters of either case the same.
newNamestringThe new name.
Returns
- CadEditResult
What came of it; the name it has already is done with nothing written.
Exceptions
- ArgumentNullException
Thrown when the document is null.