SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

constrained lines swapping places (by Randall Lee Reetz )
I've a dynamic linkage in 2D. Imagine something like an articulated bicycle suspension. I've used constraints to create the dynamic simulation. All points and lines have been drawn on the same drawing plane. Everything starts out working, and then out of nowhere, horizontal lines that are constrained in line and parallel to each-other (joined at a point), swap around that point of intersection (segment that was on right is now on left and vice versa). Same with vertical lines joined at a point??

Q 1: How do I set things up so that this doesn't happen?
Q 2: Once it does happen how do I fix it?
Q 3: Is there some way to drag a line even after it has been constrained?

Note: Let me explain more clearly. Imagine a two vertical lines joined together at a point. Both are constrained vertically. The top line is constrained in length to 1, the bottom line is constrained to length 4. Now lets say that I have also a horizontal line that is constrained to the position of the joining point of the above two vertical lines. Well what happens is that the vertical lines often end up swapping positions (long one on top, short one below), causing the position of the horizontal line to shift as well and completely screwing up the mechanical linkage I am designing.

????
Tue Apr 4 2023, 22:47:46
I am using SolveSpace.... (by Randall Lee Reetz )
... on 2018 Intel mac running Ventura.
Tue Apr 4 2023, 22:51:11
Orientation constraints? (by Randall Lee Reetz )
Is there a means of constraining the orientation of a line segment (always right to left or top to bottom relative to another object? Is there a way to tell the order of points in a polygon? Is there a way to tell a point on a line segment to always stay to the left (right, top, or bottom) of another point? Etc?
Tue Apr 4 2023, 22:59:32
(no subject) (by ruevs)
Sometimes sketches (or 3d objects) "flip" to a (valid) solution that is not the desired one. It is currently unavoidable in general. Here is the issue tracking this https://github.com/solvespace/solvespace/issues/76

However there are many workarounds to fix it when it happens. the easiest one is to:

************************
Temporarily select "relax constraints and dimensions" from the group properties in the text window, "straighten" the sketch roughly and then turn the option off.
************************

https://github.com/solvespace/solvespace/issues/1282
https://github.com/solvespace/solvespace/issues/770

This has been discussed several times on the forum as well:
The classic one from 2015:
https://solvespace.com/forum.pl?action=viewthread&parent=211
https://solvespace.com/forum.p...;parent=3108&tt=1594683003


In your particular case the problem can be completely avoided by replacing the two line segments you described with a single one (with a total length equal to the combined length of the original two) and add a "datum point" on the line segment constrained a certain distance from one end.
Wed Apr 5 2023, 07:51:02
(no subject) (by ruevs)
Wed Apr 5 2023, 08:09:15
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.