Table of Contents

Class vdConst

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

Contains many constant values that are used in the vdWebLibrary.

Access this object directly with his name vdConst from anywhere in your page without the need to create an instance of it, because it is a global object of the library.

public class vdConst
Inheritance
vdConst
Inherited Members

Fields

ACTION_DISPLAY_DEFAULT

Sets the fill color of the drawn entities of the action to the action's default fillcolor.

ACTION_DISPLAY_USECROSSCOLOR

Sets the fill color of the drawn entities of the action to the action's crossfillcolor. By default, the crossfillcolor is used when a rectangle's low point is to the right of its high point.

ACTION_DISPLAY_USEFILLCOLOR

Sets the fill color of the drawn entities of the action to the action's fillcolor.

ACTION_LINE_WORLD

Designates a GetUserLine(onStateChangedDelegate) action.

ACTION_POINT_WORLD

Designates a GetUserPoint(onStateChangedDelegate) action.

ACTION_RECT_VIEW

Designates a GetUserRect(onStateChangedDelegate) action.

ActionHighLightColor

Array of red,green,blue,alpha color used when action select an entity

AttributesMode_Normal

The global Attributes display mode is Normal.

AttributesMode_Off

The global Attributes display mode is Off.

AttributesMode_On

The global Attributes display mode is On.

BlockColorOper_Block

Entity inside a block with PenColor Bylayer that belongs on Layer 0 , will finaly get the color of the block instance and not the color of the block's layer.

BlockColorOper_Layer

Entity inside a block with PenColor Bylayer that belongs on Layer 0 , will finaly get the color of the layer of the block instance that belongs.

BlockStdLayerOper_BlockColor

Used by vdrawObj.GetDocument().BlockStdLayerOper property Entity inside a block that belongs on Layer 0 and with PenColor set Bylayer , will finally get the PenColor of the block instance and not the PenColor of the block's layer.

BlockStdLayerOper_BlockLineType

Used by vdrawObj.GetDocument().BlockStdLayerOper property Entity inside a block that belongs on Layer 0 and with LineType set Bylayer , will finally get the LineType of the block instance and not the LineType of the block's layer.

BlockStdLayerOper_BlockLineWeight

Used by vdrawObj.GetDocument().BlockStdLayerOper property Entity inside a block that belongs on Layer 0 and with LineWeight set Bylayer , will finally get the LineWeight of the block instance and not the LineWeight of the block's layer.

BlockStdLayerOper_Layer

Used by vdrawObj.GetDocument().BlockStdLayerOper property Entity inside a block that belongs on Layer 0 and with PenColor , LineType ,LineWeight set Bylayer , will finally get the PenColor , LineType ,LineWeight of the layer of the block instance that belongs.

COLOR_BYLAYER

The layer's color is used.

DEFAULT_MOUSE_ACTION_ALL

Defines all the actions are enabled. DEFAULT_ZOOMSCALE + DEFAULT_SCROLL + DEFAULT_ZOOMEXTENTS + DEFAULT_ROTATE3D

DEFAULT_MOUSE_ACTION_NONE

Defines no default mouse action

DEFAULT_ROTATE3D

Defines the default rotate 3d action.By default it is done by holding down the middle mouse wheel and moving the mouse pointer over the vdraw screen

DEFAULT_SCROLL

Defines the default scroll action.Usually by holding down the mouse button and moving the mouse pointer over the vdraw screen

DEFAULT_ZOOMEXTENTS

Defines the default zoomextents action.By default it is done by dblclick on the vdraw screen

DEFAULT_ZOOMSCALE

Defines the default zoomscale action.Usually by scrolling the middle mouse wheel button.

Err_LoadFile

The error code that indicates that an error was caused while attempting to open a file.

FillModeDoubleHatch

A double line hatch pattern.

FillModeHatchBDiagonal

A diagonal hatch pattern.

FillModeHatchCross

A cross hatch pattern.

FillModeHatchDiagCross

A diagonal cross hatch pattern.

