News:

All posts discussing pricing or where to buy TurboCAD will be deleted.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Constraint based modelling

Started by scruffmeister, November 24, 2014, 02:47:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scruffmeister

Hi

I'm a new TC user (v20 Deluxe on Windows). I'd like to know if what I am hoping to do is even possible with this software :)

I'd like to model the structure show in the attached image. What this shows is two arms (green, orange) connected by a rod (blue). The arms are fixed such that they can only rotate around X and Y respectively. The rod is a fixed length and can pivot on the ends of the arms where they meet.

I would like to be able to change the angle X in my drawing and have the software calculate angle Y for me whilst respecting all the constraints of the system noted above. I know this kind of simulation can be done in an iterative way by a physics engine, but I'm not sure if TC supports it.

Can I do it, if so how please?

Thanks!

Alvin Gregorio

#1
Hi scruffmeister,

Without the use of Constraints, which is not available in the Deluxe versions, I don't think you're going to be able to achieve what you are ultimately after-- having everything move in unison, within constraints, dynamically as you do your editing/angle-changing.

One of the expert-level Users can substantiate that.

However, we can do something similar, using some basic geometric principles and Tools.  It will be incremental however, not dynamic (one entity will change at a time).

If no one offers a better suggestion, maybe take a look at my attached file and screen-capture.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Tim Stewart

#2
Hi scruffmeister,

this looks like a typical first semester maths problem to me!
I don't see how it would necessarily be an advantage to resolve this with TC, unless I have missed something.  And, that is possible!
I assume you know the lengths of the various arms and the angle X.  So, with a little bit of algebra, using the Cosine Rule perhaps, you should be able to find Y for any X.
You could use Associative Dimensions for the angles, but without constraints, as Alvin mentioned, it would all be slow work.  If constraints were available to you, by the time you had worked out how they operate, it would have been quicker by hand/calculator, unless this is part of a larger project.
This might be resolved by using a spreadsheet?

I hope this helps.

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

scruffmeister

Quote from: Alvin Gregorio on November 24, 2014, 05:51:40 AM
If no one offers a better suggestion, maybe take a look at my attached file and screen-capture.

Hi Alvin,

Thanks for taking the time to help me! What you are proposing might be OK for me as I don't have too many angle I need to find. Would you mind talking me through how to use you drawing to find the info I need please?


Quote from: Tim Stewart on November 24, 2014, 08:23:25 AM
this looks like a typical first semester maths problem to me!
...And, that is possible!

Hi Tim,

Yes, I can resolve this with pencil and paper easily enough. But my example above is simplified - in reality I will need to read lots of angles out of my design as it develops and I manufacturer and iterate (it's a simple model aircraft btw). I'd rather that I can do this in TC rather than have separate workings at this point.

Could you elaborate on how it can be done in TurboCad (Deluxe) please as not withstanding the simplicity of doing it on paper, I'd like to know how to do it in TC? :)

Andy H

#4
I have a tendency to over-complicate things, in node edit mode selecting the top triangle node and snapping it anywhere along the spline curve will alter both angles, the distance where the triangle intersects the circles (where the rod would be) should remain constant, well it seems to be +/- 0.01.

no boubt its not what you want, but was fun playing with, ** edit layer4 shows the setting up for the spline, end edit**

Dean

#5
Quote from: Andy H on November 24, 2014, 08:33:43 AM
I have a tendency to over-complicate things, in node edit mode selecting the top triangle node and snapping it anywhere along the spline curve will alter both angles, the distance where the triangle intersects the circles (where the rod would be) should remain constant, well it seems to be +/- 0.01.

no boubt its not what you want, but was fun playing with, ** edit layer4 shows the setting up for the spline, end edit**

Great Job Andy!
I used Animation lab in TC V21 Deluxe to animate your drawing.
If you download the animation you can use the play slider > frame by frame.
"What do I know, I'm still learning".
Lenovo Legion T5  Intel(R) Core(TM) i7-14th Gen 20 cores Nvidia RTX 4070 Super 16GB Windows 11 home TurboCad 2025 with Animation Lab 6.0

Alvin Gregorio

#6
Quote from: scruffmeister on November 24, 2014, 08:29:54 AM
...
Hi Alvin,

Thanks for taking the time to help me! What you are proposing might be OK for me as I don't have too many angle I need to find. Would you mind talking me through how to use you drawing to find the info I need please?
...

Hi scruffmeister.  Unfortunately, it would take a whole lot of time and typing-- and would be very cumbersome-- to explain in writing the method I set up in my Drawing.  It would be very simple via an audio/video "movie",  but even that would take some time and effort.

What I set up is using very basic geometric principles, so just play with it and use your noggin, you'll see what I am proposing.

Basically:

  • Relocate a Line's Reference Point to an Endpoint
  • Rotate that Line as you wish
  • Relocate the construction-Circle which center-point was at the other Endpoint of that Line, such that the Circle center-point is now at that (relocated) Endpoint"
  • With the Line that used to have the coincident Endpoint with the Line above, relocate its Reference Point to that Endpoint, and relocate the Line to the Endpoint of that Line above
  • Move the corresponding "construction Circle" to that Endpoint
  • ...
(as I say, it's cumbersome to write out the instructions-- and I'm a good typist!)

Some steps can be saved by selecting multiple Objects at once, relocating the Reference Point of that selection (temporarily... for this one action), and Rotating.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Tim Stewart

#7
Hi

if your X and Y pivots are fixed, then it looks like the mechanism has limited rotation - is it reciprocating?  One/both arms, blue and orange for instance, are too short, as the combined lengths are insufficient to pass through the horizontal position, i.e.  blue arm (24'-2 5/16") + orange arm (18'-6 3/8") is not equal to distance A -> B (42'-8 11/16").

Regards Tim
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

scruffmeister

Quote from: Tim Stewart on November 24, 2014, 09:12:04 AM
if your X and Y pivots are fixed, then it looks like the mechanism has limited rotation - is it reciprocating?

No, it's a servo driven linkage. One arm is the motor, one is the surface to be moved - a typical servo rotates through a 60 degree sweep.

scruffmeister

Andy H, Dean - thank you both, this looks like a very interesting idea. I'll have a play with it.

Alvin - thanks for the info, I think with what you've given I can probably get started.

Really appreciate the help! I know it seems newbie and probably is but gotta start somewhere :)

