News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

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 question

Started by DonCW, February 08, 2021, 12:13:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DonCW

The attached shows a gable from an upper cabinet. The adjustable shelf pin holes are constrained and will stay 37mm from the edges if the width is changed. If I want to move the holes vertically it requires moving each set of holes individually. Is there a way to constrain the 2 sets of holes so they can be moved vertically in one operation.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Alvin Gregorio

Quote from: DonCW on February 08, 2021, 12:13:40 PM
The attached shows a gable from an upper cabinet. The adjustable shelf pin holes are constrained and will stay 37mm from the edges if the width is changed. If I want to move the holes vertically it requires moving each set of holes individually. Is there a way to constrain the 2 sets of holes so they can be moved vertically in one operation.

Hello Don.  In the scenario of moving the two sets of holes, will the dimension between each of two holes always remain the same-- the 32mm?
If so, what changes in that scenario?; just the Var2 and Var5 distances?
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: DonCW on February 08, 2021, 12:13:40 PM
The attached shows a gable from an upper cabinet. The adjustable shelf pin holes are constrained and will stay 37mm from the edges if the width is changed. If I want to move the holes vertically it requires moving each set of holes individually. Is there a way to constrain the 2 sets of holes so they can be moved vertically in one operation.

Try changing the Formula in the Calculator Palette for Var5 to "=Var2".

I think that is what you're after Don.

I did that in the attached edited copy.  Change the Value of Var2 to change both resultant values of Var2 and Var5.
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)

DonCW

Quote from: Alvin Gregorio on February 08, 2021, 01:52:25 PM
Quote from: DonCW on February 08, 2021, 12:13:40 PM
The attached shows a gable from an upper cabinet. The adjustable shelf pin holes are constrained and will stay 37mm from the edges if the width is changed. If I want to move the holes vertically it requires moving each set of holes individually. Is there a way to constrain the 2 sets of holes so they can be moved vertically in one operation.

Try changing the Formula in the Calculator Palette for Var5 to "=Var2".

I think that is what you're after Don.

I did that in the attached edited copy.  Change the Value of Var2 to change both resultant values of Var2 and Var5.

That's genius Alvin, it's exactly what I was trying to accomplish, thanks.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Alvin Gregorio

My memory is letting me down Don.
How did you make that Pattern constraint?-- the Circles with that one Line on the right?
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: Alvin Gregorio on February 08, 2021, 02:59:58 PM
My memory is letting me down Don.
How did you make that Pattern constraint?-- the Circles with that one Line on the right?

I found it in the online Help documentation.

I've never used it; so it's not ingrained in memory at all.
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

A 3D version of adjusted cabinet PPM, have left to make some drawers, options for 2D and dimensions like DonCW want.

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

DonCW

Quote from: Torfinn on February 08, 2021, 05:44:07 PM
A 3D version of adjusted cabinet PPM, have left to make some drawers, options for 2D and dimensions like DonCW want.

Torfinn

Very impressive Torfinn, thank you for sharing your work. I don't have any knowledge of PPM, but I have the time now to start learning it, can you recommend any good learning material I could start with.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

nikkipollard

You won't regret learning to write PPm scripts Don.
Although they are scripted - they are very simple
- In a lot of ways they are easier then constraints.
Turbocad doesn't have a good system for working with a lot of constraints on different planes in a big drawing.
4 cabinets with different  dimensions in the same drawing would be too confusing. Because each cabinet would need different variable names.
A ppm is a symbol so you drag it in from your library and edit the parameters. - you can have as many versions of the symbol in the drawing.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Torfinn

As Nikki say's, it's easy to learn, the biggest difference is that you also can "constrain" in 3D, add materials etc
There is a set of commands to use, + some more that they don't tell about :)
If you know how objects should look like when you want to draw them, then you can also can write them in a ppm
There are some example inside the Helpfile to get you started if you want to try it
http://doc.imsidesign.com/articles/#!turbocad-2020-user-guide-publication/parametric-part-script-editing

After insert we can adjust the Parameters in SI Palette

And we write them in the Parametric Part Script Editor Palette, you can also write them in Note, but then you don't see the colors there, and they are very handy.

Inside the PPM section here at forum you will find some example also, many from me and Nikki, incl the Kitchen Cabinet ppm that was the first version of what you see in picture from last reply, later i have revisit that ppm file and done more work on the one i use.
I actually made that one for Darrel, but he think it was cumbersome to change material, handle etc, so he stick with the system he already had figured out by using blocks.
After insert we need to change them 1 by 1 if we want to change some of the parameters

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

nikkipollard

#10
As a workaround to the issue with changing each instance of the ppm is to put identical versions of the ppm in a block. Sometimes I use them in  patterns.

A straight forward ppm to study is the shelves one in the example file.
It uses polylines but here is a version that uses rectangles instead. I have added notes which might help.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

#11
Don I have also never used the pattern with constraints trick. How do you adjust the number of copies in the pattern?

