Home > PCB_Document > stopCalculatingRatline
PCB_Document.stopCalculatingRatline() method
Warning: This API is now obsolete.
since EDA v4.2
Stop the ratline calculation function
Signature
typescript
function stopCalculatingRatline(): Promise<boolean>;1
Returns
Promise<boolean>
Whether the operation is successful
Example
javascript
// 1. 创建测试 PCB 并打开(飞线开关作用于当前激活的 PCB)
const pcbUuid = await eda.dmt_Pcb.createPcb();
await new Promise(r => setTimeout(r, 1500));
await eda.dmt_EditorControl.openDocument(pcbUuid);
await new Promise(r => setTimeout(r, 1000));
// 2. 停止飞线计算
const stopped = await eda.pcb_Document.stopCalculatingRatline();
console.log('stopped:', stopped);
// 3. 清理测试 PCB
await eda.dmt_Pcb.deletePcb(pcbUuid);1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12