3 questions gui model interaction

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
RobinKnoet
Posts: 7
Joined: Wednesday 13 March, 2013 - 09:06

3 questions gui model interaction

Post by RobinKnoet »

Hello,
I have several questions concerning The gui builder.
1 Is there a newer version of The gui builder helpdocument? I have a recent student version of ed and found a part about The trackbar to be missing (possibly more, however I have not found anything else).
2 is it possible to use The input from a gui to change The value of for example The inter arrival time of a source atom.
3 how can I make sure that whenever I start my model, The GUI starts as well?

Thank you for your time and I look forward to your response.
Robin Knoet
    marlies
    Posts: 301
    Joined: Monday 17 January, 2011 - 09:28

    Re: 3 questions gui model interaction

    Post by marlies »

    Hi Robin,

    1. I can't find the help for the trackbar either, my colleague will have a look at that point.
    2. It is possible to set an attribute of an atom in the apply button. For example:

    Code: Select all

    SetExprAtt([CycleTime], GuiControl([MyControl], GuiGet([Text])), atombyname([Source10],Model))
    Where [cycletime] is the name of the attribute, you can check which name you should use in the atom editor.

    Anothe option would be to store the value from the gui into a table. In the parameter of the source you could read that value from the table.
    3. I suggest to add the code to open the GUI to the oninit event of an atom in your model. To do this you should open up the atom editor, go the tab events and write the code in the last option: init.

    Regards, Marlies
    User avatar
    MatthijsJongboer
    Posts: 200
    Joined: Thursday 11 November, 2010 - 14:12

    Re: 3 questions gui model interaction

    Post by MatthijsJongboer »

    The help for the Trackbar is indeed missing. We will add it.
    RobinKnoet
    Posts: 7
    Joined: Wednesday 13 March, 2013 - 09:06

    Re: 3 questions gui model interaction

    Post by RobinKnoet »

    Thank you for your replies, and i will make sure to try the suggestions

    Robin
    Post Reply