News:

When posting a problem be sure to include which version you are using.  Give as much information as possible.  If the problem is with a specific file be sure to attache it to your post.

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.

Joining two parts with parametric constraints

Started by triumdh, April 20, 2020, 12:43:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

triumdh

Hello forum,
I am trying to constrain multiple parts to each other, so rotation of one part will cause the rotation of another. Eg a bicycle front gear and pedals. I am looking for a scenario that would rotate the gear if I move the pedal.

Any help greatly appreciated.

Alvin Gregorio

Quote from: triumdh on April 20, 2020, 12:43:53 PM
Hello forum,
I am trying to constrain multiple parts to each other, so rotation of one part will cause the rotation of another. Eg a bicycle front gear and pedals. I am looking for a scenario that would rotate the gear if I move the pedal.

Any help greatly appreciated.

Henry and I did a lot of work on something like this.  It was for a Clock.  Posted example files and pictures.
A few months ago. Maybe do a Search for the term Clock in the Subject line.
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

Quote from: triumdh on April 20, 2020, 12:43:53 PM
Hello forum,
I am trying to constrain multiple parts to each other, so rotation of one part will cause the rotation of another. Eg a bicycle front gear and pedals. I am looking for a scenario that would rotate the gear if I move the pedal.

Any help greatly appreciated.

Can you provide us an image of what you have thus far.  I'd ask for the TurboCAD drawing file, but more than likely you are working in a much newer version than I can open in my version-21.
Maybe post both.
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)

murray dickinson

#3
Constraints can be formulaic, and they can be related to each other, so an angular constraint can be given a variable name and a child constraint can be expressed as that variable multiplied by the ratio of the gear train.  Constraints haven't been able to be (conveniently or convincingly) animated until now without Anilab, but the new feature teaser for 2020 says that it's *surprise!* a new feature.  I experimented with this in older versions a couple of months ago, and I did animate a crankshaft linkage using macro recorder, but it's slow and choppy, especially if using 3D components built on constrained 2D figures.

nikkipollard

Constraints in Turbocad are 2d tools. You can only constrain  items on the same work plane.

It is possible to create simple models using constrained 2d sketches and compound profiles.
but you need to plan the project carefully right from the beginning.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

murray dickinson

Quote from: nikkipollard on April 20, 2020, 11:19:08 PM
Constraints in Turbocad are 2d tools. You can only constrain  items on the same work plane.

It is possible to create simple models using constrained 2d sketches and compound profiles.
but you need to plan the project carefully right from the beginning.

That's the case with direct geometric relationships like coincidence, tangency, orthogonal relationships and connections, Nikki, but you can relate entities on different WPs numerically, relatively and with formulas using variables, and constraints themselves can be on any WP.  Constraints don't impose any limitation on model complexity, there's no maximum number of constraints per object or file.  TC's constraints could be perceived as  inconvenient compared to the way that some programs implement constraints, if you're more familiar with other workflows, but the implication of them being feeble or limited is not correct.  TC first used D-Cubed constraints in Solid Modeler in the late 1990s, and that was before Siemens bought D-Cubed.  They are not lightweight.



Alvin Gregorio

I learn SO MUCH, carefully reading so as to comprehend, Murray's posts.
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)

nikkipollard

I didn't say it wasn't possible I said you need to plan the project. It sounded like the model was already drawn.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

triumdh

Quote from: Alvin Gregorio on April 20, 2020, 02:55:43 PM
Quote from: triumdh on April 20, 2020, 12:43:53 PM
Hello forum,
I am trying to constrain multiple parts to each other, so rotation of one part will cause the rotation of another. Eg a bicycle front gear and pedals. I am looking for a scenario that would rotate the gear if I move the pedal.

Any help greatly appreciated.

Henry and I did a lot of work on something like this.  It was for a Clock.  Posted example files and pictures.
A few months ago. Maybe do a Search for the term Clock in the Subject line.

I think I found the post "Parametric Parts (via Parametric Part Script Editing)". Thank you. There is a lot to digest.

triumdh

Quote from: murray dickinson on April 21, 2020, 02:09:37 AM
Quote from: nikkipollard on April 20, 2020, 11:19:08 PM
Constraints in Turbocad are 2d tools. You can only constrain  items on the same work plane.

It is possible to create simple models using constrained 2d sketches and compound profiles.
but you need to plan the project carefully right from the beginning.

That's the case with direct geometric relationships like coincidence, tangency, orthogonal relationships and connections, Nikki, but you can relate entities on different WPs numerically, relatively and with formulas using variables, and constraints themselves can be on any WP.  Constraints don't impose any limitation on model complexity, there's no maximum number of constraints per object or file.  TC's constraints could be perceived as  inconvenient compared to the way that some programs implement constraints, if you're more familiar with other workflows, but the implication of them being feeble or limited is not correct.  TC first used D-Cubed constraints in Solid Modeler in the late 1990s, and that was before Siemens bought D-Cubed.  They are not lightweight.