Alvin Gregorio

Quote from: scruffmeister on November 24, 2014, 09:54:19 AM
Andy H, Dean - thank you both, this looks like a very interesting idea. I'll have a play with it.

Alvin - thanks for the info, I think with what you've given I can probably get started.

Really appreciate the help! I know it seems newbie and probably is but gotta start somewhere :)

One thing I didn't mention, that you will need to know:

To rotate an Object-- such as the blue Line that represents the rod, in this case-- specifically, such that the Endpoint opposite the Endpoint where the Reference Point was relocated, after selecting, we hold down the CTRL-key, hover over the rotation-knob, which brings up a little hand, and with that little hand, grab the rotation-knob, and Vertex-Snap it to that other Endpoint.

Then, without unSelecting the Line, we can use Intersection-Snap to rotate the Line to a specific intersection-- the intersection of two construction-Circles, in this case.

Again... Soooo much easier to explain via a movie-- or remote-assistance, or some sort of video-chat, or similar media-- than trying to explain it in words.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

It's possible to do only by the Edit tool and a circle, moving the node's in 2 step's.
Like Tim say, it can't go a full round, but if i understand it correct, that is not the way it's planned to do.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

Quote from: Torfinn on November 24, 2014, 02:19:57 PM
It's possible to do only by the Edit tool and a circle, moving the node's in 2 step's.
Like Tim say, it can't go a full round, but if i understand it correct, that is not the way it's planned to do.

Torfinn

Your Dimensions' Texts didn't make the screen-capture, Torfinn.  Too small.
I assume that the Line lengths stayed the same after the Node Edit?

If "yes", can you elaborate on what you did?

Thanks, Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#13
Quote from: Alvin Gregorio on November 24, 2014, 04:12:55 PM
Quote from: Torfinn on November 24, 2014, 02:19:57 PM
It's possible to do only by the Edit tool and a circle, moving the node's in 2 step's.
Like Tim say, it can't go a full round, but if i understand it correct, that is not the way it's planned to do.

Torfinn

Your Dimensions' Texts didn't make the screen-capture, Torfinn.  Too small.
I assume that the Line lengths stayed the same after the Node Edit?

If "yes", can you elaborate on what you did?

Thanks, Alvin

Ooohh.... I see/understand what you did Torfinn.

Yes, much quicker and easier than all that relocating Reference Point and rotating nonsense that I suggested.

Good job.  -Alvin

[I made a little audio-less video.  I'm uploading it now to YouTube.  I'll report back if/when it's done uploading and available for viewing.  I'm on a veeerrryy slow connection speed these days.)
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#14
Just a note.  The reason for my other Line and its corresponding Circle in my original Drawing (Reply #2)-- the thick Cyan dashed Line-- is that its length is the combined length of the lime-green Line and the blue Line.  By placing that and its corresponding Circle, it tells me the largest angle I can rotate the gold Line clockwise.

There could be, should be, another set of this Line and its corresponding Circle for the length of the gold Line and the Blue Line.  Circle center-point at the bottom endpoint of the gold Line.  This will indicate the limit the lime-green Line can be rotated counter-clockwise.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

Hi Alvin

Attach some png's, by selecting node's and select one of the 2 node that touch a circle, move to new place, new circle and move the "wrong" point to the intersection will make the same distance, new dimension on the top line and finish.

Made the text bigger, hope it's possible to see

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

Quote from: Torfinn on November 24, 2014, 05:37:19 PM
Hi Alvin

Attach some png's, by selecting node's and select one of the 2 node that touch a circle, move to new place, new circle and move the "wrong" point to the intersection will make the same distance, new dimension on the top line and finish.

Made the text bigger, hope it's possible to see

Torfinn

Yes.  I see it Torfinn. I understand it.  I hope scuffmeister does as well.

Thanks for the time and effort in producing and uploading those images Torfinn.  And, again, really good job in figuring out a simpler & quicker method.

My little video is still uploading...  I hope it uploads and works okay.  I'd be curious if you think it shows your method, Torfinn.  -Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

#17
I made a little, low-quality, non-sound, video that illustrates what I think is Torfinn's method.
You can find it on YouTube here.

It's probably best viewed in 480p, in the default view-window size (you might have to squint to see the Tool-tips).  If, while viewing, it gets blurry on you, just rewind a bit and watch that part over.

As I believe Torfinn did, I used a single 4-vertice Polyline.  But I could have just as easily used three 2-vertice Lines, endpoints coincident to replicate the Polyline.  If doing that, when engaging the Edit Node Tool, we just select the three Lines by holding down the Shift-key and right-clicking on each, using a drag-window, (or using a super-selector?).

Also, please read the note I entered at this Post, Reply #15, this Thread; I think it's important to keep in mind.

This was a fun exercise.  I learned something today.

-Alvin
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)