Skip to content
On this page

mxcad_2d API 文档 / 2d / MxPropertiesWindowCustom

Class: MxPropertiesWindowCustom

2d.MxPropertiesWindowCustom

MxPropertiesWindowCustom 属性窗口添加自定义属性.

Table of contents

Constructors

Methods

Constructors

constructor

new MxPropertiesWindowCustom()

Methods

getEntityProperties

getEntityProperties(id): MxPropertiesWindowCustomValue[]

属性UI程序调用

Parameters

NameType
idMcObjectId

Returns

MxPropertiesWindowCustomValue[]


onEvent_getProperties

onEvent_getProperties(call): void

插件程序程序调用,注册返回对象自定属性函数。

Parameters

NameType
call(id: McObjectId) => MxPropertiesWindowCustomValue[]

Returns

void


onEvent_setProperties

onEvent_setProperties(call): void

插件程序程序调用,注册设置对象自定属性函数。

Parameters

NameType
call(id: McObjectId, prop: MxPropertiesWindowCustomValue) => void

Returns

void


setEntityProperties

setEntityProperties(id, prop): void

属性UI程序调用

Parameters

NameType
idMcObjectId
propMxPropertiesWindowCustomValue

Returns

void


setEntitySupportCustom

setEntitySupportCustom(id, isCustomProperties?): void

插件程序程序调用,设置该对象状态支持自定义属性在属性窗口显示。

Parameters

NameTypeDefault value
idMcObjectIdundefined
isCustomPropertiesbooleantrue

Returns

void