English
Home > PCB_Document > getAutoJobLog
PCB_Document.getAutoJobLog() 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
function getAutoJobLog(jobId: string): Promise<IPCB_AutoJobSnapshot>;1
Parameters
Parameter | Type | Description |
|---|---|---|
jobId | string | 作业 ID |
Returns
Promise<IPCB_AutoJobSnapshot>
作业实时快照
Remarks
被调用时立刻返回,数据取自编辑器主线程缓存,不等待布线进程、布线进行中亦可调用: - logs:布线引擎基础日志(随布线过程持续累积) - result:引擎当前迭代阶段的最优解格式化数据(每次迭代替换为最新最优解) - progress:当前进度、布通率等统计数据
仅适用于 startAutoRouting 与 startAutoLayout 启动的作业; 作业不存在(含编辑器页面刷新后旧 jobId 失效)时返回空快照(logs 为空数组、result / progress 为 null) ADD since EDA v4.1.79