FillModeHatchFDiagonal

A diagonal hatch pattern.

FillModeHatchHorizontal

A horizontal hatch pattern.

FillModeHatchVertical

A vertical hatch pattern.

FillModeNone

No fill hatch pattern.

FillModeSingleHatch

A single line hatch pattern.

FillModeSolid

A solid color hatch pattern.

GRIPMODE_AUTO

Used by SelectMode. Set the mode to auto so the grips are automatically selected by vdraw control when the user click over the entity.

GRIPMODE_AUTO_WINDOW_SELECT

Used by SelectMode. Set the mode to auto so the grips are automatically selected by vdraw control and when there is no entity above the mouse click, a window crossing is active. So the entities that have grip, the grips of these entities will be disabled and all the selected entities had no grips the grips will be enabled to them.

GRIPMODE_SINGLE

Used by SelectMode. Set the mode to GRIPMODE_AUTO and GRIPMODE_SINGLE so the grips are automatically selected by vdraw control but only one entity of the document can have grips.

GRIPMODE_USER

Used by SelectMode. Set the mode to user so the grips are not automatically selected by vdraw control

GridStyle_Cross

Used by GridStyle property of a layout object.

GridStyle_Dot

Used by GridStyle property of a layout object.

GridStyle_Solid

Used by GridStyle property of a layout object.

InfinityTypes_Ray

Infinity line set to Ray.

InfinityTypes_XLine

Infinity line set to XLine.

InsUnitAngstroms

Unit with no scale factor 1.0e-10 to meters.

InsUnitAstronomical_Units

Unit with no scale factor 149.597871e+9 to meters.

InsUnitCentimeters

Unit with no scale factor 0.01 to meters.

InsUnitDecimeters

Unit with no scale factor 0.1 to meters.

InsUnitDekameters

Unit with no scale factor 10 to meters.

InsUnitFeet

Unit with no scale factor 0.3048 to meters.

InsUnitGigameters

Unit with no scale factor 1.0e+10 to meters.

InsUnitHectometers

Unit with no scale factor 100 to meters.

InsUnitInches

Unit with no scale factor 0.0254 to meters.

InsUnitKilometers

Unit with no scale factor 1000 to meters.

InsUnitLight_Years

Unit with no scale factor 9.460730e+15 to meters.

InsUnitMeters

Unit with no scale factor 1 to meters.

InsUnitMicroinches

Unit with no scale factor 25.4e-9 to meters.

InsUnitMicrons

Unit with no scale factor 1.0e-6 to meters.

InsUnitMiles

Unit with no scale factor 1609.3440 to meters.

InsUnitMillimeters

Unit with no scale factor 0.001 to meters.

InsUnitMils

Unit with no scale factor 25.4e-6 to meters.

InsUnitNanometers

Unit with no scale factor 1.0e-9 to meters.

InsUnitParsecs

Unit with no scale factor 3.0856776e+16 to meters.

InsUnitUnspecified

Unit with no scale factor.

InsUnitYards

Unit with no scale factor 0.9144 to meters.

InterpolationMode_Bilinear

When a material is applied, Bilinear interpolation is used. Check SetImageInterpolationMode(int)

InterpolationMode_Nearest

When a material is applied, no interpolation is used. Check SetImageInterpolationMode(int)

LINETYPE_FLAG_Dot

A dotted linetype.

LINETYPE_FLAG_SHX_TEXT

A line type defined by SHX text. For more information check LineTypeSegment.Flag in the VDF.chm help file.

LINETYPE_FLAG_TTF_TEXT

A line type defined by TTF text. For more information check LineTypeSegment.Flag in the VDF.chm help file.

LW_BYBLOCK

The block's line weight is used.

LW_BYLAYER

The layers line weight is used.

LW_DOCUMENTDEFAULT

The document's default line weight is used. The value from vdrawObj.GetDocument().LineWeight

LineTypeDrawMethod_Center

The linetype is centered to the length of the segment. For more information check the vdLineType.DrawMethod property in the VDF.chm help file.

LineTypeDrawMethod_Start

Using this value the linetype starts from the beginning of the segment and continues similar to the end. For more information check the vdLineType.DrawMethod property in the VDF.chm help file.

MERGEFLAGS_BINDXREF

It is used by AddBlockFromFile(string, string, bool, vdLoadXrefDelegate, string, int) method then Externarefence Block is binding to the destination document by adding all the source document model entities and table depends objects.

MERGEFLAGS_DEFAULT

It is used by MergeDocument(string, MergeDocumentFinshedDelegate, int, string) method and define that the entities handles which exist on basic drawing are NOT replaced with merged document entities.

MERGEFLAGS_KEEP_BOTH

It is used by MergeDocument(string, MergeDocumentFinshedDelegate, int, string) method and define that the entities handles which exist on basic drawing and merged document are added with a new handle.

MERGEFLAGS_KEEP_EXISITING

It is used by MergeDocument(string, MergeDocumentFinshedDelegate, int, string) method and define that the entities handles which exist on basic drawing are NOT replaced with merged document entities.

MERGEFLAGS_REPLACE_EXISITING

It is used by MergeDocument(string, MergeDocumentFinshedDelegate, int, string) method and define that the entities handles which exist on basic drawing are replaced with merged document entities.

MERGEFLAGS_USEDESTEXISTINGTABLES

It is used by MergeDocument(string, MergeDocumentFinshedDelegate, int, string) or AddBlockFromFile(string, string, bool, vdLoadXrefDelegate, string, int) methods

if table names exist on destination document then uses them

if it is not used and table names exist on destination then new table object added by adding the source document filename as prefix

MouseLeftButton

Left mouse button.

MouseMiddleButton

Middle mouse button.

MouseRightButton

Right mouse button.

NUMSECTIONS

Get/Set the maximun enabled section clip used .Valid range 0 - 5.Default value is 2

OsnapMaxItems

Get/Set the maximun return osnaps at cursor position.Default value is 100

OsnapMaxSegmentsCheck

Get/Set the maximun faces used by a polyface that used to scan for Osnap points.

Default value is 1500

Large values ​​affect osnap action performance

OsnapMode_ALL

All osnaps are activated exept OsnapMode_APPINT and OsnapMode_APPEXT.

OsnapMode_APPEXT

The extension osnap is activated, snapping on the intersection between two extensions of line and arc segments.

OsnapMode_APPINT

The intersection osnap is activated, snapping on the intersection between line and arc segments.

OsnapMode_CEN

The centerpoint osnap is activated, snapping on the center of circles and ellipses

OsnapMode_DISABLE

Disable the osnap selection.

OsnapMode_END

The endpoint osnap is activated, snapping on the end points of edges, lines etc.

OsnapMode_EXTENSION

The extension osnap is activated.

When cursor is over a line or arc segment this segment is marked and you can get the extension for this segment.

When the cursor is over an already marked segment the segment is un-marked and you can not get the extension for this segment

OsnapMode_INS

The insertion osnap is activated, snapping on the insertion point of rects, images and texts.

OsnapMode_MID

The midpoint osnap is activated, snapping in the middle of edges, lines etc.

OsnapMode_NEA

The nearest osnap is activated, snapping on a point where an object resides, nearest to the cursor.

OsnapMode_NEA_PIX

The nearest osnap is activated, snapping on a point where a pixel is drawn for an entity.

OsnapMode_NODE

The node osnap is activated, snapping on vdpoint objects.

OsnapMode_NONE

No osnaps are activated.

OsnapMode_PER

The perpendicular osnap is activated, snapping on the perpendicular point of lines and arcs.

OsnapMode_QUA

The quadratic osnap is activated, snappint on the four quadrants of a circle.

PLineDrawFlags_Default

Draw polyline widths using the vdrawobj.GetDocument().PLineDrawFlag value

PLineDrawFlags_SolidWidths

Draw polyline widths as solid filled.

PLineDrawFlags_WireWidths

The polyline widths are not filled.

