Method RemoveOverrides
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
RemoveOverrides(CadDocument, IEnumerable<string>, string)
Takes out every override of layers, in one viewport or in all, as the Layer manager's "Remove Viewport Overrides for": nothing where they have none.
public static CadEditResult RemoveOverrides(CadDocument document, IEnumerable<string> layers, string viewport)
Parameters
documentCadDocumentThe document.
layersIEnumerable<string>The names of the layers.
viewportstringThe handle of the viewport; null for every viewport.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document or the names are null.