返回介绍

指南

MxCAD API 文档

McDbRotatedDimension

发布于 2024-07-31 21:39:59 字数 58029 浏览 0 评论 0 收藏 0

mxcad API 文档 / McDbRotatedDimension

Class: McDbRotatedDimension

旋转标注尺寸类

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new McDbRotatedDimension(imp?)

Parameters

NameType
imp?any

Overrides

McDbDimension.constructor

Properties

imp

Protected imp: any = 0

内部实现对象。

Inherited from

McDbDimension.imp

Accessors

colorIndex

get colorIndex(): number

得到对象颜色索引

Returns

number

Inherited from

McDbDimension.colorIndex

set colorIndex(val): void

设置对象颜色索引

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbDimension.colorIndex


dimLinePoint

get dimLinePoint(): McGePoint3d

获取标注线的端点

Returns

McGePoint3d

标注线的端点

set dimLinePoint(pt): void

设置标注线的端点

Parameters

NameTypeDescription
ptMcGePoint3d标注线的端点

Returns

void


dimensionStyle

get dimensionStyle(): McObjectId

获取标注样式

Returns

McObjectId

标注样式

Inherited from

McDbDimension.dimensionStyle

set dimensionStyle(val): void

设置标注样式

Parameters

NameTypeDescription
valMcObjectId标注样式

Returns

void

Inherited from

McDbDimension.dimensionStyle


dimensionText

get dimensionText(): string

获取标注文本

Returns

string

标注文本

Inherited from

McDbDimension.dimensionText

set dimensionText(val): void

设置标注文本

Parameters

NameTypeDescription
valstring标注文本

Returns

void

Inherited from

McDbDimension.dimensionText


dxf0

get dxf0(): string

获取 DXF 代码 0 的值。

Returns

string

Inherited from

McDbDimension.dxf0


elevation

get elevation(): number

获取高度

Returns

number

高度

Inherited from

McDbDimension.elevation

set elevation(val): void

设置高度

Parameters

NameTypeDescription
valnumber高度

Returns

void

Inherited from

McDbDimension.elevation


horizontalRotation

get horizontalRotation(): number

获取水平旋转角度

Returns

number

水平旋转角度

Inherited from

McDbDimension.horizontalRotation

set horizontalRotation(val): void

设置水平旋转角度

Parameters

NameTypeDescription
valnumber水平旋转角度

Returns

void

Inherited from

McDbDimension.horizontalRotation


layer

get layer(): string

得到对象图层名

Returns

string

Inherited from

McDbDimension.layer

set layer(val): void

设置对象图层名

Parameters

NameType
valstring

Returns

void

Inherited from

McDbDimension.layer


layerId

get layerId(): McObjectId

Returns

McObjectId

Inherited from

McDbDimension.layerId

set layerId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbDimension.layerId


linetype

get linetype(): string

得到对象线型名

Returns

string

Inherited from

McDbDimension.linetype

set linetype(val): void

设置对象线型名

Parameters

NameType
valstring

Returns

void

Inherited from

McDbDimension.linetype


linetypeId

get linetypeId(): McObjectId

Returns

McObjectId

Inherited from

McDbDimension.linetypeId

set linetypeId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbDimension.linetypeId


linetypeScale

get linetypeScale(): number

得到对象线型比例

Returns

number

Inherited from

McDbDimension.linetypeScale

set linetypeScale(val): void

设置对象线型比例

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbDimension.linetypeScale


lineweight

get lineweight(): number

得到对象线重

Returns

number

Inherited from

McDbDimension.lineweight

set lineweight(val): void

设置对象线重

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbDimension.lineweight


objectName

get objectName(): string

获取对象名称。

Returns

string

Inherited from

McDbDimension.objectName


oblique

get oblique(): number

获取倾斜角度

Returns

number

倾斜角度

set oblique(val): void

设置倾斜角度

Parameters

