Using a variable created in a GUI

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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

Answers

  • tinh
    tinh Altair Community Member
    edited January 2019

    Use {*}$vector to expand that list

     

    Why don't you use hm_getdirectionpanel?

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2019

    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

     

     

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2019

    Thanks guys, I've solved the problem on my own:)