Query in Python Script for valve housing

Query in Python Script for valve housing

Viral_ShahDV6LW
Enthusiast Enthusiast
141 Views
5 Replies
Message 1 of 6

Query in Python Script for valve housing

Viral_ShahDV6LW
Enthusiast
Enthusiast

Dear All,

 

I have made a Python Script for valve housing, 

The script is working fine for default values, but when I change the value of angles A1 and A2, error is coming as "Geometry cannot be generated with given parameters, can't find symbol for specified part

 

Default values for which script is giving output is as below:

ND1 =1.5, ND2 =1.0, C1 = 3.543, C2 = 3.543, H1 = 2.067, A1= 0.0, A2 = 0.0,
 
if values of A1 is changed to suppose say 90 script is not working.
 
Note: This problem is only occurring for OD values, for metric values the script is running fine
 
I have attached the script along with Error image.
 
Can anyone please help me with this issue??
 
0 Likes
142 Views
5 Replies
Replies (5)
Message 2 of 6

h_eger
Mentor
Mentor

Where are the dimensions of the remaining parameters?

18-09-2025_14-34-59.png

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



0 Likes
Message 3 of 6

Viral_ShahDV6LW
Enthusiast
Enthusiast

Dear @h_eger 

Which remaining parameters are you talking about?? (The parameters in the attached image are not from my script)

 

We only have the below parameters

ND1 =1.5ND2 =1.0C1 = 3.543C2 = 3.543H1 = 2.067A1= 0.0A2 = 0.0

 

Thank you.

0 Likes
Message 4 of 6

h_eger
Mentor
Mentor

I'm missing C1, C2, H1 in the property manager. These values ​​also have to be displayed so that the geometry can be changed.

-

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).

Hartmut Eger
Senior Engineer
Anlagenplanung + Elektotechnik
XING | LinkedIn

EESignature



0 Likes
Message 5 of 6

Viral_ShahDV6LW
Enthusiast
Enthusiast

Dear @h_eger ,

 

C1, C2 and H1 are the parameters which is changed in the Catalogue as per the different size of valve.

For ease we are only providing Angle parameters (A1 and A2) for the users in the property manager, rest all are changed in Catalogue only,

 

Can you please check the attached script, because it is only failing for OD value and that too if we change value of A1 or A2.

 

Thank you.

0 Likes
Message 6 of 6

Viral_ShahDV6LW
Enthusiast
Enthusiast

Dear @quan_hm @h_eger @DVaquand @Michiel.Valcke @all

 

Can you please help me with the error in the attached Python Script??

 

Thank you in advance.

0 Likes