NameTypeDescription
valnumber倾斜角度

Returns

void


rotation

get rotation(): number

获取旋转角度

Returns

number

旋转角度

set rotation(val): void

设置旋转角度

Parameters

NameTypeDescription
valnumber旋转角度

Returns

void


textAttachment

get textAttachment(): AttachmentPoint

获取文本附着点

Returns

AttachmentPoint

文本附着点

Inherited from

McDbDimension.textAttachment

set textAttachment(val): void

设置文本附着点

Parameters

NameTypeDescription
valAttachmentPoint文本附着点

Returns

void

Inherited from

McDbDimension.textAttachment


textPosition

get textPosition(): McGePoint3d

获取文本位置

Returns

McGePoint3d

文本位置

Inherited from

McDbDimension.textPosition

set textPosition(pt): void

设置文本位置

Parameters

NameTypeDescription
ptMcGePoint3d文本位置

Returns

void

Inherited from

McDbDimension.textPosition


textRotation

get textRotation(): number

获取文本旋转角度

Returns

number

文本旋转角度

Inherited from

McDbDimension.textRotation

set textRotation(val): void

设置文本旋转角度

Parameters

NameTypeDescription
valnumber文本旋转角度

Returns

void

Inherited from

McDbDimension.textRotation


textStyle

get textStyle(): string

得到对象文字样式

Returns

string

Inherited from

McDbDimension.textStyle

set textStyle(val): void

设置对象文字样式

Parameters

NameType
valstring

Returns

void

Inherited from

McDbDimension.textStyle


textStyleId

get textStyleId(): McObjectId

Returns

McObjectId

Inherited from

McDbDimension.textStyleId

set textStyleId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbDimension.textStyleId


trueColor

get trueColor(): McCmColor

得到对象颜色

Returns

McCmColor

Inherited from

McDbDimension.trueColor

set trueColor(val): void

设置对象颜色

Parameters

NameType
valMcCmColor

Returns

void

Inherited from

McDbDimension.trueColor


visible

get visible(): boolean

对象是否可见

Returns

boolean

Inherited from

McDbDimension.visible

set visible(val): void

设置是否可见

Parameters

NameType
valboolean

Returns

void

Inherited from

McDbDimension.visible


xLine1Point

get xLine1Point(): McGePoint3d

获取第一条线的端点

Returns

McGePoint3d

第一条线的端点

set xLine1Point(pt): void

设置第一条线的端点

Parameters

NameTypeDescription
ptMcGePoint3d第一条线的端点

Returns

void


xLine2Point

get xLine2Point(): McGePoint3d

获取第二条线的端点

Returns

McGePoint3d

第二条线的端点

set xLine2Point(pt): void

设置第二条线的端点

Parameters

NameTypeDescription
ptMcGePoint3d第二条线的端点

Returns

void

Methods

GetAllText

GetAllText(): McGeStringArray

得到标注对象中的所有文字内容

Returns

McGeStringArray

Inherited from

McDbDimension.GetAllText


IntersectWith

IntersectWith(intersectObject, exOption): McGePoint3dArray

Parameters

NameType
intersectObjectMcDbEntity
exOptionIntersect

Returns

McGePoint3dArray

Inherited from

McDbDimension.IntersectWith


clone

clone(): null | McDbObject

克隆对象。

Returns

null | McDbObject

克隆出的对象。

Inherited from

McDbDimension.clone


deleteXData

deleteXData(appName): boolean

Parameters

NameType
appNamestring

Returns

boolean

Inherited from

McDbDimension.deleteXData


disableDisplay

disableDisplay(isDisable): void

暂时禁用对象的自动更新显示.

Parameters

NameType
isDisableboolean

Returns

void

Inherited from

McDbDimension.disableDisplay


erase

erase(): boolean

删除对象。

Returns

boolean

是否删除成功。

Inherited from

McDbDimension.erase


explode

explode(): MxCADResbuf

