Jump to content
Sign in to follow this  

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.



Could you somehow help me out with this problem?



Kind regards


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:


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


Do you have an idea what's still wrong?


Thanks in advance,





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.

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...