Repository navigation
Sketch constraints: preserving design intent when editing geometry #1881
Closed
maxwellsauber
started this conversation in
Ideas
Replies: 3 comments 9 replies
|
Great Idea, I already mentioned something similar to set constraints like parallelism or concentric circles. You're example goes much further but I think i like it. I'll search for my example and delete it, we don't need it twice. |
3 replies
|
One time commands are not constraints
<https://www.merriam-webster.com/dictionary/constraint>.
Horizontal/Vertical one-time commands exist today by holding the shift key.
Concentric circles snap together fairly easily.
…On Thu, Nov 26, 2026 at 1:41 AM Stefan ***@***.***> wrote:
@maxwellsauber <https://github.com/maxwellsauber> @uninteressant2026
<https://github.com/uninteressant2026> it sounds like one-time commands
such as "make parallel", "make perpendicular" and "make concentric" would
cover what you're after. @maxwellsauber <https://github.com/maxwellsauber>
would you like to build them as a small PR of their own? They should store
no relationship, leave the .lyl format as it is, and change nothing in the
sketch for anyone who doesn't use them.
—
Reply to this email directly, view it on GitHub
<#1881?email_source=notifications&email_token=AOR4YJ6OVSJPIABONI52VQ3527GC3A5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGEZTKMBZUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-19913509>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOR4YJ4TKG2LGAI64YW6HXL527GC3AVCNFSNUABJKJSXA33TNF2G64TZHMYTGNZTGY3DAMZRGI5UI2LTMN2XG43JN5XDWMJRGM2TINRQGWQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AOR4YJ4J7KOX6PMKGBGQ7YT527GC3A5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGEZTKMBZUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/AOR4YJ7YWBR744Z42NE7MZL527GC3A5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGEZTKMBZUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
5 replies
|
I appreciate the offer, but the linked mirror and associative offset were
actually just nice-to-have features I added after getting the constraint
system working.
The constraint system itself was what I was interested in contributing. I
understand that's not the direction you want to take Layerling right now,
but I'm not particularly interested in spending time splitting those two
features into separate PRs.
For now, I'll continue developing my fork and see where things go.
…On Thu, Nov 26, 2026 at 8:25 AM Stefan ***@***.***> wrote:
@maxwellsauber <https://github.com/maxwellsauber> fair point, they aren't
constraints. Here is what I can offer as a start. Two parts of your PR keep
design intent with one visible link each and no solver: the offset that
follows its outline (your label example) and the linked mirror (your
picture-hanger example). If you'd like, send each as a small PR of its own.
The link should be visible in the sketch and easy to release, files without
it must stay exactly as they are, and nothing should change for anyone who
doesn't use it. Stored constraints with a solver I'd leave out for now and
look at again if more people ask for them. Your other two examples are
already covered: *Keep holes and small parts* on a group keeps the
mounting holes in place, and the *Tube* keeps its wall thickness.
—
Reply to this email directly, view it on GitHub
<#1881?email_source=notifications&email_token=AOR4YJ3APGHEM6CDAQKB5IT53AVOPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGIZTAMRVUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-19923025>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOR4YJ6433SNX23QZJCGXZL53AVOPAVCNFSNUABJKJSXA33TNF2G64TZHMYTGNZTGY3DAMZRGI5UI2LTMN2XG43JN5XDWMJRGM2TINRQGWQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/AOR4YJ3YYJXAFAZDMDWDY2D53AVOPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGIZTAMRVUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ>
and Android
<https://github.com/notifications/mobile/android/AOR4YJ2FVR6IJZT2SWS5D5L53AVOPA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJZGIZTAMRVUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been experimenting with adding sketch constraints to Layerling, particularly for situations where changing one measurement means manually correcting several others.
The goal isn't to turn Layerling into a fully parametric CAD package. It's to make relatively simple design changes easier without losing the relationships between parts of a sketch.
I've put together an experimental implementation with several interactive examples:
Mounting plate: Resize a plate while keeping its mounting holes centered and maintaining their spacing.
Spacer ring: Change the inside diameter while maintaining a consistent radial wall thickness.
Custom label: Reshape an outline while an associated border follows automatically.
Picture-hanger plate: Adjust one side while linked geometry maintains the intended symmetry.
Each example includes guided instructions so you can experiment directly.
Live demo: https://layerling.maxsauber.com/
This is an unofficial experimental build. I've shared the implementation with Stephan, and he encouraged me to bring some concrete examples to the community to demonstrate what these features could offer.
I'm especially interested in three things:
The implementation is still experimental, and I'm not proposing that everything should be incorporated as-is. I'd much rather establish what's genuinely useful before deciding how far to take it.
Feedback, criticism, and additional real-world examples are all welcome.
All reactions