Jump to content
Sign in to follow this  
Yu-Ju Chen

Auto change current component after excuting a command from pushpanel

Recommended Posts

I wrote a tcl script to auto change current component after I excute a command from pushpanel.

 

Here is my script:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

hm_pushpanel {velocities}

set loadid [hm_info currentcollector loadcol]
incr loadid
if {[hm_entityinfo exist loadcol $loadid -byid] == 1} {
    set loadname [hm_getentityvalue loadcol $loadid name 1 -byid]
    *retainmarkselections 1
    *currentcollector loadcol "$loadname"
    *retainmarkselections 0

} else {
    return
}

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

I'll call out a  pushpanel first, in this example : velocities panel.

 

And I will create an initial velocity for current component and press the create button in this panel.

I know how to change the current component.

I have no idea about how to write the command script after pressing the create button and then change the current component to the next component. 

 

Does anyone can help me?

Screenshot - 2019_5_3 , 12_11_50.png

Share this post


Link to post
Share on other sites
On 5/3/2019 at 4:30 PM, tinh said:

A right programming flow is : make the script to create loads instead of clicking

Hi, Tinh,

Thanks for your reply!

 

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