Skip to content

mxcad_3d API 文档 / Mx3dDimLength

Class: Mx3dDimLength ​

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dDimLength()

构造一个空的长度尺寸对象。

Overrides ​

Mx3dDimObject.constructor

• new Mx3dDimLength(theEdge, thePlane)

构造长度尺寸,针对指定的边和平面。

Parameters ​

NameTypeDescription
theEdgeMx3dShapeEdge测量的边。
thePlaneMx3dGePlane测量的平面。

Overrides ​

Mx3dDimObject.constructor

• new Mx3dDimLength(theFirstPoint, theSecondPoint, thePlane)

构造长度尺寸,针对指定的两点和平面。

Parameters ​

NameTypeDescription
theFirstPointMx3dGePoint第一点。
theSecondPointMx3dGePoint第二点。
thePlaneMx3dGePlane测量的平面。

Overrides ​

Mx3dDimObject.constructor

Methods ​

FirstPoint ​

▸ FirstPoint(): Mx3dGePoint

返回长度尺寸的第一点。

Returns ​

Mx3dGePoint

第一点。


FirstShape ​

▸ FirstShape(): Mx3dShapeObject

返回长度尺寸的第一形状对象。

Returns ​

Mx3dShapeObject

第一形状对象。


GetFlyout ​

▸ GetFlyout(): number

获取尺寸线位置距离。

Returns ​

number

尺寸线位置距离。


GetGeometryType ​

▸ GetGeometryType(): number

获取几何类型。

Returns ​

number

几何类型。


GetPlane ​

▸ GetPlane(): Mx3dGePlane

获取测量平面。

Returns ​

Mx3dGePlane

测量平面。


GetTextPosition ​

▸ GetTextPosition(): Mx3dGePoint

获取文本位置。

Returns ​

Mx3dGePoint

文本位置。


GetValue ​

▸ GetValue(): number

获取尺寸值。

Returns ​

number

尺寸值。


IsTextPositionCustom ​

▸ IsTextPositionCustom(): boolean

检查文本位置是否自定义。

Returns ​

boolean

如果文本位置是自定义的,则返回 true;否则,返回 false。


IsValid ​

▸ IsValid(): boolean

检查尺寸是否有效。

Returns ​

boolean

如果尺寸有效,则返回 true;否则,返回 false。


KindOfDimension ​

▸ KindOfDimension(): MxKindOfDimension

获取尺寸类型。

Returns ​

MxKindOfDimension

尺寸类型。


SecondPoint ​

▸ SecondPoint(): Mx3dGePoint

返回长度尺寸的第二点。

Returns ​

Mx3dGePoint

第二点。


SecondShape ​

▸ SecondShape(): Mx3dShapeObject

返回长度尺寸的第二形状对象。

Returns ​

Mx3dShapeObject

第二形状对象。


SelToleranceForText2d ​

▸ SelToleranceForText2d(): number

获取2D文本选择公差。

Returns ​

number

2D文本选择公差。


SetComputedValue ​

▸ SetComputedValue(): void

设置计算值。

Returns ​

void


SetCustomPlane ​

▸ SetCustomPlane(thePlane): void

设置自定义平面。

Parameters ​

NameTypeDescription
thePlaneMx3dGePlane自定义平面。

Returns ​

void


SetCustomValue ​

▸ SetCustomValue(theValue): void

设置自定义值。

Parameters ​

NameTypeDescription
theValuenumber自定义值。

Returns ​

void


SetDimensionAspect ​

▸ SetDimensionAspect(theDimensionAspect): void

设置尺寸外观。

Parameters ​

NameTypeDescription
theDimensionAspectMx3dAspectDim尺寸外观。

Returns ​

void


SetDirection ​

▸ SetDirection(theDirection, theUseDirection): void

设置自定义方向。

Parameters ​

NameTypeDescription
theDirectionMx3dGeDir方向。
theUseDirectionboolean是否使用自定义方向。

Returns ​

void


SetFlyout ​

▸ SetFlyout(theFlyout): void

设置尺寸线位置距离。

Parameters ​

NameTypeDescription
theFlyoutnumber尺寸线位置距离。

Returns ​

void


SetMeasuredGeometry ​

▸ SetMeasuredGeometry(theFirstPoint, theSecondPoint, thePlane): void

设置测量几何,基于指定的两点和平面。

Parameters ​

NameTypeDescription
theFirstPointMx3dGePoint第一点。
theSecondPointMx3dGePoint第二点。
thePlaneMx3dGePlane测量的平面。

Returns ​

void


SetMeasuredShapes ​

▸ SetMeasuredShapes(theFirstShape, theSecondShape): void

设置测量几何,基于指定的形状。

Parameters ​

NameTypeDescription
theFirstShapeMx3dShapeObject第一形状对象。
theSecondShapeMx3dShapeObject第二形状对象。

Returns ​

void


SetSelToleranceForText2d ​

▸ SetSelToleranceForText2d(theTol): void

设置2D文本选择公差。

Parameters ​

NameTypeDescription
theTolnumber2D文本选择公差。

Returns ​

void


SetTextPosition ​

▸ SetTextPosition(theTextPos): void

设置文本位置。

Parameters ​

NameTypeDescription
theTextPosMx3dGePoint文本位置。

Returns ​

void


UnsetCustomPlane ​

▸ UnsetCustomPlane(): void

取消自定义平面设置。

Returns ​

void


UnsetFixedTextPosition ​

▸ UnsetFixedTextPosition(): void

取消固定文本位置。

Returns ​

void