English
Home > SCH_SourcePrimitiveAttribute > updateNetLabel
SCH_SourcePrimitiveAttribute.updateNetLabel() method
修改网络标签
Signature
typescript
function updateNetLabel(
options: ISCH_SourcePrimitiveAttributeUpdateNetLabelOptions,
): Promise<TSCH_SourceResult<ISCH_SourcePrimitiveAttributeNetLabelResult>>;1
2
3
2
3
Parameters
Parameter | Type | Description |
|---|---|---|
options | 网络标签修改选项 |
Returns
Promise<TSCH_SourceResult<ISCH_SourcePrimitiveAttributeNetLabelResult>>
网络标签图元 ID 与网络名称,失败时通过 error.code 返回错误码
Remarks
**写入异步生效**:本接口返回 ok 仅表示已写入 Source 数据;网表 / DRC / 区域查询等接口异步刷新, 通常需等待约 1 秒才能读到本次改动;写后立即验证请使用 Source 的 get / getGeometry, 或等待约 1 秒后重试;不要把紧随其后的旧快照当成写入失败 ADD since EDA v4.1.83 cli - 本接口直接操作工程源数据,无需前端已打开对应图页