跳到主要内容

IDP.DB.Methods.putElementLabelsAsync() function

添加或更新指定设计对象标签

Signature:

function putElementLabelsAsync(elementId: IDPCommon.DB.Types.ElementId, updateData: ElementLabelData[]): Promise<void>;

Links: function putElementLabelsAsync(elementId: IDPCommon.DB.Types.ElementId, updateData: ElementLabelData[]): Promise<void>;

Parameters

Parameter

Type

Description

elementId

IDPCommon.DB.Types.ElementId

设计对象ID

updateData

ElementLabelData[]

待更新设计对象标签数据

Returns:

Promise<void>

Exceptions

{ Error } Error.name 见 IDP.DB.Types.ElementLabelWriteErrorType, Error.message 指出具体失败原因