swpilotcli-feature-extrude-boss
Extrude the currently active sketch to create a Boss-Extrude feature (adds material).
Prerequisites
- SolidWorks is running with an active Part document
- A sketch must be active in editing mode (run
sketch-on-facethensketch-drawfirst)
Usage
dotnet run --project ./sup_tools/swpilotcli-feature-extrude-boss/scripts/ExtrudeBoss/ExtrudeBoss.csproj -- <depth_mm>
Arguments
| Arg | Description |
|-----|-------------|
| depth_mm | Extrusion depth in millimetres (e.g. 10) |
Examples
# Extrude active sketch 10mm
dotnet run ... -- 10
# Extrude 25.5mm
dotnet run ... -- 25.5
How it works
- Reads
depth_mmfrom command-line argument - Calls
FeatureExtrusion3(Blind, single direction, sketch-plane start) - Calls
EditRebuild3andGraphicsRedraw2
Notes
- This tool exits sketch mode as part of creating the feature
- For cutting material instead of adding it, use
extrude-cut - Typical flow:
sketch-on-face→sketch-draw→extrude-boss