Repository navigation
Colours, coordinate systems, centre of mass, bounding box and section properties - #284
Merged
Merged
Conversation
…ead 'extra' as Django's QuerySet.extra)
…rance, get_appearance, create_coordinate_system, create_center_of_mass_point, create_bounding_box, get_section_properties
…ix and multi-body changes; changelog and queue
This was referenced Nov 28, 2026
…s; the appearance and reference tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six new tools, all in beta (queue items 36 and 39).
Colours (
set_appearance,get_appearance)[r, g, b]or#rrggbb, with optional transparency.reset: trueremoves a feature's, body's or face's own colour.get_appearancereads the colour that shows and says which level it comes from. A face's colour shows over its feature's, a feature's over its body's, and a body's over the part's.Reference and analysis extras
create_coordinate_system: a coordinate system at a point, with axes along the model's. Its transform is read back.create_center_of_mass_point: SolidWorks' Center of Mass point.create_bounding_box: the Bounding Box feature, with the stock size.get_section_properties: a planar face's area, centroid, second moments of area, polar moment and principal moments.Probes and live tests (SolidWorks 2026 SP4)
design.md.Also in this PR
extra, which Bandit took for Django'sQuerySet.extra. There is no SQL; it is renamed toown_fields.Spec:
openspec/changes/appearance-and-reference-tools/.Checks
There is no demo GIF yet; that waits for your demo.