add_swept_pipe
Sweep a circular pipe or tube along a 2D path in SolidWorks. Specify centerline coordinates and diameter, with optional bend radius for corners, to generate a 3D pipe and retrieve mass properties.
Instructions
Sweep a circular profile (pipe/tube/rod) along a 2D path on the Front plane.
path_mm = [[x, y], …] in mm is the centreline. Interior corners are rounded with bend_radius_mm (required when the path turns; a 2-point straight path needs none). diameter_mm = outer Ø; the round profile is auto-generated perpendicular to the path. Returns mass properties. Use new_part first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Pipe | |
| path_mm | Yes | ||
| diameter_mm | Yes | ||
| bend_radius_mm | No |