Skip to content
On this page

mxcad_2d API 文档 / 2d / McRxObject

Class: McRxObject

2d.McRxObject

表示一个 Rx 对象的基类。

Hierarchy

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new McRxObject(imp?)

构造函数。

Parameters

NameTypeDescription
imp?any内部实现对象。

Properties

imp

imp: any = 0

内部实现对象。

Accessors

dxf0

get dxf0(): string

获取 DXF 代码 0 的值。

Returns

string


objectName

get objectName(): string

获取对象名称。

Returns

string

Methods

constructor_MxCADResbuf

Protected constructor_MxCADResbuf(imp): void

Parameters

NameType
impany

Returns

void


getImp

getImp(): any

获取内部实现对象。

Returns

any

内部实现对象。


getJson

getJson(): string

获取 JSON 格式的字符串。

Returns

string

JSON 格式的字符串。


initTempObject

initTempObject(imp): void

初始化临时对象。

Parameters

NameTypeDescription
impany内部实现对象。

Returns

void


isKindOf

isKindOf(sObjectName): boolean

判断对象类型

Parameters

NameTypeDescription
sObjectNamestring类型名

Returns

boolean

返回对象是否是目标类型


isNull

isNull(): any

判断是否为空对象

Returns

any


setJson

setJson(str): boolean

设置 JSON 格式的字符串。

Parameters

NameTypeDescription
strstringJSON 格式的字符串。

Returns

boolean

是否设置成功。