Skip to content

[mxcad_3d API documentation](../README. md)/Mx3dDimDiameter

Class: Mx3dDimDiameter

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new Mx3dDimDiameter(theCircle)

Construct diameter dimensions for the specified circle.

Parameters

NameTypeDescription
The Circle[Mx3dGeCircle] (Mx3dGeCircle. md)The circle to be measured

Overrides

Mx3dDimObject.constructor

new Mx3dDimDiameter(theCircle, thePlane)

Construct a diameter dimension for a specified circle and orient it according to a given plane.

Parameters

NameTypeDescription
The Circle[Mx3dGeCircle] (Mx3dGeCircle. md)The circle to be measured
ThePlane[Mx3dGePlane] (Mx3dGePlane. md)Define the preferred orientation plane for size

Overrides

Mx3dDimObject.constructor

Methods

AnchorPoint

AnchorPoint(): Mx3dGePoint

Returns

Mx3dGePoint

Return the anchor point on the circle for this diameter dimension.


Circle

Circle(): Mx3dGeCircle

Returns

Mx3dGeCircle

Return the circle being measured for this size.


GetFlyout

GetFlyout(): number

Obtain the distance of the dimension line position.

Returns

number

Return the distance of the dimension line position.


GetGeometryType

GetGeometryType(): number

Get the geometric type.

Returns

number

Return the geometric type.


GetPlane

GetPlane(): Mx3dGePlane

Get the current plane.

Returns

Mx3dGePlane

Return to the current plane.


GetTextPosition

GetTextPosition(): Mx3dGePoint

Get the text location.

Returns

Mx3dGePoint

Return the text location point.


GetValue

GetValue(): number

Get the current size value.

Returns

number

Return the current size value.


IsTextPositionCustom

IsTextPositionCustom(): boolean

Determine whether the text position is customized.

Returns

boolean

Returns a Boolean value indicating whether the text position is custom.


IsValid

IsValid(): boolean

Determine if the current size is valid.

Returns

boolean

Return a Boolean value indicating whether the size is valid.


KindOfDimension

KindOfDimension(): MxKindOfDimension

Obtain the size type.

Returns

MxKindOfDimension

Return size type.


SelToleranceForText2d

SelToleranceForText2d(): number

Obtain the selection tolerance for 2D text.

Returns

number

Return the selection tolerance of two-dimensional text.


SetComputedValue

SetComputedValue(): void

Set the calculated size value.

Returns

void


SetCustomPlane

SetCustomPlane(thePlane): void

Set a custom plane.

Parameters

NameTypeDescription
ThePlane[Mx3dGePlane] (Mx3dGePlane. md)Custom Plane

Returns

void


SetCustomValue

SetCustomValue(theValue): void

Set custom size values.

Parameters

NameTypeDescription
theValuenumberCustomize size values

Returns

void


SetDimensionAspect

SetDimensionAspect(theDimensionAspect): void

Set the display appearance of the size.

Parameters

NameTypeDescription
TheDimensionAspect[Mx3dAspectDim] (Mx3dAspectDim. md)Size and appearance

Returns

void


SetDisplayUnits

SetDisplayUnits(theUnits): void

Set display units.

Parameters

NameTypeDescription
TheUnitsStringUnit string

Returns

void


SetFlyout

SetFlyout(theFlyout): void

Set the position distance of the dimension line.

Parameters

NameTypeDescription
The Flyoutnumberdimension line position distance value

Returns

void


SetMeasuredGeometry

SetMeasuredGeometry(theCircle): void

Set the geometry to be measured.

Parameters

NameTypeDescription
The Circle[Mx3dGeCircle] (Mx3dGeCircle. md)The circle to be measured

Returns

void


SetModelUnits

SetModelUnits(theUnits): void

Set model units.

Parameters

NameTypeDescription
TheUnitsStringUnit string

Returns

void


SetSelToleranceForText2d

SetSelToleranceForText2d(theTol): void

Set the selection tolerance for 2D text.

Parameters

NameTypeDescription
TheTolNumberTolerance value

Returns

void


SetTextPosition

SetTextPosition(theTextPos): void

Set the text position.

Parameters

NameTypeDescription
TheTextPos[Mx3dGePoint] (Mx3dGePoint. md)Text position point

Returns

void


Shape

Shape(): Mx3dShapeObject

Returns

Mx3dShapeObject

Return the shape object being measured.


UnsetCustomPlane

UnsetCustomPlane(): void

Cancel custom plane.

Returns

void


UnsetFixedTextPosition

UnsetFixedTextPosition(): void

Cancel fixed text position.

Returns

void