Provides methods for loading a file and producing a set of CAD entities contained in the loaded file.
The following tables list the members exposed by the CADConverter type.
Public Constructors
| Name | Description | |
|---|---|---|
|
CADConverter | Initializes a new instance of the CADConverter class. |
Public Properties
| Name | Description | |
|---|---|---|
|
ActiveVPort | Gets or sets active CADVPort object |
|
AllArcsAsCurves | Gets or sets a value indicating how arcs are drawn. |
|
Angle | Gets or sets a current rotation angle of the active VPort. |
|
AutoInsert | Gets or sets a value indicating a way of processing CAD blocks. |
|
Block | Gets a block to be drawn at spesified layout. |
|
Blocks | Gets a collection of blocks contained in the loaded CAD file. |
|
CodePage | Gets or sets a number that identifies the encoding used in the loaded CAD file. |
|
DWGPROPS | A set of properties for an AutoCAD drawing |
|
DefaultLayoutIndex | Gets or sets an index of layout that will be shown after opening a CAD file. |
|
DimensionStyles | Gets a collection of styles used for drawing the dimensions in the loaded CAD file. |
|
Entities | Gets a collection of entities contained in the loaded CAD file. |
|
Extents | Gets or sets extents of the loaded CAD file. |
|
HasActiveVPort | Gets or sets a value idicating whether a loaded CAD file has an active VPort. |
|
HeadStruct | Gets or sets HeadVarStruct object containing settings of CAD file |
|
ImageDefs | Gets a collection of raster images contained in the loaded CAD file. |
|
Is3D | Checks whether a loaded CAD image is three-dimensional. |
|
IsCrossoverMatrix | Gets or sets a value indicating an orientation of the used coordinate system. |
|
IsHideWipeouts | Gets or sets a border visibility of all Wipeout objects in CAD file |
|
IsLoadImageDefs | Gets or sets a value indicating whether XRefs to be loaded while opening a CAD file. |
|
IsLoadXrefs | Gets or sets a value indicating whether XRefs to be loaded while opening a CAD file. |
|
LScale | Gets or sets a scale for all linetypes in the loaded CAD file. |
|
LTypes | Gets a collection of linetypes contained in the loaded CAD file. |
|
Layers | Gets a collection of layers contained in the loaded CAD file. |
|
Layouts | Gets a collection of layouts contained in the loaded CAD file. |
|
LayoutsCount | Gets a quantity of layouts contained in the loaded CAD file. |
|
Main | Gets a main section of the loaded CAD file. |
|
MaxHandle | Gets or sets a maximal handle of a primitive |
|
ModelLayout | Gets CADLayout object of model |
|
NumberOfPartsInCircle | Gets or sets a quantity of segments to be used to draw a circle. |
|
NumberOfPartsInSpline | Gets or sets a quantity of segments to be used to draw a spline. |
|
Params | Gets or sets parameters to be processed by the Iterate method. |
|
PointDisplayMode | Gets or sets a value indicating a mode of displaying the CADPoint entities in the loaded CAD file. |
|
SHXFonts | Gets a list of SHX fonts for the loaded CAD file. |
|
SHXSettings | Gets SHX fonts settings. |
|
Source | Gets or sets a path to the loaded file. |
|
Styles | Gets a collection of styles contained in the loaded CAD file. |
|
Tables | Gets a collection of tables contained in the loaded CAD file. |
|
VPort | Gets or sets a viewing direction for the ActiveVPort. |
|
VPorts | Gets a list of CADVPort objects contained in CAD file |
|
ViewPortCut | Gets a value indicating whether a loaded CAD file appears inside a viewport. |
|
XRefs | Gets a collection of external references contained in the loaded CAD file. |
Public Methods
| Name | Description | |
|---|---|---|
|
AddDrawingLayout | Creates a CADLayout with the specified name and adds this layout to the specified CAD image. |
|
AddLayout | Adds object of the CADLayout class. |
|
AddXRef | Creates a CADXRef object with the specified name and adds this external reference to the specified CAD image. |
|
AddXRefEx | Creates a CADXRef object with the specified name and adds this external reference to the specified CAD image. |
|
BlockByName | Searches blocks section and returns a CADBlock object with the specified name. |
|
CleaningLayouts | Deletes all empty instances of the CADLayout class with the exception of the Model_Space layout. |
|
DimensionStyleByName | Searches a dimension style with the specified name among the dimension styles from the loaded CAD file. |
|
Dispose | |
|
DoExtents | Sets extents of the CAD drawing. |
|
Equals | (Overloaded) (inherited from Object). |
|
GetArrowTypeByName | Searches a specified dimension arrow name in array |
|
GetCounts | Returns a number of elements in the specified section. |
|
GetDWGCodePage | Returns a number of codepage |
|
GetDWGVersion | Returns a version of DWG or DXF file |
|
GetHashCode | (inherited from Object). |
|
GetLayerNames | Adds the names of all layers from the loaded CAD file to the specified list. |
|
GetSection | Returns a group of objects corresponding to the specified type of CAD section. |
|
GetType | (inherited from Object). |
|
Initialize | Initializes a main section of the loaded CAD file. |
|
InitializeSections | This method makes necessary initializations for sections. Call it when creating CAD object manually. |
|
IntToColor | Converts an int value to the Color object. |
|
Iterate | Obsolete. |
|
LTypeByName | Returns a linetype with the specified name. |
|
LayerByName | Returns a layer with the specified name. |
|
LayoutByName | Searches layouts section and returns a CADLayout object with the specified name. |
|
LinesByName | Returns a description of linetype with the specified name. |
|
Loads | Loads the specified entity to the CADConverter. |
|
OnAfterRead | Raises a AfterReadEvent. |
|
OnBeforeRead | Raises a BeforeReadEvent. |
|
OnCreate | Raises an OnCreateEvent. |
|
OnInsert | Raises an OnInsertEvent. |
|
OnResolveXRef | Raises an OnResolveXRefEvent. |
|
OnViewPort | Raises an OnViewPortEvent. |
|
OnXRef | Raises an OnXRefEvent. |
|
ReferenceEquals | (inherited from Object). |
|
SetHandle | Sets a handle for a CADEntity object. |
|
SetSection | Sets a CADGroup object to the specified section type. |
|
SortEntities | Sorts CAD entities by their handles according to the CADSortEntsTable loaded from the CAD file. |
|
StyleByName | Returns a style with the specified name. |
|
StyleByPrimaryFont | Returns a style by PrimaryFont name. |
|
ToString | (inherited from Object). |
Public Events
| Name | Description | |
|---|---|---|
|
AfterReadEvent | Occurs after reading a DXF file. |
|
BeforeReadEvent | Occurs before reading a DXF file. |
|
OnCreateEvent | Occurs when an instance of each loaded CAD entity is created. |
|
OnInsertEvent | Occurs when an object of the CADInsert class or its descendants inserted into a CAD image. |
|
OnResolveXRefEvent | Occurs when xref filename not found. |
|
OnViewPortEvent | Occurs when loading a CADViewPort object into a CAD image is complete. |
See Also