返回介绍

指南

MxCAD API 文档

2d.McDbAttributeDefinition

发布于 2024-07-31 21:40:00 字数 47404 浏览 0 评论 0 收藏 0

mxcad API 文档 / 2d / McDbAttributeDefinition

Class: McDbAttributeDefinition

2d.McDbAttributeDefinition

块引用属性定义文字对象

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new McDbAttributeDefinition(imp?)

构造函数。

Parameters

NameTypeDescription
imp?any实现对象。

Overrides

McDbText.constructor

Properties

imp

Protected imp: any = 0

内部实现对象。

Inherited from

McDbText.imp

Accessors

alignmentPoint

get alignmentPoint(): McGePoint3d

获取或设置文字的对齐点。

Returns

McGePoint3d

Inherited from

McDbText.alignmentPoint

set alignmentPoint(pt): void

Parameters

NameType
ptMcGePoint3d

Returns

void

Inherited from

McDbText.alignmentPoint


colorIndex

get colorIndex(): number

得到对象颜色索引

Returns

number

Inherited from

McDbText.colorIndex

set colorIndex(val): void

设置对象颜色索引

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.colorIndex


dxf0

get dxf0(): string

获取 DXF 代码 0 的值。

Returns

string

Inherited from

McDbText.dxf0


height

get height(): number

获取或设置文字的高度。

Returns

number

Inherited from

McDbText.height

set height(val): void

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.height


horizontalMode

get horizontalMode(): TextHorzMode

获取或设置文字的水平对齐方式。

Returns

TextHorzMode

Inherited from

McDbText.horizontalMode

set horizontalMode(val): void

Parameters

NameType
valTextHorzMode

Returns

void

Inherited from

McDbText.horizontalMode


isConstant

get isConstant(): boolean

Returns

boolean

set isConstant(val): void

Parameters

NameType
valboolean

Returns

void


isInvisible

get isInvisible(): boolean

是否可见

Returns

boolean

set isInvisible(val): void

Parameters

NameType
valboolean

Returns

void


isPreset

get isPreset(): boolean

Returns

boolean

set isPreset(val): void

Parameters

NameType
valboolean

Returns

void


isVerifiable

get isVerifiable(): boolean

Returns

boolean

set isVerifiable(val): void

Parameters

NameType
valboolean

Returns

void


layer

get layer(): string

得到对象图层名

Returns

string

Inherited from

McDbText.layer

set layer(val): void

设置对象图层名

Parameters

NameType
valstring

Returns

void

Inherited from

McDbText.layer


layerId

get layerId(): McObjectId

Returns

McObjectId

Inherited from

McDbText.layerId

set layerId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbText.layerId


linetype

get linetype(): string

得到对象线型名

Returns

string

Inherited from

McDbText.linetype

set linetype(val): void

设置对象线型名

Parameters

NameType
valstring

Returns

void

Inherited from

McDbText.linetype


linetypeId

get linetypeId(): McObjectId

Returns

McObjectId

Inherited from

McDbText.linetypeId

set linetypeId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbText.linetypeId


linetypeScale

get linetypeScale(): number

得到对象线型比例

Returns

number

Inherited from

McDbText.linetypeScale

set linetypeScale(val): void

设置对象线型比例

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.linetypeScale


lineweight

get lineweight(): number

得到对象线重

Returns

number

Inherited from

McDbText.lineweight

set lineweight(val): void

设置对象线重

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.lineweight


objectName

get objectName(): string

获取对象名称。

Returns

string

Inherited from

McDbText.objectName


oblique

get oblique(): number

获取或设置文字的倾斜角度。

Returns

number

Inherited from

McDbText.oblique

set oblique(val): void

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.oblique


position

get position(): McGePoint3d

获取或设置文字的位置。

Returns

McGePoint3d

Inherited from

McDbText.position

set position(pt): void

Parameters

NameType
ptMcGePoint3d

Returns

void

Inherited from

McDbText.position


prompt

get prompt(): string

Returns

string

set prompt(val): void

Parameters

NameType
valstring

Returns

void


rotation

get rotation(): number

获取或设置文字的旋转角度。

Returns

number

Inherited from

McDbText.rotation

set rotation(pt): void

Parameters

NameType
ptnumber

Returns

void

Inherited from

McDbText.rotation


tag

get tag(): string

获取或设置文字的字符串。

Returns

string

set tag(val): void

Parameters

NameType
valstring

Returns

void


textString

get textString(): string

获取或设置文字的字符串。

Returns

string

Inherited from

McDbText.textString

set textString(val): void

Parameters

NameType
valstring

Returns

void

Inherited from

McDbText.textString


textStyle

get textStyle(): string

得到对象文字样式

Returns

string

Inherited from

McDbText.textStyle

set textStyle(val): void

设置对象文字样式

Parameters

NameType
valstring

Returns

void

Inherited from

McDbText.textStyle


textStyleId

get textStyleId(): McObjectId

Returns

McObjectId

Inherited from

McDbText.textStyleId

set textStyleId(id): void

Parameters

NameType
idMcObjectId

Returns

void

Inherited from

McDbText.textStyleId


trueColor

get trueColor(): McCmColor

得到对象颜色

Returns

McCmColor

Inherited from

McDbText.trueColor

set trueColor(val): void

设置对象颜色

Parameters

NameType
valMcCmColor

Returns

void

Inherited from

McDbText.trueColor


verticalMode

get verticalMode(): TextVertMode

获取或设置文字的垂直对齐方式。

Returns

TextVertMode

Inherited from

McDbText.verticalMode

set verticalMode(val): void

Parameters

NameType
valTextVertMode

Returns

void

Inherited from

McDbText.verticalMode


visible

get visible(): boolean

对象是否可见

Returns

boolean

Inherited from

McDbText.visible

set visible(val): void

设置是否可见

Parameters

NameType
valboolean

Returns

void

Inherited from

McDbText.visible


widthFactor

get widthFactor(): number

获取或设置文字的宽度因子。

Returns

number

Inherited from

McDbText.widthFactor

set widthFactor(val): void

Parameters

NameType
valnumber

Returns

void

Inherited from

McDbText.widthFactor

Methods

IntersectWith

IntersectWith(intersectObject, exOption): McGePoint3dArray

Parameters

NameType
intersectObjectMcDbEntity
exOptionIntersect

Returns

McGePoint3dArray

Inherited from

McDbText.IntersectWith


clone

clone(): null | McDbObject

克隆对象。

Returns

null | McDbObject

克隆出的对象。

Inherited from

McDbText.clone


deleteXData

deleteXData(appName): boolean

Parameters

NameType
appNamestring

Returns

boolean

Inherited from

McDbText.deleteXData


disableDisplay

disableDisplay(isDisable): void

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

Parameters

NameType
isDisableboolean

Returns

void

Inherited from

McDbText.disableDisplay


erase

erase(): boolean

删除对象。

Returns

boolean

是否删除成功。

Inherited from

McDbText.erase


explode

explode(): MxCADResbuf

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

Returns

MxCADResbuf

Inherited from

McDbText.explode


getAllAppName

getAllAppName(): McGeStringArray

Returns

McGeStringArray

Inherited from

McDbText.getAllAppName


getArea

getArea(): Object

计算面积

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbText.getArea


getBoundingBox

getBoundingBox(): Object

得到对象的最小外包

Returns

Object

NameType
maxPtMcGePoint3d
minPtMcGePoint3d
retboolean

Inherited from

McDbText.getBoundingBox


getDatabase

getDatabase(): McDbDatabase

得到对象所在的数据库

Returns

McDbDatabase

Inherited from

McDbText.getDatabase


getHandle

getHandle(): string

得到对象句柄

Returns

string

Inherited from

McDbText.getHandle


getImp

getImp(): any

获取内部实现对象。

Returns

any

内部实现对象。

Inherited from

McDbText.getImp


getJson

getJson(): string

获取 JSON 格式的字符串。

Returns

string

