Jump to content
Albion

Calculation problem

Recommended Posts

Good afternoon, I encountered such a problem, when executing a python script, the calculations are not written to the output fields, and therefore cannot go further, since they take values from them. Can anyone tell me what I did wrong?

1.png

2.png

3.png

Edited by Albion

Share this post


Link to post

The result of BeamSquare is a tuple string 'Quadrate Square', 1125 . You are not setting a value, 1125 to a variable. so when you read BeamSquare.Value it is evaluating a( tuple * 55) not (1125*55).

 

I expect if you set a breakpoint on S in QuadrateBeam_Value and then inspect BeamSquare.value it will show you more detail.

 

Could be wrong, but it is my best guess from the screen shots.

Share this post


Link to post

Here's idea make a Tlist<TQuadbeam> to help separate the UI from the math.

 

I marked up the UI to help. 

beamEditor.png

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×