Jump to content
Sign in to follow this  
Bachelor22

Using a variable created in a GUI

Recommended Posts

Hey guys,

 

I've created a GUI where the user can choose if he wants to apply a pressure load in x-, y- or z-direction by clicking on a button. By clicking on one of the buttons, a variable called "vector" will be created.

This variable should later be used in the command that creates the load.

 

Trying to select this variable with $vector on the position that is marked in yellow in the end of the screenshot, nothing happens.

476678879_WhatsAppImage2019-01-09at20_00_33.jpeg.2f4e942ced8c6e2f6a30c9a6fc9849a5.jpeg

 

Could you somehow help me out with this problem?

 

 

Kind regards

Simon

Share this post


Link to post
Share on other sites

I modified my code this the way you told me to,, but somehow there's still an error occurring.

This is the relevant part of my code:

image.png.09c51b4149448a3c6625ee9ec1ace06a.png

The variable "direction" is created, this is the output in the command window:

image.png.3d816a50f4d5142f0bb44ac2f4457228.png

Do you have an idea what's still wrong?

 

Thanks in advance,

Simon

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...