打碎对象,返回打后对象数据链表

Returns

MxCADResbuf

Inherited from

McDbDimension.explode


getAllAppName

getAllAppName(): McGeStringArray

Returns

McGeStringArray

Inherited from

McDbDimension.getAllAppName


getArea

getArea(): Object

计算面积

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbDimension.getArea


getBoundingBox

getBoundingBox(): Object

得到对象的最小外包

Returns

Object

NameType
maxPtMcGePoint3d
minPtMcGePoint3d
retboolean

Inherited from

McDbDimension.getBoundingBox


getDatabase

getDatabase(): McDbDatabase

得到对象所在的数据库

Returns

McDbDatabase

Inherited from

McDbDimension.getDatabase


getDimVarDouble

getDimVarDouble(iType): number

获取标注变量浮点数值

Parameters

NameTypeDescription
iTypenumber标注变量类型

Returns

number

标注变量浮点数值

Inherited from

McDbDimension.getDimVarDouble


getDimVarInt

getDimVarInt(iType): number

获取标注变量整数值

Parameters

NameTypeDescription
iTypenumber标注变量类型

Returns

number

标注变量整数值

Inherited from

McDbDimension.getDimVarInt


getDimVarObjectId

getDimVarObjectId(iType): McObjectId

获取标注变量对象 ID

Parameters

NameTypeDescription
iTypenumber标注变量类型

Returns

McObjectId

标注变量对象 ID

Inherited from

McDbDimension.getDimVarObjectId


getDimVarString

getDimVarString(iType): string

获取标注变量字符串值

Parameters

NameTypeDescription
iTypenumber标注变量类型

Returns

string

标注变量字符串值

Inherited from

McDbDimension.getDimVarString


getHandle

getHandle(): string

得到对象句柄

Returns

string

Inherited from

McDbDimension.getHandle


getImp

getImp(): any

获取内部实现对象。

Returns

any

内部实现对象。

Inherited from

McDbDimension.getImp


getJson

getJson(): string

获取 JSON 格式的字符串。

Returns

string

JSON 格式的字符串。

Inherited from

McDbDimension.getJson


getObjectID

getObjectID(): McObjectId

获取对象 ID。

Returns

McObjectId

对象 ID。

Inherited from

McDbDimension.getObjectID


getOwnerID

getOwnerID(): number

得到对象拥用者的id

Returns

number

Inherited from

McDbDimension.getOwnerID


getxData

getxData(appName?): MxCADResbuf

得到对象的扩展数据

Parameters

NameTypeDefault value
appNamestring""

Returns

MxCADResbuf

Inherited from

McDbDimension.getxData


getxDataDouble

