Script for editing parameters

Script for editing parameters

Anonymous
Not applicable
499 Views
1 Reply
Message 1 of 2

Script for editing parameters

Anonymous
Not applicable

I've no experience with Python Scripts, but looking to understand it.

 

One of my designs have many variables to define its dimension, some of them are defined by the user and other need to have a IF-THEN relation based on the user defined dimension range. I want to have a script for better user interaction with this assembly so a pop up screen with the parameters needed to be defined by the user show on screen and have a way to manage those IF-THEN relations.

 

Parameters.png

 

If anyone can source a code that can edit the parameter "ØExternoDisco" based on user input and makes a IF "AlturaTuboEspaçador" > 150 then L_Tiran_Int = 350 I can find my way through the others.

 

The idea is to show a UI with "ØExternoDisco" , "ØInternoDisco" , "ØEsteatita" and "AlturaEsteatita" like this:Anotação 2020-10-21 113640.png

 
0 Likes
500 Views
1 Reply
Reply (1)
Message 2 of 2

OceanHydroAU
Collaborator
Collaborator

Simple boolean operations do not exist in paramaters 😞

 

What DOES exist however is the fact that "variable>123" might return either 0 (false) or 1 (true) which you can then multiply by stuff inside expressions to more-or-less get what you want.

 

I've done some examples of those on this web page: http://foils.pro/Airfoil_Tools/blade_strategy.html

 

Ugly, but works.

0 Likes