English
Home > PCB_Dfm > getDfmAvailability
PCB_Dfm.getDfmAvailability() 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.
判断当前环境是否可执行 DFM 检查
Signature
typescript
function getDfmAvailability(): Promise<IPCB_DfmAvailability>;1
Returns
Promise<IPCB_DfmAvailability>
DFM 可用性
Remarks
所有构建均可调用,用于在调用其它 DFM 接口前探测可用性
当前环境不支持 DFM 时,返回结果的 available 为 false,并通过 reason 说明原因,不抛错 ADD since EDA v4.1.93