Home > SYS_Tool > pcbComparison
SYS_Tool.pcbComparison() 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.
PCB 对比
Signature
public pcbComparison(pcb1: string | { projectUuid: string; pcbUuid: string } | File, pcb2: string | { projectUuid: string; pcbUuid: string } | File, options?: { valUnit?: undefined | ESYS_Unit.MILLIMETER | ESYS_Unit.CENTIMETER | ESYS_Unit.INCH | ESYS_Unit.MIL; deviation?: undefined | number; comparisonSize?: undefined | number }): Promise<ISYS_PcbComparisonResponse>;Parameters
Parameter | Type | Description |
|---|---|---|
pcb1 | string | { projectUuid: string; pcbUuid: string } | File | PCB 1,可以为:①当前工程内的 PCB 的 UUID;②其它工程的工程 UUID 和 PCB UUID;③PCB 文件数据 |
pcb2 | string | { projectUuid: string; pcbUuid: string } | File | PCB 2,可以为:①当前工程内的 PCB 的 UUID;②其它工程的工程 UUID 和 PCB UUID;③PCB 文件数据 |
options | { valUnit?: undefined | ESYS_Unit.MILLIMETER | ESYS_Unit.CENTIMETER | ESYS_Unit.INCH | ESYS_Unit.MIL; deviation?: undefined | number; comparisonSize?: undefined | number } | (Optional) 对比参数 |
Returns
Promise<ISYS_PcbComparisonResponse>
PCB 对比响应:success = true 时 data 为对比结果;success = false 时 error 包含错误码与信息
Remarks
ADD since EDA v4.2