Home > PCB_Document > startCalculatingRatline
PCB_Document.startCalculatingRatline() method
Warning: This API is now obsolete.
since EDA v4.2
Start the ratline calculation function
Signature
typescript
function startCalculatingRatline(): Promise<boolean>;1
Returns
Promise<boolean>
Whether the operation is successful
Remarks
A ratline calculation will be triggered when starting
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 started = await eda.pcb_Document.startCalculatingRatline();
console.log('started:', started);
// 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