eda_pcb_primitive_component_place_component_with_mouse
Bind a selected PCB component to the mouse cursor for placement on the canvas with a single click.
Instructions
pcb_PrimitiveComponent.placeComponentWithMouse(component: { libraryUuid: string; uuid: string } | ILIB_DeviceItem | ILIB_DeviceSearchItem) -> Promise 使用鼠标放置器件 remarks: 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到鼠标,本接口将立即返回 true 的结果
returns: 是否找到器件
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |