Home > SCH_ManufactureData > placeComponentsOrder
SCH_ManufactureData.placeComponentsOrder() 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.
Component ordering
Signature
public placeComponentsOrder(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
Example
// 1. 交互式下单检查:弹出检查弹窗等待确认,确认后打开购买页面
// const passed = await eda.sch_ManufactureData.placeComponentsOrder(true);
// 2. 静默检查:不弹任何弹窗,忽略警告并直接生成下单资料
// const passed = await eda.sch_ManufactureData.placeComponentsOrder(false, true);
// console.log('下单检查结果 ' + passed);
// 下单会真实打开订单页面并产生订单数据,案例中不实际执行
console.log('演示调用:placeComponentsOrder(true) 交互式检查,或 placeComponentsOrder(false, true) 静默下单');2
3
4
5
6
7
8
9