I can see how to  constrain the green lines which is great.
The other issue I have is if you change the radius of one circle surely they should all change.
It is almost as if the constrained pattern isn't a complete tool.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

I made the effort and took the time to learn PPM scripting (early 2020, I believe it was).
Yes, very useful and more powerful than Constraints.

The reason I never got too enthralled with it is-- I'm a more tactile person, it seems.  Even working with CAD-- mouse, mouse-clicks, keyboard, ...-- I oftentimes am reminiscent of and miss using a t-square and 45 triangle and pencil on paper, with eraser.  I think that tactile factor is what kept my interest in high school for four years of drafting class, when little else besides girls held my interest.

With PPM scripting, it's all typing.  And thinking.  Then insert, and trying.  Then typing.  And reading some examples, and typing.  And trying.  Repeat.  Did I mention typing?
Even though I know it'd be more efficient to write and use a PPM script for something I'm going to be using or using as a base for editing in future drawings, I've come to understand myself that I much more prefer modeling over scripting.
___
There's some cool parametric PPM Cabinet examples that come with our TurboCAD installation.  We can get to these symbols through the Library Palette.
Also, as Nikki said, the PPM script for these symbols can be found in our hard-drive after installation.  C:\Program Files\IMSIDesign\TCW2020\Symbols\PPM\EN\, I believe is the address.
     In TurboCAD: Open the Parametric Part Script Editor (PPSE) palette; at the top, select Open; navigate to C:\Program Files\IMSIDesign\TCW2020\Symbols\PPM\EN; select something in there.  You'll see in the PPSE a whole bunch of seemingly nonsense verbiage and numbers, color-coded.  At the top, select the Insert Parametric Part arrow.  Once inserted into Modelspace, Zoom Extents and switch to an Isometric View; select the object, go into Selection Info Palette to see the different parameters whomever wrote the script included; change one or more at a time to see the result and how powerful it would be to use PPMs for something like repeated cabinet layouts.

If typing a lot of script suits you, this might be worth investing the time and effort in learning ALL the nuances of PPM script writing.  I feel like I know about 20% of it-- I have a LOT more to learn.  But, despite the length of this post suggesting the opposite, I don't much like typing my modeling.
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 agree with you. The visual thing is definitely a bonus.
I like constraints in other software -but Turbocad Constraints are fickle. You can put a lot of effort in , change a dimension and suddenly Turbocad doesn't like your sketch anymore. Yellow triangles everywhere. so you spend hours tying to figure out why.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

#14
Quote from: nikkipollard on February 09, 2021, 06:54:54 AM
I agree with you. The visual thing is definitely a bonus.
I like constraints in other software -but Turbocad Constraints are fickle. You can put a lot of effort in , change a dimension and suddenly Turbocad doesn't like your sketch anymore. Yellow triangles everywhere. so you spend hours tying to figure out why.

I think it's best to try to use as many other Variables in Variables Formulas, in the Calculator Palette.
That way there's less potential for conflicting maths/proposed_expectant_geometry.
Such as that Var5 =Var2 Formula I suggested earlier, this thread.
The same with other, more complex, Variable Formula expressions also is am what I am suggesting here, of course.

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

Exactly - when it gets complicated you need a fairly good understanding of geometry to prevent the yellow triangles.
. Angles are the biggest culprit. for breaking a model.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

DonCW

Quote from: nikkipollard on February 09, 2021, 07:52:39 AM
Exactly - when it gets complicated you need a fairly good understanding of geometry to prevent the yellow triangles.
. Angles are the biggest culprit. for breaking a model.

I'm starting to realize the limitations of constraints, I'd be using one section view several times in a project with several different sizes. I may just stay doing things the same way I always have.
Thanks for your help, it's always appreciated.
DonCW
2020 Platinum
2018 Platinum
2017 Pro with Light Works Plug in



Windows 10
There's so much to learn and not much time left to learn it.

Dean

#17
Quote from: DonCW on February 09, 2021, 06:07:13 PM
Quote from: nikkipollard on February 09, 2021, 07:52:39 AM
Exactly - when it gets complicated you need a fairly good understanding of geometry to prevent the yellow triangles.
. Angles are the biggest culprit. for breaking a model.

I'm starting to realize the limitations of constraints, I'd be using one section view several times in a project with several different sizes. I may just stay doing things the same way I always have.
Thanks for your help, it's always appreciated.

Don,
Try using your constrained section views as Symbols or as  Xref.

If using as a Symbol drag it from your symbols folder.
When a different symbol is inserted that contains the same Var names it asks to rename and all constraints will work in the current drawing.

If using Xref, all Xref's inserted in the current drawing can share the same Var name and you would need to open then re-load the xref if any changes are made to the Var Constraints.
I'm assuming your drawings with constraints are 2D geometry.
"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

nikkipollard

There is also the constrained method to create parametric symbols.
When they work they are great.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h