Hello Murray,
Thank you for your answer. It appears you have some experience with parametric constraints in TurboCAD.
I found the following documentation on Parametric Constraints:
https://www.turbocad.com/content/parametric-constraints
https://turbocaddoc.atlassian.net/wiki/spaces/TC21UG/pages/14320174/Creating+a+Parametric+Part
The first one lists the following without explanation:
    point to point coincident
    point to line coincident
    parallel
    perpendicular
    tangential
    concentric
    symmetrical
    horizontal
    vertical
    mid-point
The second tutorial (from a different web address) doesn't leave a clear understanding of ideal use-case or design approach.
Did you ever find and in-depth documentation or tutorials that might be helpful?
Am I correct in assuming you cannot perform 2d boolean operations on constrained objects?

Thanks in advance

Alvin Gregorio

Quote from: triumdh on April 21, 2020, 03:22:37 PM
Quote from: Alvin Gregorio on April 20, 2020, 02:55:43 PM
Quote from: triumdh on April 20, 2020, 12:43:53 PM
Hello forum,
I am trying to constrain multiple parts to each other, so rotation of one part will cause the rotation of another. Eg a bicycle front gear and pedals. I am looking for a scenario that would rotate the gear if I move the pedal.

Any help greatly appreciated.

Henry and I did a lot of work on something like this.  It was for a Clock.  Posted example files and pictures.
A few months ago. Maybe do a Search for the term Clock in the Subject line.

I think I found the post "Parametric Parts (via Parametric Part Script Editing)". Thank you. There is a lot to digest.

I don't think that is it. That is something MUCH DIFFERENT than Constraints.

Here's a Link
, to that "Clock Dial question" Topic thread.  This has some good examples on the use of Constraints for something somewhat similar to what you are wanting to do.
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)

murray dickinson

I've trawled through a lot of D-Cubed's own documentation over the years, they've been used by TC for over twenty years, although they only became mainstream TC Pro around V10. 
You can learn a lot using auto-constraint.  When you enable them, the list of constraints available is an option checklist at bottom left of the drawing screen, you can uncheck the ones you don't want to begin with, or you can leave them all enabled and remove the constrained blockmark on the drawing if you run up against an incompatible one.  You'll probably need to read the documentation to learn how to assign variables as dimensions that drive them, and where they're available for editing in the variables palette. 
You can build 3D objects with compound profile enabled, which makes the 3D part associated to the profiles and paths.  When that's done, the 2D profiles and paths can be edited manually, or they can be constrained and edited numerically through the variables palette, and the 3D objects rebuild to reflect the edit. 

Alvin Gregorio

triumdh--

Can you provide us an image of what you have thus far.  I'd ask for the TurboCAD drawing file, but more than likely you are working in a much newer version than I can open in my version-21.
Maybe post both.
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)

murray dickinson

Quote from: nikkipollard on April 21, 2020, 11:36:40 AM
I didn't say it wasn't possible I said you need to plan the project. It sounded like the model was already drawn.

Nikki, if part tree's enabled, you can jump into the history and rebuild part tree feature entities through selection info's "edit content" palette option.   Even if an original component or operand in the part might originally been a 3D primitive, it can be rebuilt as an isolated feature in part tree with profiles and paths, as sweeps, revolves or whatever, constraining them either during the rebuild or even after the fact: even with a completed model.  When that's done, editing the part through the variables palette is like stepping into the part tree at that feature to edit without having to pay the same regard to suppressing subsequent operations to get access to the step.  It's more effort than it's worth to do it if the part's signed off, but if it might need iterative revision, or if it's the basis for a family of parts with the same features but different sizes, it's completely doable. 

murray dickinson

#14
Last item: you can perform booleans on 3D parts built with constrained profiles and paths, but you can't perform 2D booleans on the constrained figures.  If the part tree's enabled through compound profile, changes to the profiles and paths used to generate the operands, whether they're made manually or as variables through dimensional and geometric constraints, cascade through the part history to define the end result.

AussieBloke

Murray Im reading your last 2 posts with real keen interest, since your know how here is really detailed can you do some screen grabs to enlighten us some more on rhis very important aspects of Turbocad, thanks.  :D

murray dickinson

I don't understand what you want grabs of, Daz?     I've described some of what I've done over the years, experimenting with what I've described might be more useful to anyone who wants to try it or build on it than looking at a picture, unless you're thinking about something in particular?   

AussieBloke

Murray your reply #13 & 14 got my attention and Ive bookmarked them to investigate this further. After re reading its now clear your what your referring too. Had a look at Dcubed on the net and its mostly modern info, do you have or know of older tech info re dcube constraints that might be useful  info?