PRINT_SCALE_FLAG_FIT

The entities inside the print window will be scaled appropriately in order to fit inside the paper used.

PRINT_SCALE_FLAG_ORIGINAL

The entities inside the print window will be printed without scaling. Their layout on the paper will be defined by the printer's properties.

PRINT_WINDOW_FLAG_EXTENTS

All the entities of the document will be included in the print window.

PRINT_WINDOW_FLAG_ORIGINAL

The print window set from the .net vdraw control when the document was exported will be used.

PRINT_WINDOW_FLAG_VIEW

The entities visible from the user will be included in the print window. What the user sees will be set for printing.

RENDERMODE_HIDE

same as RENDERMODE_SHADE_ON with solid fill regions draw using background color

RENDERMODE_RENDER

While in this render mode, all solid entities are drawn properly with the addition of Material Images.

RENDERMODE_RENDER_GL

While in this render mode, all polyface and 3dFace entities are drawn with their solid colors or materials using WebGL engine.

RENDERMODE_RENDER_GL_ON

same as RENDERMODE_RENDER_GL with draw edge lines around solid fill regions using vdcanvas.GetDocument().GlobalRenderProperties.EdgeColor as R,G,B,A array

Edge lines are draw using 1 pixel width

RENDERMODE_RENDER_ON

same as RENDERMODE_RENDER with draw edge lines around solid fill regions using vdcanvas.GetDocument().GlobalRenderProperties.EdgeColor as R,G,B,A array

Edges are draw only if WebGLisActive() is true EnableWebGL(bool)

Edge lines are draw using 1 pixel width

RENDERMODE_SHADE

While in this render mode, all solid entities are drawn properly, but no Material Images are applied (except in Hatches).

RENDERMODE_SHADE_GL

While in this render mode, all polyface and 3dFace entities are drawn with their solid colors using WebGL engine with out apply materials.

RENDERMODE_SHADE_GL_ON

same as RENDERMODE_SHADE_GL with draw edge lines around solid fill regions using vdcanvas.GetDocument().GlobalRenderProperties.EdgeColor as R,G,B,A array

Edge lines are draw using 1 pixel width

RENDERMODE_SHADE_ON

same as RENDERMODE_SHADE with draw edge lines around solid fill regions using vdcanvas.GetDocument().GlobalRenderProperties.EdgeColor as R,G,B,A array

Edges are draw only if WebGLisActive() is true EnableWebGL(bool)

Edge lines are draw using 1 pixel width

RENDERMODE_WIRE_2d

Similar to the vdraw Wire2D render mode. When this is activated, the user is restrained in a 2D display of a drawing, all solid entities are drawn as lines, Hatches and Images are drawn normally, cannot perfom a 3Drotate action), also, section clips are not applied.

RENDERMODE_WIRE_3d

Similar to the RENDERMODE_WIRE_2d. Differences include 3Drotate action, section clips etc.

RotateModelOrigin_Default

Used by RotateModelOrigin

The user 3d model rotation is done around the first pick point on the screen

RotateModelOrigin_MIDEXTENTS

Used by RotateModelOrigin

The user 3d model rotation is done around the center of the entities bounding box

SelectionMode_Auto

Used by CommandSelectionMode

SelectionMode_Fence

Used by CommandSelectionMode

SelectionMode_Single

Used by CommandSelectionMode

SelectionMode_Window

Used by CommandSelectionMode

SelectionMode_WindowAuto

Used by CommandSelectionMode

SelectionMode_WindowCross

Used by CommandSelectionMode

SelectionSort_DEFAULT

Used by SelectionSort for sorted selection depend on the render mode

In wire 2d render mode sorted by the draw order

In 3d render modes sorted depend on the depth distance from the eye view

SelectionSort_NONE

Used by SelectionSort for no sorted selection

SplineFlagCONTROLPOINTS

Set the vdSpline object to the controlpoints mode.

SplineFlagFITTING

Set the vdSpline object to the fitting mode.

SplineFlagQUADRATIC

