Method Rename
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Rename(string, string)
Renames a configuration saved, as Rename on the Viewports dialog's Named Viewports tab does. One undo step.
public string Rename(string name, string newName)
Parameters
Returns
- string
Null where renamed, where the name is the same or where no configuration has the name; else what AutoCAD says: "Invalid viewport configuration name." for an empty name or one with any of < > / \ " : ; ? * | , = `, or "Viewport configuration "Plan" already exists.".