Home > SCH_PrimitiveWire > modify
SCH_PrimitiveWire.modify() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
修改导线
Signature
typescript
modify(primitiveId: string | ISCH_PrimitiveWire, line?: WireNetGroupCreateOptions['line'], net?: WireNetGroupCreateOptions['net'], color?: WireNetGroupCreateOptions['color'], lineWidth?: WireNetGroupCreateOptions['lineWidth'], lineType?: WireNetGroupCreateOptions['lineType']): ISCH_PrimitiveWire | undefined;
1
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | ISCH_PrimitiveWire | 导线的图元 ID 或导线图元对象 |
line | WireNetGroupCreateOptions['line'] | (Optional) 多段线坐标组,每段都是连续的一组 |
net | WireNetGroupCreateOptions['net'] | (Optional) 网络名称 |
color | WireNetGroupCreateOptions['color'] | (Optional) 导线颜色, |
lineWidth | WireNetGroupCreateOptions['lineWidth'] | (Optional) 线宽,范围 |
lineType | WireNetGroupCreateOptions['lineType'] | (Optional) 线型, |
Returns
ISCH_PrimitiveWire | undefined
导线图元对象