JSON 格式的字符串。

Inherited from

McDbText.getJson


getObjectID

getObjectID(): McObjectId

获取对象 ID。

Returns

McObjectId

对象 ID。

Inherited from

McDbText.getObjectID


getOwnerID

getOwnerID(): number

得到对象拥用者的id

Returns

number

Inherited from

McDbText.getOwnerID


getxData

getxData(appName?): MxCADResbuf

得到对象的扩展数据

Parameters

NameTypeDefault value
appNamestring""

Returns

MxCADResbuf

Inherited from

McDbText.getxData


getxDataDouble

getxDataDouble(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbText.getxDataDouble


getxDataLong

getxDataLong(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valnumber

Inherited from

McDbText.getxDataLong


getxDataPoint

getxDataPoint(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valMcGePoint3d

Inherited from

McDbText.getxDataPoint


getxDataString

getxDataString(appName): Object

Parameters

NameType
appNamestring

Returns

Object

NameType
retboolean
valstring

Inherited from

McDbText.getxDataString


highlight

highlight(isHighlight): void

设置对象是否高亮

Parameters

NameType
isHighlightboolean

Returns

void

Inherited from

McDbText.highlight


initTempObject

initTempObject(imp): void

初始化临时对象。

Parameters

NameTypeDescription
impany内部实现对象。

Returns

void

Inherited from

McDbText.initTempObject


isErased

isErased(): boolean

对象是否已经删除

Returns

boolean

Inherited from

McDbText.isErased


isKindOf

isKindOf(sObjectName): boolean

Parameters

NameType
sObjectNamestring

Returns

boolean

Inherited from

McDbText.isKindOf


isNull

isNull(): any

Returns

any

Inherited from

McDbText.isNull


mirror

mirror(point1, point2): boolean

镜向对象

Parameters

NameType
point1McGePoint3d
point2McGePoint3d

Returns

boolean

Inherited from

McDbText.mirror


move

move(fromPoint, toPoint): boolean

移动对象

Parameters

NameType
fromPointMcGePoint3d
toPointMcGePoint3d

Returns

boolean

Inherited from

McDbText.move


rotate

rotate(basePoint, dRotationAngle): boolean

旋转对象

Parameters

NameType
basePointMcGePoint3d
dRotationAnglenumber

Returns

boolean

Inherited from

McDbText.rotate


scaleEntity

scaleEntity(basePoint, dScaleFactor): boolean

缩放对象

Parameters

NameType
basePointMcGePoint3d
dScaleFactornumber

Returns

boolean

Inherited from

McDbText.scaleEntity


setJson

setJson(str): boolean

设置 JSON 格式的字符串。

Parameters

NameTypeDescription
strstringJSON 格式的字符串。

Returns

boolean

是否设置成功。

Inherited from

McDbText.setJson


setxData

setxData(xdata): boolean

设置对象的扩展数据

Parameters

NameType
xdataMxCADResbuf

Returns

boolean

Inherited from

McDbText.setxData


setxDataDouble

setxDataDouble(appName, val): boolean

Parameters

NameType
appNamestring
valnumber

Returns

boolean

Inherited from

McDbText.setxDataDouble


setxDataLong

setxDataLong(appName, val): boolean

Parameters

NameType
appNamestring
valnumber

Returns

boolean

Inherited from

McDbText.setxDataLong


setxDataPoint

setxDataPoint(appName, val): boolean

Parameters

NameType
appNamestring
valMcGePoint3d

Returns

boolean

Inherited from

McDbText.setxDataPoint


setxDataString

setxDataString(appName, val): boolean

Parameters

NameType
appNamestring
valstring

Returns

boolean

Inherited from

McDbText.setxDataString


transformBy

transformBy(transformationMatrix): boolean

变换对象

Parameters

NameType
transformationMatrixMcGeMatrix3d

Returns

boolean

Inherited from

McDbText.transformBy


unErase

unErase(): boolean

反删除对象。

Returns

boolean

Inherited from

McDbText.unErase

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

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

发布评论

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