Home > PCB_ManufactureData > placePcbOrder
PCB_ManufactureData.placePcbOrder() 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 ordering
Signature
public placePcbOrder(interactive?: boolean, ignoreWarning?: boolean): Promise<boolean>;Parameters
Parameter | Type | Description |
|---|---|---|
interactive | boolean | (Optional) Whether to enable interactive checking. If enabled, a popup will wait for user interaction, and the |
ignoreWarning | boolean | (Optional) Ignore warnings during non-interactive checking. If set to |
Returns
Promise<boolean>
Whether the ordering check passed. Until the input parameters are fully developed, the return value has no practical effect and does not wait for the execution result
Remarks
This API currently only supports interactive checking. The input parameters have no effect for now and are reserved for future development
Example
// 1. 交互式下单检查:弹出检查弹窗等待确认,确认后打开下单页面
// const passed = await eda.pcb_ManufactureData.placePcbOrder(true);
// 2. 静默检查:不弹任何弹窗,忽略警告并直接生成下单资料
// const passed = await eda.pcb_ManufactureData.placePcbOrder(false, true);
// console.log('下单检查结果 ' + passed);
// 下单会真实打开订单页面并产生订单数据,案例中不实际执行
console.log('演示调用:placePcbOrder(true) 交互式检查,或 placePcbOrder(false, true) 静默下单');2
3
4
5
6
7
8
9