autocad_add_door
Draw a door leaf and quarter-circle swing arc in AutoCAD by setting the hinge jamb, width, closed angle, and swing angle.
Instructions
Draw a door: leaf line + quarter-circle swing arc anchored at the hinge.
The wall itself is not trimmed — leave a gap in the wall (e.g. two separate autocad_draw_wall calls) sized to the door width, then anchor the door at the gap jamb.
Args: params (AddDoorInput): - hinge (Point): hinge-side jamb point. - width (float): door width, e.g. 900 (mm). - closed_angle (float): DEGREES along the wall for the closed door. - swing_angle (float): DEGREES of swing, + = CCW (default 90). - layer (str): door layer (default 'DOORS').
Returns: str: JSON {"status", "type": "DOOR", "width", "hinge", "leaf", "swing_arc"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |