CadSheetSetResources
from OpenCAD2D.SheetSets import CadSheetSetResources
class CadSheetSetResources(System.Object) ยท CadSheetSetResources in the .NET reference
What the Model Views tab reads of a resource location (a folder the set lists under Resources) and of the drawings in it, with no window and without changing a file: the drawings of a folder, and the named views of model space of one.
Methods
DrawingsIn
@staticmethod
def DrawingsIn(folder: str) -> System.Collections.Generic.IReadOnlyList[str]
Lists the drawings of a folder: the .dwg files in it and not those in the folders under it, as the Model Views tab shows them, in the order of their names (letters of either case alike first, then ordinal).
ModelViewsOf
@staticmethod
def ModelViewsOf(drawingFile: str) -> System.Collections.Generic.IReadOnlyList[CadModelView]
Reads the named views of model space of a drawing (those saved in a layout are left out), in the order of their names (letters of either case alike first, then ordinal). The drawing is read and not kept open.