Home > PCB_Document > clearRouting
PCB_Document.clearRouting() method
此 API 当前处于 BETA 预览状态,希望得到开发者的反馈。它的任何功能都可能在接下来的开发进程中被修改,请不要将它用于任何正式环境。
清除布线
签名
typescript
clearRouting(type?: 'all' | 'net' | 'connection'): Promise<boolean>;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
type | 'all' | 'net' | 'connection' | (可选) 清除类型,如若需要指定清除类型,请提前选择指定图元 |
返回值
Promise<boolean>