Set the vdSpline object to the quadratic mode.

SplineFlagSTANDARD

Set the vdSpline object to the standard mode (simple polyline without bulges).

StdView_BACK

Model displayed from the back; Used with SetStdView(int)

StdView_BOTTOM

Model displayed from the bottm; Used with SetStdView(int)

StdView_FRONT

Model displayed from the front; Used with SetStdView(int)

StdView_ISO_NE

Model displayed from a northeast direction; Used with SetStdView(int)

StdView_ISO_NW

Model displayed from a northwest direction; Used with SetStdView(int)

StdView_ISO_SE

Model displayed from a southeast direction; Used with SetStdView(int)

StdView_ISO_SW

Model displayed from a southwest direction; Used with SetStdView(int)

StdView_LEFT

Model displayed from the left; Used with SetStdView(int)

StdView_RIGHT

Model displayed from the right; Used with SetStdView(int)

StdView_TOP

Model displayed from the top; Used with SetStdView(int)

TextLineFlags_CenterLine

Draws the text with a line through it. See also vdText.TextLine property in VDF.chm.

TextLineFlags_None

Draws the text without any additional lines. See also vdText.TextLine property in VDF.chm.

TextLineFlags_OverLine

Draws the text with a line over it. See also vdText.TextLine property in VDF.chm.

TextLineFlags_UnderLine

Draws the text with a line under it. See also vdText.TextLine property in VDF.chm.

TransparencyMethod_ByBlock

The block's transparency mode is used;

TransparencyMethod_ByLayer

The layer's transparency mode is used;

VdConstHorJust_VdTextHorAligned

Alligns the text on the line that connects the insertion point and the AlignmentPoint of the vdText object.

VdConstHorJust_VdTextHorCenter

Sets the horizontal justification of a vdText at its center.

VdConstHorJust_VdTextHorFit

Acts like the VdConstHorJust_VdTextHorAligned plus it stretches the text in order to fill it between the insertion and AlignmentPoint.

VdConstHorJust_VdTextHorLeft

Sets the horizontal justification of a vdText to the left.

VdConstHorJust_VdTextHorRight

Sets the horizontal justification of a vdText to the right.

VdConstTextstyle_BACKWARD

Draws the text of a vdText backwards.

VdConstTextstyle_BACKWARD_UPSIDEDOWN

Draws the text of a vdText backwards and upsidedown.

VdConstTextstyle_LEFTTORIGHT

Draws the text of a vdText mirrored.

VdConstTextstyle_UPSIDEDOWN

Draws the text of a vdText upsidedown.

VdConstVerJust_VdTextVerBaseLine

Sets the vertical justification of a vdText at the text's baseline.

VdConstVerJust_VdTextVerBottom

Sets the vertical justification of a vdText at the object's bottom.

VdConstVerJust_VdTextVerCen

Sets the vertical justification of a vdText at the object's center.

VdConstVerJust_VdTextVerTop

Sets the vertical justification of a vdText at the object's top.

au_CLOCKWISE

It is clockwise of vdrawObj.GetDocument().aunits.Direction

au_COUNTER_CLOCKWISE

It is not clockwise of vdrawObj.GetDocument().aunits.Direction

au_Decdegrees

Decimal degrees of vdrawObj.GetDocument().aunits.UType

au_Degrees

Degrees/minutes/seconds of vdrawObj.GetDocument().aunits.UType

au_Gradians

Gradians of vdrawObj.GetDocument().aunits.UType

au_Radians

Radians of vdrawObj.GetDocument().aunits.UType

au_Surveyor

Gradians of vdrawObj.GetDocument().aunits.UType

au_nozero_All

Suppresses leading and trailing zeros of vdrawObj.GetDocument().aunits.ZerosSuppression

au_nozero_Leading

Suppresses leading zeros in decimal dimensions (for example, 0.5000 becomes .5000) of vdrawObj.GetDocument().aunits.ZerosSuppression

au_nozero_None