getxDataDouble(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbDimension.getxDataDouble


getxDataLong

getxDataLong(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbDimension.getxDataLong


getxDataPoint

getxDataPoint(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valMcGePoint3d

Inherited from

McDbDimension.getxDataPoint


getxDataString

getxDataString(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valstring

Inherited from

McDbDimension.getxDataString


highlight

highlight(isHighlight): void

设置对象是否高亮

Parameters

NameType
isHighlightboolean

Returns

void

Inherited from

McDbDimension.highlight


initTempObject

initTempObject(imp): void

初始化临时对象。

Parameters

NameTypeDescription
impany内部实现对象。

Returns

void

Inherited from

McDbDimension.initTempObject


isErased

isErased(): boolean

对象是否已经删除

Returns

boolean

Inherited from

McDbDimension.isErased


isKindOf

isKindOf(sObjectName): boolean

Parameters

NameType
sObjectNamestring

Returns

boolean

Inherited from

McDbDimension.isKindOf


isNull

isNull(): any

Returns

any

Inherited from

McDbDimension.isNull


isUsingDefaultTextPosition

isUsingDefaultTextPosition(): boolean

是否使用默认文本位置

Returns

boolean

是否使用默认文本位置

Inherited from

McDbDimension.isUsingDefaultTextPosition


mirror

mirror(point1, point2): boolean

镜向对象

Parameters

NameType
point1McGePoint3d
point2McGePoint3d

Returns

boolean

Inherited from

McDbDimension.mirror


move

move(fromPoint, toPoint): boolean

移动对象

Parameters

NameType
fromPointMcGePoint3d
toPointMcGePoint3d

Returns

boolean

Inherited from

McDbDimension.move


recomputeDimBlock

recomputeDimBlock(): void

重新计算标注块

Returns

void

Inherited from

McDbDimension.recomputeDimBlock


rotate

rotate(basePoint, dRotationAngle): boolean

旋转对象

Parameters

NameType
basePointMcGePoint3d
dRotationAnglenumber

Returns

boolean

Inherited from

McDbDimension.rotate


scaleEntity

scaleEntity(basePoint, dScaleFactor): boolean

缩放对象

Parameters

NameType
basePointMcGePoint3d
dScaleFactornumber

Returns

boolean

Inherited from

McDbDimension.scaleEntity


setDimVarDouble

setDimVarDouble(iType, val): void

设置标注变量浮点数值

Parameters

NameTypeDescription
iTypenumber标注变量类型
valnumber标注变量浮点数值

Returns

void

Inherited from

McDbDimension.setDimVarDouble


setDimVarInt

setDimVarInt(iType, val): void

设置标注变量整数值

Parameters

NameTypeDescription
iTypenumber标注变量类型
valnumber标注变量整数值

Returns

void

Inherited from

McDbDimension.setDimVarInt


setDimVarObjectId

setDimVarObjectId(iType, val): void

设置标注变量对象 ID

Parameters

NameTypeDescription
iTypenumber标注变量类型
valMcObjectId标注变量对象 ID

Returns

void

Inherited from

McDbDimension.setDimVarObjectId


setDimVarString

setDimVarString(iType, val): void

设置标注变量字符串值

Parameters

NameTypeDescription
iTypenumber标注变量类型
valstring标注变量字符串值

Returns

void

Inherited from

McDbDimension.setDimVarString


setJson

setJson(str): boolean

设置 JSON 格式的字符串。

Parameters

NameTypeDescription
strstringJSON 格式的字符串。

Returns

boolean

是否设置成功。

Inherited from

McDbDimension.setJson


setxData

setxData(xdata): boolean

设置对象的扩展数据

Parameters

NameType
xdataMxCADResbuf

Returns

boolean

Inherited from

McDbDimension.setxData


setxDataDouble

setxDataDouble(appName, val): boolean

Parameters

NameType
appNamestring
valnumber

Returns

boolean

Inherited from

McDbDimension.setxDataDouble


setxDataLong

setxDataLong(appName, val): boolean

Parameters

NameType
appNamestring
valnumber

Returns

boolean

Inherited from

McDbDimension.setxDataLong


setxDataPoint

setxDataPoint(appName, val): boolean

Parameters

NameType
appNamestring
valMcGePoint3d

Returns

boolean

Inherited from

McDbDimension.setxDataPoint


setxDataString

setxDataString(appName, val): boolean

Parameters

NameType
appNamestring
valstring

Returns

boolean

Inherited from

McDbDimension.setxDataString


transformBy

transformBy(transformationMatrix): boolean

变换对象

Parameters

NameType
transformationMatrixMcGeMatrix3d

Returns

boolean

Inherited from

McDbDimension.transformBy


unErase

unErase(): boolean

反删除对象。

Returns

boolean

Inherited from

McDbDimension.unErase


useDefaultTextPosition

useDefaultTextPosition(): void

使用默认文本位置

Returns

void

Inherited from

McDbDimension.useDefaultTextPosition


useSetTextPosition

useSetTextPosition(): void

使用设置的文本位置

Returns

void

Inherited from

McDbDimension.useSetTextPosition

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文