Represents a CAD drawing and provides methods for drawing all loaded CAD objects.
The following tables list the members exposed by the CADImage type.
Public Constructors
Public Properties
| Name | Description | |
|---|---|---|
|
AbsDepth | Gets an absolute depths of the CADImage. |
|
AbsHeight | Gets an absolute height of the CADImage. |
|
AbsWidth | Gets an absolute width of the CADImage. |
|
Angle | Gets or sets the angle for this CADImage object visualization. |
|
BackgroundColor | Gets or sets a background color of this CADImage. |
|
BorderSize | Gets or sets a border size in pixels. |
|
BorderType | Gets or sets a border type. |
|
CAD2DPainter | Provides 2D drawing functionality based. |
|
Center | Gets or sets CADImage center point. |
|
Charset | Gets or sets a character set for the text entities. |
|
CodePage | Gets or sets a number that identifies the encoding used in the loaded CAD file. |
|
Converter | Gets a converter that loads CAD entities from the file to draw them in the current CADImage. |
|
CurrentLayer | Gets or sets a current layer for the CADImage. |
|
CurrentLayout | Gets or sets a current layout for the CADImage. |
|
CurrentLayoutIndex | Gets an index of the current layout. |
|
CurrentMarker | Gets a currently selected marker. |
|
DefaultColor | Gets or sets a default color for the CADImage. |
|
DefaultLayoutIndex | Gets or sets a default layout index. |
|
DimensionsVisible | Gets or sets a value indicating whether dimensions on the drawing are visible. |
|
DrawMode | Gets or sets a current drawing mode. |
|
EnableSnap | Gets or sets enablement of snap mode |
|
Extents | Gets or sets an extents of the CADImage object. |
|
FileInf | Gets information about a currently open file by means of the FileInfo class. |
|
GDIPainter | Provides drawing functionality based on GDI+. |
|
GraphicsOutMode | Specifies image draw mode. |
|
InterpolationMode | Gets or sets the interpolation mode associated with current Graphics object |
|
Is3D | Gets a value indicating whether this CADImage is three-dimensional. |
|
IsDraw3DAxes | Gets or sets a value indicating whether 3D axes are shown on the drawing. |
|
IsDrawingRotated | Gets a value indicating whether the CADImage has been rotated. |
|
IsShowBackground | Gets or sets a value indicating using of a BackgroundColor. |
|
IsShowLineWeight | Gets or sets a value indicating whether a thickness of lines in the CADImage is determined by the file data. |
|
IsSnapObject | Gets a value, which shows if there is an object for snapping under current coordinates |
|
IsStopped | For internal use. |
|
IsWithoutBorder | Gest or sets a value indicating whether to draw the CADImage without borders. |
|
IsWithoutMargins | Gets or sets a value indicating whether to draw the CADImage without margins. |
|
LastLoadedFilePath | Specifying of the search directory (used for X-Refs, ImageEnt) |
|
LayersCount | Gets a quantity of layers in this CADImage. |
|
Layouts | Gets a collection of layouts in the current CADImage. |
|
LayoutsCount | Gets a quantity of layouts in this CADImage. |
|
LineScaled | Obsolete. Gets or sets a value indicating whether a width of lines to draw all entities in the drawing is specified by the file data. |
|
LineWeightScale | Gets or sets a scale for drawing lines. |
|
MMToPixelX | Gets or sets a value corresponding to amount of millimeters per one pixel. |
|
NavigateDrawMatrix | |
|
NullWidth | Gets or sets default thickness for lines used to draw a CADImage. |
|
NumberOfPartsInCircle | Gets or sets a quantity of segments to be used to draw a circle. |
|
Painter | Provides image drawing functionality. |
|
PrintDialog | Gets or sets print dialog |
|
PureExtents | Gets CADImage extents without margins. |
|
RecalcDotSingPts | Should be assigned to true to correct render linetypes with shapes or text. Set to true before rendering when create or change linetype with shape or text |
|
ResizeDisproportionateDrawing | For internal use |
|
SHXSearchPaths | Gets or sets paths for searching SHX fonts. |
|
SearchSHXPaths | Gets or sets a value specifying whether SHX paths will be searched for the fonts. |
|
SelectEntitiesCount | Gets the number of selected entities |
|
SelectedEntities | Gets or sets a list of selected entities |
|
SelectionMode | Gets or sets a state of the Selection tool. |
|
Selector | Provides selection functionality. |
|
SkipMMtoPixel | For specific use |
|
SnapCurrent | |
|
SnapOptions | Represents Snap options for the CADImage object |
|
SnapRealPoint | Gets a current point in absolute coordinates (drawing coordinates) |
|
SnapScreenPoint | Gets current point in display coordinates |
|
SnapSize | Gets or sets snap size |
|
TTFSmoothing | Gets or sets a value indicating whether TTF fonts are smoothed. |
|
TextVisible | Gets or sets a value indicating whether the texts in the CADImage are visible. |
|
UndoMode | Gets or sets whether undo/redo is disable or enable for professional version |
|
UseDoubleBuffering | Outdated. Does nothing |
|
UseLayerPriority | |
|
UseMultyTTFFonts | Gets or sets a value indicating whether a multimode is used for showing symbols. |
|
UseNullWidth | Specifies if default width will be used instead of entity width. |
|
UseSHXFonts | Specifies if SHX fonts will be used for visualization. |
|
UseTTFFonts | Specifies if TTF fonts will be used for visualization. |
|
UseWinEllipse | Gets or sets a value indicating whether arcs and circles in the CADImage are drawn with GDI+ drawing methods without linearization. |
Public Methods
| Name | Description | |
|---|---|---|
|
ActiveVPort | Returns drawing area visualized with the active VPort. |
|
AddScaledDXF | Adds a scaled external reference to the model space of the specified CAD image. |
|
AddScaledDXFEx | Adds a scaled external reference to the current layout of the specified CAD image. |
|
AddToUndoList | (Overloaded) Adds operation "create new Entity" to undo list |
|
ChangeDrawMode | Initializes a new graphic class object if current mode changed. |
|
ChangeEntities | |
|
ChangeGraphicsMode | Changes image drawing mode. |
|
ChangePositionSelectedEntities | Changes position of the selected entities |
|
ChangePositionSelectedEntity | Changes a position of the selected entity. |
|
ClearBuffer | Outdated. Does nothing |
|
ClearMarkers | Clears a collection of markers. |
|
ClearRedoCollection | Clears redo entity collection |
|
ClearSelectCollection | Clears a collection of the selected entities. |
|
ClearSelection | Clears a list of the selected entities. |
|
ClearSnapTrace | (Overloaded) Clears last drawn snap drawing element |
|
ClearUndoCollection | Clears undo entity collection |
|
CopyEntities | (Overloaded) Copies selected entities to the clipboard |
|
CorrectByGrid | (Overloaded) Reduces a point location on screen to the grid node when the grid is active |
|
CorrectByGridAndOrtho | Reduces a point relocation sizes on screen to the grid cell sizes when the grid is active |
|
CreateImageByExtension | Creates specialised CADImage object for specified file extention |
|
CutEntities | (Overloaded) Cuts selected entities from collection and paste them to the clipboard |
|
Dispose | Disposes a CADImage object. |
|
DoSelectEntities | (Overloaded) Selects inserted list of entities |
|
DoSelectEntity | Selects inserted entity |
|
Draw | (Overloaded) Draws a CADImage. |
|
DrawACISEntity | Draws ACISEntity object |
|
DrawChangeEntity | Changes a position of the marker designating the selected entity. |
|
DrawMoveEntityTrace | Draws entities on their offsetting |
|
DrawSnapTrace | Draws snap icon in case of proximity of object to current coordinates |
|
EmfConvertToDXF | (Overloaded) Converts emf file to dxf file |
|
Equals | (Overloaded) (inherited from Object). |
|
ExportClipToMetafile | Exports the part of a CAD drawing to Windows Enhanced metafile. |
|
ExportToMetafile | (Overloaded) Exports a CAD drawing to Windows Enhanced metafile. |
|
GetAbsPoint | Converts display coordinates into absolute coordinates of a design |
|
GetCADCoords | Returns coordinates of a point on the drawing. |
|
GetCenter | Returns the center point of a current layout |
|
GetExtents | Calculates the current dimensions of the CADImage. |
|
GetHashCode | (inherited from Object). |
|
GetLayerColor | Gets layer color by index |
|
GetLayerFreeze | Determines whether the layer (CADLayer) is frozen. |
|
GetLayerName | Gets a name of the layer that has the specified index in the collection of layers. |
|
GetLayerVisible | Determines whether a layer is visible |
|
GetLayoutName | Gets a name of the layout that has the specified index in the collection of layouts. |
|
GetPoint | Transforms a three-dimensional CAD point into a two-dimensional screen point. |
|
GetRealImageMatrix | |
|
GetRealImagePoint | For internal use. |
|
GetRealSnapPoint | Smooths a point in absolute coordinates by the entity |
|
GetSelectEntityRegion | Returns the selected area of the image. |
|
GetSnapObject | (Overloaded) |
|
GetType | (inherited from Object). |
|
GetVPortExtents | Returns extents of the active VPort reduced to the specified size |
|
InitialNewImage | (Overloaded) Initializes a new image with the default size |
|
InvalidateSelectEntity | Redraws a selected entity. |
|
InvalidateSelectedEntities | (Overloaded) Redraws a list of the selected entities |
|
LoadFromFile | Uses for redefining in a descendant classes, define loading image from the specified file. |
|
LoadFromStream | Loads a CAD image stored in the specified stream. |
|
LoadFromWeb | Loads CAD image from hyperlink |
|
MultipleSelect | Providing CAD image entities' multiple selection within a specified rectangle. |
|
MultipleSelectExt | Selects all entities inside the inserted rectangle |
|
PasteEntities | (Overloaded) Pastes entities from the clipboard |
|
PasteEntitiesExt | Pastes entities from the clipboard |
|
Prints a current CAD image. | |
|
RealScaleDouble | Gets the displaying scale of the image |
|
Redo | Redo change |
|
ReferenceEquals | (inherited from Object). |
|
RefreshCurrentLayout | Refresh current layout. |
|
RefreshSnapTrace | Refreshes a region of the last drawn snap drawing element |
|
RemoveEntity | (Overloaded) Removes CADEntity object. |
|
ResetViewMatrix | |
|
RotDefault | Rotates the drawing to the default view. |
|
RotToView | Rotates a CAD image to get a specified view. |
|
Rotate | Rotates objects in the current drawing. |
|
SaveAsDXF | Saves a current CAD image in DXF format. |
|
SaveImageToClipboard | (Overloaded) |
|
SaveToFile | (Overloaded) Saves a part of the current CAD image to the file of the specified format. |
|
SaveToStream | (Overloaded) Writes a visible part of the current CAD image to the specified stream as a raster image. |
|
Select | Selects an entity of the CAD image at the specified point. |
|
SelectExt | Selects an entity of the CAD image at the specified point. |
|
SetCenter | Sets CADImage center point. |
|
SetCurrentLayout | Sets a current layout of this CADImage. |
|
SetDrawMatrix | |
|
SetLayerColor | (Overloaded) Sets a color for layer (CADLayer) specified by index |
|
SetLayerFreeze | (Overloaded) Sets freeze parameter for CADLayer |
|
SetLayerVisible | (Overloaded) Sets a visibility of the layer. |
|
SetNewEntityMarkerPos | Sets a new position for the selected entity. The entity's new position is defined by the position of the marker. |
|
SetNewMMToPixel | Sets a quantity of millimeters per pixel for the specified Graphics object. |
|
SetNewPosEntitiesExt | Sets a new position for the specified entities |
|
SetNewPosEntity | Sets a new position for the specified entity. |
|
Stop | For internal use. |
|
ToString | (inherited from Object). |
|
Undo | Undo change |
Public Events
| Name | Description | |
|---|---|---|
|
AfterRotate | |
|
BeforeRotate | |
|
CurrentLayoutChanged | |
|
DrawMatrixChanged |
Fields
| Name | Description | |
|---|---|---|
|
EntityBuffer | Represents buffer for CADEntityCollection storing. |
|
visibleArea | Represents CADImage visible area. |
See Also