Displays all leading and trailing zeros of vdrawObj.GetDocument().aunits.ZerosSuppression

au_nozero_Trailing

Suppresses trailing zeros in decimal dimensions (for example, 12.5000 becomes 12.5) of vdrawObj.GetDocument().aunits.ZerosSuppression

lu_Architectural

Architectural (1' - 4 7/16") linear unit type of vdrawObj.GetDocument().lunits.UType

lu_Decimal

Decimal (16.4492) linear unit type of vdrawObj.GetDocument().lunits.UType

lu_Engineering

Engineering (1' - 4.4492") linear unit type of vdrawObj.GetDocument().lunits.UType

lu_Fractional

Fractional (16 7/16) linear unit type of vdrawObj.GetDocument().lunits.UType

lu_Scientific

Scientific (1.6449E+001) linear unit type of vdrawObj.GetDocument().lunits.UType

lu_nozero_DecimalAll

Suppresses all of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_nozero_DecimalLeading

Suppresses leading zeros in decimal dimensions (for example, 0.5000 becomes .5000) of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_nozero_DecimalTrailing

Suppresses trailing zeros in decimal dimensions (for example, 12.5000 becomes 12.5) of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_nozero_Feet

Suppresses zero feet and precisely zero inches of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_nozero_Inches

Includes zero feet and suppresses zero inches of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_nozero_None

Includes zero feet and precisely zero inches of vdrawObj.GetDocument().lunits.ZerosSuppression

lu_windesk

Windows desktop linear unit type of vdrawObj.GetDocument().lunits.UType

vd3DFace_code

The code that corresponds to the vd3DFace object;

vdArc_code

The code that corresponds to the vdArc object;

vdAttribDef_code

The code that corresponds to the vdAttribDef object;

vdAttrib_code

The code that corresponds to the vdAttrib object;

vdBlock_code

The code that corresponds to the vdBlock object;

vdCircle_code

The code that corresponds to the vdCircle object;

vdDimension_code

The code that corresponds to the vdDimension object;

vdEllipse_code

The code that corresponds to the vdEllipse object;

vdGroundSurface_code

The code that corresponds to the vdGroundSurface object;

vdGroup_code

The code that corresponds to the vdGroup object;

vdHatchPattern_code

The code that corresponds to the vdHatchPattern object;

vdImageDef_code

The code that corresponds to the vdImageDef object;

vdImage_code

The code that corresponds to the vdImage object;

vdInfinityLine_code

The code that corresponds to the vdInfinityLine object;

vdInsert_code

The code that corresponds to the vdInsert object;

vdLayer_code

The code that corresponds to the vdLayer object;

vdLayout_code

The code that corresponds to the vdLayout object;

vdLeader_code

The code that corresponds to the vdLeader object;

vdLineType_code

The code that corresponds to the vdLineType object;

vdLine_code

The code that corresponds to the vdLine object;

vdMText_code

The code that corresponds to the vdMText object;

vdMultiline_code

The code that corresponds to the vdMultiline object;

vdPointCloud_code

The code that corresponds to the vdPointCloud object;

vdPoint_code

The code that corresponds to the vdPoint object;

vdPolyface_code

The code that corresponds to the vdPolyface object;

vdPolyhatch_code

The code that corresponds to the vdPolyhatch object;

vdPolyline_code

The code that corresponds to the vdPolyline object;

vdRect_code

The code that corresponds to the vdRect object;

vdText_code

The code that corresponds to the vdText object;

vdTextstyle_code

The code that corresponds to the vdTextstyle object;

vdView_code

The code that corresponds to the vdView object;

vdViewport_code

The code that corresponds to the vdViewport object;

Methods

FormatAngle(double, object)

Formats an angle double value into it's sring representation.

FormatLength(double, object)

Formats a double using the object's unit parameters.

cloneEntity(object)

Returns a new created object as clone to the passed one.

colorFromString(string)

Create a new color from passed string value

colorToString(object)

Convert a color to a string value and returns the string value.

createNewColor(string)

Creates a new vdColor object.