Jump to content

Recommended Posts

Hey guys,


I'm trying to customize the setting up of simulation, so I'm using the command *createmarkpanel nodes 1 "Choose the relevant nodes for the constraints." to create the constraints. Later on, I use the same command for creating the load.

If, for any reasons, I don't want to use this program for creating the constraints and click on proceed without marking any nodes, an error is occurring and the program stops directly. Thus, it's not possible to use the program to mark the nodes for the load afterwards.

Is it possible to somehow avoid this error?


Here you can find the relevant part of my script for creating the constraints:

*createentity loadcols name=loadcol1
*setvalue loadcols id=1 name="Lagerung"
*startnotehistorystate {Created Constraints}
*createmarkpanel nodes 1 "Wählen Sie die Knoten der Lagerung aus."
*loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0
*endnotehistorystate {Created Constraints}


Kind regards,


Share this post

Link to post
Share on other sites

Or check if user not select any node:

*createmarkpanel nodes 1 "Wählen Sie die Knoten der Lagerung aus."

if {[hm_marklength nodes 1]} {
     *loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0



Bachelor22 likes this

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.

  • Create New...