CadExtractionSettings
from OpenCAD2D import CadExtractionSettings
class CadExtractionSettings(System.Object) ยท CadExtractionSettings in the .NET reference
The settings of a data extraction, as the Data Extraction wizard collects them and a .dxe file keeps them: the data source (the current drawing, with the objects selected or all of them, and other drawing files and folders), the object types and properties chosen, how the rows are refined (identical rows combined, the Count and Name columns, sorts, filters, columns renamed) and where the data goes (a table in the drawing, a file of .xlsx, .csv or .txt).
Constructors
__init__
def __init__(self) -> None
Properties and fields
BlocksWithAttributesOnly
@property
def BlocksWithAttributesOnly(self) -> bool
@BlocksWithAttributesOnly.setter
def BlocksWithAttributesOnly(self, value: bool) -> None
Gets or sets whether blocks without attributes are left out of the list ("Display blocks with attributes only").
ColumnNames
@property
def ColumnNames(self) -> System.Collections.Generic.Dictionary[str, str]
Gets the names the columns are renamed to, by the column's key (Count, Name or a property's key).
ColumnOrder
@property
def ColumnOrder(self) -> System.Collections.Generic.List[str] | None
@ColumnOrder.setter
def ColumnOrder(self, value: System.Collections.Generic.List[str] | None) -> None
Gets or sets the order of the columns, by key; null for Count, Name and then the properties as chosen.
CombineIdenticalRows
@property
def CombineIdenticalRows(self) -> bool
@CombineIdenticalRows.setter
def CombineIdenticalRows(self, value: bool) -> None
Gets or sets whether rows alike are made one with the number of them in Count ("Combine identical rows"); true as the wizard opens.
Display
@property
def Display(self) -> CadExtractionDisplay
@Display.setter
def Display(self, value: CadExtractionDisplay) -> None
Gets or sets which object types the wizard lists.
ExtractFromBlocks
@property
def ExtractFromBlocks(self) -> bool
@ExtractFromBlocks.setter
def ExtractFromBlocks(self, value: bool) -> None
Gets or sets whether objects inside blocks are extracted too ("Extract objects from blocks"); true as the wizard opens.
ExtractFromXrefs
@property
def ExtractFromXrefs(self) -> bool
@ExtractFromXrefs.setter
def ExtractFromXrefs(self, value: bool) -> None
Gets or sets whether objects inside external references are extracted ("Extract objects from xrefs"). Stored; an xref's own objects are not read.
Files
@property
def Files(self) -> System.Collections.Generic.List[str]
Gets the drawing files that are sources besides the current drawing, as full paths.
Filters
@property
def Filters(self) -> System.Collections.Generic.List[CadExtractionFilter]
Gets the filters, all of which a row meets to be kept.
Folders
@property
def Folders(self) -> System.Collections.Generic.List[str]
Gets the folders whose drawings are sources (DWG and DXF files), as full paths.
IncludeCurrentDrawing
@property
def IncludeCurrentDrawing(self) -> bool
@IncludeCurrentDrawing.setter
def IncludeCurrentDrawing(self, value: bool) -> None
Gets or sets whether the current drawing is a source of the extraction.
IncludeSubfolders
@property
def IncludeSubfolders(self) -> bool
@IncludeSubfolders.setter
def IncludeSubfolders(self, value: bool) -> None
Gets or sets whether the drawings of the folders in CadExtractionSettings.Folders are searched in their subfolders too.
IncludeXrefsInCounts
@property
def IncludeXrefsInCounts(self) -> bool
@IncludeXrefsInCounts.setter
def IncludeXrefsInCounts(self, value: bool) -> None
Gets or sets whether external references count in block counts ("Include xrefs in block counts").
InsertTable
@property
def InsertTable(self) -> bool
@InsertTable.setter
def InsertTable(self, value: bool) -> None
Gets or sets whether the extraction is inserted as a table in the drawing; true as the wizard opens.
ModelSpaceOnly
@property
def ModelSpaceOnly(self) -> bool
@ModelSpaceOnly.setter
def ModelSpaceOnly(self, value: bool) -> None
Gets or sets whether only the objects of model space are extracted ("Objects in model space") rather than every object of the drawing.
OutputFile
@property
def OutputFile(self) -> str
@OutputFile.setter
def OutputFile(self, value: str | None) -> None
Gets or sets the output file, .xlsx, .csv or .txt (tab delimited).
OutputToFile
@property
def OutputToFile(self) -> bool
@OutputToFile.setter
def OutputToFile(self, value: bool) -> None
Gets or sets whether the extraction is written to a file.
SelectedHandles
@property
def SelectedHandles(self) -> System.Collections.Generic.List[str] | None
@SelectedHandles.setter
def SelectedHandles(self, value: System.Collections.Generic.List[str] | None) -> None
Gets the handles of the objects of the current drawing that are extracted, as "Select objects in the current drawing" takes them; null for every object of the drawing.
SelectedProperties
@property
def SelectedProperties(self) -> System.Collections.Generic.List[str] | None
@SelectedProperties.setter
def SelectedProperties(self, value: System.Collections.Generic.List[str] | None) -> None
Gets the properties extracted, by key (General/Layer), in the order of the columns; null for every property.
SelectedTypes
@property
def SelectedTypes(self) -> System.Collections.Generic.List[str] | None
@SelectedTypes.setter
def SelectedTypes(self, value: System.Collections.Generic.List[str] | None) -> None
Gets the object types extracted, as the page lists them (Line, Circle, a block's name); null for every type.
ShowCount
@property
def ShowCount(self) -> bool
@ShowCount.setter
def ShowCount(self, value: bool) -> None
Gets or sets whether the Count column is shown; true as the wizard opens.
ShowName
@property
def ShowName(self) -> bool
@ShowName.setter
def ShowName(self, value: bool) -> None
Gets or sets whether the Name column (the object's type or block name) is shown; true as the wizard opens.
Sorts
@property
def Sorts(self) -> System.Collections.Generic.List[CadExtractionSort]
Gets the sorts, the first the main one.
TableStyle
@property
def TableStyle(self) -> str
@TableStyle.setter
def TableStyle(self, value: str | None) -> None
Gets or sets the table style of the inserted table; empty for the current one.
Title
@property
def Title(self) -> str
@Title.setter
def Title(self, value: str | None) -> None
Gets or sets the title written in the first row of the table; empty for a title row of no words.
UnselectedCategories
@property
def UnselectedCategories(self) -> System.Collections.Generic.List[str]
Gets the categories left out of the property list (Category filter): Attribute, Drawing, General, Geometry, Misc, Dynamic Block.
UsePropertyNamesAsHeaders
@property
def UsePropertyNamesAsHeaders(self) -> bool
@UsePropertyNamesAsHeaders.setter
def UsePropertyNamesAsHeaders(self, value: bool) -> None
Gets or sets whether a column renamed is headed with its new name and the property's name under it ("Use property names as additional column headers").
UsedOnly
@property
def UsedOnly(self) -> bool
@UsedOnly.setter
def UsedOnly(self, value: bool) -> None
Gets or sets whether only the types the drawing holds are listed ("Display objects currently in-use only").
Methods
Clone
def Clone(self) -> CadExtractionSettings
Gives the settings of the same values, a deep copy.
FromXml
@staticmethod
def FromXml(xml: str) -> CadExtractionSettings
Reads the settings from their XML.
Load
@staticmethod
def Load(path: str) -> CadExtractionSettings
Reads a .dxe file of the presenter's.
Save
def Save(self, path: str) -> None
Writes the settings as the presenter's .dxe file.
ToXml
def ToXml(self) -> Any
The settings as XML, the document of a .dxe file.