eda_pcb_primitive_component_get
Retrieve a component primitive object from the active EasyEDA Pro PCB document by its primitive ID. Returns the device object or undefined when not found.
Instructions
pcb_PrimitiveComponent.get(primitiveIds: string) -> Promise<IPCB_PrimitiveComponent | undefined>
获取器件
returns: 器件图元对象,undefined 表示获取失败
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |