eda_pcb_primitive_component_create
Create a PCB component primitive by placing a library device onto a specified layer at given coordinates, with optional rotation and lock.
Instructions
pcb_PrimitiveComponent.create(component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem | { libraryType: ELIB_LibraryType.FOOTPRINT; libraryUuid: string; uuid: string } | ILIB_FootprintItem | ILIB_FootprintSearchItem, layer: TPCB_LayersOfComponent, x: number, y: number, rotation?: number, primitiveLock?: boolean) -> Promise<IPCB_PrimitiveComponent | undefined> 创建器件 returns: 器件图元对象
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |