News:

Please remember to do a search before you ask a question!

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.

Parametric part and calculator usage

Started by Rich94513, December 24, 2021, 10:44:28 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Rich94513

Is it possible to create a parametric part via the Tools menu that uses the parameters defined in the variables of the calculator. If so how?

Attached is my ePack (drawing2) and two screen shots one showing the Calculator variables pallet and the other showing the Parametric Part parameters.
TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro

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: Rich94513 on December 24, 2021, 10:44:28 AM
Is it possible to create a parametric part via the Tools menu that uses the parameters defined in the variables of the calculator. If so how?

Attached is my ePack (drawing2) and two screen shots one showing the Calculator variables pallet and the other showing the Parametric Part parameters.

I'll do an example for you, if you Save As... type: "TurboCAD 2020 for Windows Drawing File".  And upload that.
___
Can you please update your signature, to include 2021 Platinum.  Thanks
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)

Rich94513

Here is the drawing saved in TurboCAD 2020 for Windows Drawing File
TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro

Rich94513

TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro

John R

John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Torfinn

Ok, they work like a charm here, no problem at all, so maybe they was down for a short time just when you tried.
But anyway they do point to where help in TC take you, and you can read where and about what part from the link.
Point is, if you try to follow the PP help and do what it show in example, then you will learn how it work.

And then i see John's post, i use Edge :)

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: Rich94513 on December 24, 2021, 02:43:23 PM
Here is the drawing saved in TurboCAD 2020 for Windows Drawing File

Thanks Rich.  I am already well into a replica, started from one of my Templates, based on the information I can ascertain from your screen-captures.

Question:  Are you requesting to use Parametric Parts instead of Constraints?  Or in conjunction with Constraints?
                I am proceeding with "conjunction with", unless I hear otherwise.
                -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)

Rich94513

Hi Alvin,
My question was to use the calculator parameters in conjunction with the Parametric Part function from the Tool Menu.

I can do parameters and math from within the Parametric Part, but I could not make it work using the Vars from the calculator. I now see that the Parametric Part function duplicates the parameters from the calculator Vars.

I show both TurboCAD 2019 Deluxe followed by TurboCAD 2021 Platinum. Should I change the order?

Thanks Rich
TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro

Alvin Gregorio

Quote from: Rich94513 on December 24, 2021, 04:17:20 PM
...
I show both TurboCAD 2019 Deluxe followed by TurboCAD 2021 Platinum. Should I change the order?
...

No.  Sorry-- I didn't read down your Signature Line far enough.  Thanks for considering it though.
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: Rich94513 on December 24, 2021, 04:17:20 PM
Hi Alvin,
My question was to use the calculator parameters in conjunction with the Parametric Part function from the Tool Menu.

I can do parameters and math from within the Parametric Part, but I could not make it work using the Vars from the calculator. I now see that the Parametric Part function duplicates the parameters from the calculator Vars.
...
Thanks Rich

I cannot get the Calculator Palette to work in conjunction with the Parametric Part either.
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)

Rich94513

Quote from: John R on December 24, 2021, 03:06:13 PM
Quote from: Rich94513 on December 24, 2021, 02:57:13 PM
Quote from: Torfinn on December 24, 2021, 12:12:45 PM
Read in the helpfile
http://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Groups-Blocks-and-the-Library/Parametric-Parts/

But that said, i never use it, as i find ppm, scripted parametric part in the Parametric Part Editor, much better and easy to learn.

http://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Customized-Programming/Parametric-Part-Script-Editing/

Torfinn

The links don't seem to be working. I get Error 521: Server down

Try Chrome or Microsoft Edge. Their links don't work in Firefox.

The links do work in MS Edge. I've gone through creating Parametric Parts in Section 14.5. in the Users manual PDF version. The online manual section 2.12 Parametric Parts Script Editor is substantially different from the PDF file. I have not used the online version much because it does not work well in Firefox, which I think is a more secure search engine.
I'll try reading the online version.

Rich H.
TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro

Alvin Gregorio

#12
I am not certain what your overall objective is Rich, but attached is an example, having used Parametric Part Script Editor.
TurboCAD Drawing file below, between Code box and screen-capture image.



If using the script below:  Click on "Select", then Copy.  In TurboCAD Parametric Part Script Editor (PPSE) Palette, Paste.
At the top of PPSE, click the Save button, and save it to any Name.
Then click the blue Insert arrow at the top of the PPSE.

// for Rich94513; per 12/24/21 Constraint & Parametric Part
// conjunction request

Units(1[in])

W=Parameter("Width",12,LINEAR,GreaterThan(.00001));
H=Parameter("Height",1.5,LINEAR,GreaterThan(.00001));
D=Parameter("Circle Diameter",.093750,LINEAR,GreaterThan(.000001));
COX=Parameter("Circle Offset X",.5,LINEAR);
COY=Parameter("Circle Offset Y",.5,LINEAR);

R=SetProperties(Move(Rectangle(W,H),W/2,H/2),"PenWidth"=-3);
C=SetProperties(Circle(D/2,COX,COY),"PenWidth"=-3);
CCX=SetProperties(Move(C,0,H-COY*2,0,1),"PenWidth"=-3);
Grp1=Group(C,CCX);
CCY=Move(Grp1,W-COX*2,0,0,1);
RP1=RefPoint(0,0,0);

Output(R,C,CCX,CCY,RP1)
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

To answer your question about the calculator palette and the parametric symbol creator.
If you have used formulas in the calculator - you need to remove them before you make the part and rewrite the formulas in the formula column when you are making the part.
I also found that the parts worked better if the last objects I drew were the dimensions - especially if there were Boolean operations.
Also keep the parts simple - you can nest them together and use formula to move or copy components within the symbol.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

#14
I tested this in 2021 -thinking I could attempt a quick tutorial, they don't seem to work with boolean operations anymore.
and All my old symbols no longer work in my 2021 version.
I am not sure if it is worth using this method anymore as they never developed it and it became less and less stable with each version.
Which is a pity because it was a very useful tool for me.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

I got it to work after deleting the built in folder.
Looking at your drawing
You have used a pattern in the model
The constrained patterns are a new tool and don't work in the parametric symbol.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

nikkipollard

#16
I remade a part similar to yours - I chose to use more constraints and less dimensions.
I apologise for using a metric template - but I was having issues with the part trying to convert to mm  when I inserted it.
I didn't need calculations - so I added a few random ones so you can see what I do.
Once you have made the part and inserted into your drawing
open the selection info palette and select the part.
click on the icon that looks like a palette next to "symbol parameters"
and add formula in the instance formula column. - you can also add the formula when you are making the part.
delete all the constrained stuff and save a file with only the symbol to your library file.
drag that symbol into your drawing to use it.
the nested parts example is to show you how to use formula for nested symbols. - explore them with the selection info palette.
I edit the formula in the selection info palette because the editor changes dimensions. for some reason
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Rich94513

Quote from: John R on December 24, 2021, 03:06:13 PM
Quote from: Rich94513 on December 24, 2021, 02:57:13 PM
Quote from: Torfinn on December 24, 2021, 12:12:45 PM
Read in the helpfile
http://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Groups-Blocks-and-the-Library/Parametric-Parts/

But that said, i never use it, as i find ppm, scripted parametric part in the Parametric Part Editor, much better and easy to learn.

http://docs.imsidesign.com/projects/TurboCAD-2021/turbocad-2021-user-guide-publication/Customized-Programming/Parametric-Part-Script-Editing/

Torfinn

The links don't seem to be working. I get Error 521: Server down

Try Chrome or Microsoft Edge. Their links don't work in Firefox.
Hi John,
I found this link https://support.mozilla.org/en-US/kb/firefox-dns-over-https
which allowed me to fix the problem which prevented Firefox form going to the http://docs.imsidesign.com domain.

Should I post this Firefox fix in a separate post for other member to read?
Thanks
Rich H.
TurboCAD 2019 Deluxe 64 Bit
Dell Inspiron i7-3632QM 8GB
Windows 10 Home
TurboCAD 2021 Platinum 64 Bit
Dell Precision 7750, i7-10850H CPU, 32GB RAM
Windows 10 Pro