eda_pcb_primitive_component_modify
Modify a PCB component's attributes including position, rotation, layer, designator, and BOM settings to update the design or metadata.
Instructions
pcb_PrimitiveComponent.modify(primitiveId: string | IPCB_PrimitiveComponent, property: { layer?: TPCB_LayersOfComponent; x?: number; y?: number; rotation?: number; primitiveLock?: boolean; addIntoBom?: boolean; designator?: string | null; name?: string | null; uniqueId?: string | null; manufacturer?: string | null; manufacturerId?: string | null; supplier?: string | null; supplierId?: string | null; otherProperty?: Record<string, any> }) -> Promise<IPCB_PrimitiveComponent | undefined> 修改器件 returns: 器件图元对象
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |