mxcad_3d API 文档 / Mx3dDimLength
Class: Mx3dDimLength 
Hierarchy 
- ↳ - Mx3dDimLength
Table of contents 
Constructors 
Methods 
- FirstPoint
- FirstShape
- GetFlyout
- GetGeometryType
- GetPlane
- GetTextPosition
- GetValue
- IsTextPositionCustom
- IsValid
- KindOfDimension
- SecondPoint
- SecondShape
- SelToleranceForText2d
- SetComputedValue
- SetCustomPlane
- SetCustomValue
- SetDimensionAspect
- SetDirection
- SetFlyout
- SetMeasuredGeometry
- SetMeasuredShapes
- SetSelToleranceForText2d
- SetTextPosition
- UnsetCustomPlane
- UnsetFixedTextPosition
Constructors 
constructor 
• new Mx3dDimLength()
构造一个空的长度尺寸对象。
Overrides 
Mx3dDimObject.constructor
• new Mx3dDimLength(theEdge, thePlane)
构造长度尺寸,针对指定的边和平面。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theEdge | Mx3dShapeEdge | 测量的边。 | 
| thePlane | Mx3dGePlane | 测量的平面。 | 
Overrides 
Mx3dDimObject.constructor
• new Mx3dDimLength(theFirstPoint, theSecondPoint, thePlane)
构造长度尺寸,针对指定的两点和平面。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theFirstPoint | Mx3dGePoint | 第一点。 | 
| theSecondPoint | Mx3dGePoint | 第二点。 | 
| thePlane | Mx3dGePlane | 测量的平面。 | 
Overrides 
Mx3dDimObject.constructor
Methods 
FirstPoint 
▸ FirstPoint(): Mx3dGePoint
返回长度尺寸的第一点。
Returns 
第一点。
FirstShape 
▸ FirstShape(): Mx3dShapeObject
返回长度尺寸的第一形状对象。
Returns 
第一形状对象。
GetFlyout 
▸ GetFlyout(): number
获取尺寸线位置距离。
Returns 
number
尺寸线位置距离。
GetGeometryType 
▸ GetGeometryType(): number
获取几何类型。
Returns 
number
几何类型。
GetPlane 
▸ GetPlane(): Mx3dGePlane
获取测量平面。
Returns 
测量平面。
GetTextPosition 
▸ GetTextPosition(): Mx3dGePoint
获取文本位置。
Returns 
文本位置。
GetValue 
▸ GetValue(): number
获取尺寸值。
Returns 
number
尺寸值。
IsTextPositionCustom 
▸ IsTextPositionCustom(): boolean
检查文本位置是否自定义。
Returns 
boolean
如果文本位置是自定义的,则返回 true;否则,返回 false。
IsValid 
▸ IsValid(): boolean
检查尺寸是否有效。
Returns 
boolean
如果尺寸有效,则返回 true;否则,返回 false。
KindOfDimension 
▸ KindOfDimension(): MxKindOfDimension
获取尺寸类型。
Returns 
尺寸类型。
SecondPoint 
▸ SecondPoint(): Mx3dGePoint
返回长度尺寸的第二点。
Returns 
第二点。
SecondShape 
▸ SecondShape(): Mx3dShapeObject
返回长度尺寸的第二形状对象。
Returns 
第二形状对象。
SelToleranceForText2d 
▸ SelToleranceForText2d(): number
获取2D文本选择公差。
Returns 
number
2D文本选择公差。
SetComputedValue 
▸ SetComputedValue(): void
设置计算值。
Returns 
void
SetCustomPlane 
▸ SetCustomPlane(thePlane): void
设置自定义平面。
Parameters 
| Name | Type | Description | 
|---|---|---|
| thePlane | Mx3dGePlane | 自定义平面。 | 
Returns 
void
SetCustomValue 
▸ SetCustomValue(theValue): void
设置自定义值。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theValue | number | 自定义值。 | 
Returns 
void
SetDimensionAspect 
▸ SetDimensionAspect(theDimensionAspect): void
设置尺寸外观。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theDimensionAspect | Mx3dAspectDim | 尺寸外观。 | 
Returns 
void
SetDirection 
▸ SetDirection(theDirection, theUseDirection): void
设置自定义方向。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theDirection | Mx3dGeDir | 方向。 | 
| theUseDirection | boolean | 是否使用自定义方向。 | 
Returns 
void
SetFlyout 
▸ SetFlyout(theFlyout): void
设置尺寸线位置距离。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theFlyout | number | 尺寸线位置距离。 | 
Returns 
void
SetMeasuredGeometry 
▸ SetMeasuredGeometry(theFirstPoint, theSecondPoint, thePlane): void
设置测量几何,基于指定的两点和平面。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theFirstPoint | Mx3dGePoint | 第一点。 | 
| theSecondPoint | Mx3dGePoint | 第二点。 | 
| thePlane | Mx3dGePlane | 测量的平面。 | 
Returns 
void
SetMeasuredShapes 
▸ SetMeasuredShapes(theFirstShape, theSecondShape): void
设置测量几何,基于指定的形状。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theFirstShape | Mx3dShapeObject | 第一形状对象。 | 
| theSecondShape | Mx3dShapeObject | 第二形状对象。 | 
Returns 
void
SetSelToleranceForText2d 
▸ SetSelToleranceForText2d(theTol): void
设置2D文本选择公差。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theTol | number | 2D文本选择公差。 | 
Returns 
void
SetTextPosition 
▸ SetTextPosition(theTextPos): void
设置文本位置。
Parameters 
| Name | Type | Description | 
|---|---|---|
| theTextPos | Mx3dGePoint | 文本位置。 | 
Returns 
void
UnsetCustomPlane 
▸ UnsetCustomPlane(): void
取消自定义平面设置。
Returns 
void
UnsetFixedTextPosition 
▸ UnsetFixedTextPosition(): void
取消固定文本位置。
Returns 
void