Skip to content

feat: batch FeatureScript builders and sketch constraints#14

Open
hedless wants to merge 2 commits intodevelopfrom
feature/batch-featurescript
Open

feat: batch FeatureScript builders and sketch constraints#14
hedless wants to merge 2 commits intodevelopfrom
feature/batch-featurescript

Conversation

@hedless
Copy link
Copy Markdown
Owner

@hedless hedless commented Mar 4, 2026

Summary

  • Batch FeatureScript builders: Custom FeatureScript features (rectExtrude, polyExtrude, cabinetBox) that combine sketch + extrude into single addFeature API calls, reducing usage by 2-8x per operation
  • Sketch constraints: anchorX/anchorY positioning, variableWidth/variableHeight dimensions, horizontalEdges/verticalEdges orientation constraints for fully-constrained sketches
  • New tools: deploy_batch_builders, batch_rect_extrude, batch_poly_extrude, batch_cabinet_box, create_variable_studio, create_sketch_polygon, draft angle on extrude, edge IDs in body details

Test plan

  • All 586 tests pass (pytest)
  • Ruff lint and format clean
  • Live test batch builders against Onshape document (pending API quota reset)
  • Verify sketch constraints produce fully-constrained (black) sketches in Onshape UI

🤖 Generated with Claude Code

hedless and others added 2 commits March 4, 2026 13:44
…t extrude

- Add sketch constraint methods: horizontal, vertical, length, distance, fix
- Add create_sketch_polygon tool for closed polyline shapes (trapezoids, etc.)
- Add horizontalEdges/verticalEdges params for fully constraining polygons
- Add anchorX/anchorY params for positional constraints on rectangles and polygons
- Add variableWidth/variableHeight/variableLengths for variable-driven sketches
- Add create_variable_studio, get_variables, set_variable tools
- Add variable type inference (LENGTH/ANGLE/ANY) from expression suffix
- Add draft angle support on extrude (draftAngle, draftPullDirection)
- Fix ThickenBuilder missing BTFeatureDefinitionCall-1406 wrapper
- Fix variables API endpoints (no version prefix)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Custom FeatureScript features (rectExtrude, polyExtrude, cabinetBox)
combine sketch + extrude into single addFeature calls, reducing API
usage by 2-8x. Includes deploy_batch_builders tool for one-time
Feature Studio setup per document.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant