CADParam

  Examples > Access to Entities > Visual Basic > Types >

CADParam

Previous pageReturn to chapter overviewNext page

The CADParam type contains properties of all entities.

 

Syntax

 

Public Type CADParam

    hWnd As Long

    hDC As Long

    offset As POINTAPI

    ScaleFactor As Single

    DrawMode As Long

    CircleDrawMode As Long

    GetArcsCurves As Boolean

    IsInsideInsert As Long

    Thickness As Boolean   

End Type

 

 

Parameters

 

hWnd

Defines client's window handle.

hDC

Defines client's device context.

offset

Defines offset of the drawing area along OX and OY axis respectively to the top-left corner of the client's drawing box.

ScaleFactor

Defines the scale parameter.

DrawMode

Defines the way how lines with noncontinuous line type have to be drawn.

Value

Meaning

ID_DRAWINGSTYLE_DASHDOTS = 0

Lines will be drawn with the line type of source lines (read from the CAD file).

ID_DRAWINGSTYLE_WINAPI = 1

Lines will be drawn with equal WinAPI line type most similar to the one read from the CAD file.

ID_DRAWINGSTYLE_WINAPI = 2

Lines will be drawn with the solid type.

CircleDrawMode

Defines the way how circles, ellipses or arcs with noncontinuous line type have to be drawn.

Value

Meaning

 0

Circles, ellipses or arcs will be drawn with the type of source entities (read from the CAD file).

 1

Circles, ellipses or arcs will be drawn with equal WinAPI line type the most similar to the one read from the CAD file.

 2

Circles, ellipses or arcs will be drawn with the solid type.

GetArcsCurves

Defines the way how rotated circles, ellipses and arcs will be drawn.

Value

Meaning

 0

Rotated circles, ellipses and arcs will be drawn as polylines.

 1

Rotated circles, ellipses and arcs will be drawn by Windows API means (i.e. without taking into account rotating parameters).

Get more information in the description of the CADProhibitCurvesAsPoly function.

IsInsideInsert

Defines if the current entity belongs to the INSERT.

Value

Meaning

 0

Entity does not belong to the current INSERT.

 1

Entity belongs to the current INSERT.

Thickness

Defines thickness of the current entity.

 

 

See Also

CADData  | CADExtendedData  | CADPoint  | LOGFONT  | POINTAPI  | RECT   | RECTAPI  


© 2003-2024 CADSoftTools

 

Go to CAD DLL