eda_sch_primitive_rectangle_create
Create a schematic rectangle primitive by specifying top-left coordinates, width, height, and optional styling like corner radius, rotation, colors, line width, and fill style. Returns the rectangle object for further manipulation.
Instructions
sch_PrimitiveRectangle.create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null, fillStyle?: ESCH_PrimitiveFillStyle | null) -> Promise<ISCH_PrimitiveRectangle | undefined> 创建矩形 returns: 矩形图元对象
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 按官方签名顺序排列的JSON参数数组 | |
| windowId | No | 目标EDA窗口ID;省略时使用当前活动窗口 |