Table of Contents

Class CadExtractionSettings

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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).

public sealed class CadExtractionSettings
Inheritance
CadExtractionSettings
Inherited Members

Remarks

The file is XML of the presenter's own, OpenCAD2DDataExtraction, not the .dxe AutoCAD writes, which is a serialised .NET object of AutoCAD's own assemblies that only AutoCAD reads; a .dxe of AutoCAD is not read here and the presenter's is not read by AutoCAD. The data link of a table made from a data extraction names the file by its connection string, as AutoCAD's names its own.

Properties

BlocksWithAttributesOnly

Gets or sets whether blocks without attributes are left out of the list ("Display blocks with attributes only").

ColumnNames

Gets the names the columns are renamed to, by the column's key (Count, Name or a property's key).

ColumnOrder

Gets or sets the order of the columns, by key; null for Count, Name and then the properties as chosen.

CombineIdenticalRows

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

Gets or sets which object types the wizard lists.

ExtractFromBlocks

Gets or sets whether objects inside blocks are extracted too ("Extract objects from blocks"); true as the wizard opens.

ExtractFromXrefs

Gets or sets whether objects inside external references are extracted ("Extract objects from xrefs"). Stored; an xref's own objects are not read.

Files

Gets the drawing files that are sources besides the current drawing, as full paths.

Filters

Gets the filters, all of which a row meets to be kept.

Folders

Gets the folders whose drawings are sources (DWG and DXF files), as full paths.

IncludeCurrentDrawing

Gets or sets whether the current drawing is a source of the extraction.

IncludeSubfolders

Gets or sets whether the drawings of the folders in Folders are searched in their subfolders too.

IncludeXrefsInCounts

Gets or sets whether external references count in block counts ("Include xrefs in block counts").

InsertTable

Gets or sets whether the extraction is inserted as a table in the drawing; true as the wizard opens.

ModelSpaceOnly

Gets or sets whether only the objects of model space are extracted ("Objects in model space") rather than every object of the drawing.

OutputFile

Gets or sets the output file, .xlsx, .csv or .txt (tab delimited).

OutputToFile

Gets or sets whether the extraction is written to a file.

SelectedHandles

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

Gets the properties extracted, by key (General/Layer), in the order of the columns; null for every property.

SelectedTypes

Gets the object types extracted, as the page lists them (Line, Circle, a block's name); null for every type.

ShowCount

Gets or sets whether the Count column is shown; true as the wizard opens.

ShowName

Gets or sets whether the Name column (the object's type or block name) is shown; true as the wizard opens.

Sorts

Gets the sorts, the first the main one.

TableStyle

Gets or sets the table style of the inserted table; empty for the current one.

Title

Gets or sets the title written in the first row of the table; empty for a title row of no words.

UnselectedCategories

Gets the categories left out of the property list (Category filter): Attribute, Drawing, General, Geometry, Misc, Dynamic Block.

UsePropertyNamesAsHeaders

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

Gets or sets whether only the types the drawing holds are listed ("Display objects currently in-use only").

Methods

Clone()

Gives the settings of the same values, a deep copy.

FromXml(string)

Reads the settings from their XML.

Load(string)

Reads a .dxe file of the presenter's.

Save(string)

Writes the settings as the presenter's .dxe file.

ToXml()

The settings as XML, the document of a .dxe file.