eda_sch_primitive_component_create
Creates a schematic primitive component (device or symbol) in EasyEDA Pro at specified coordinates, with options for rotation, mirror, BOM, and PCB inclusion.
Instructions
sch_PrimitiveComponent.create(component: { libraryType?: ELIB_LibraryType.DEVICE; libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem | { libraryType: ELIB_LibraryType.SYMBOL; libraryUuid: string; uuid: string } | ILIB_SymbolItem | ILIB_SymbolSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean) -> Promise<ISCH_PrimitiveComponent | undefined> 创建器件 returns: 器件图元对象
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |