Jump to content
Sign in to follow this  
Mike_Wu

Ask: How to set the shortcuts by command

Recommended Posts

Hello,

 

I'd like to customize a shortcuts to let me get the function quickly to pick up the nodes attached with line. 
I just know set the hm_pushpanel {rigids} to the subpanel (1D--> rigids), but what is the related command to let me also include below action?

1) select "multiple nodes"

2) select "calculate node"

01.jpg

 

3) select "by geoms"

02.jpg

 

4) select "lines"

03.jpg

 

I try to key hm_pushpanel {rigid} {multiple nodes} {calculate node} {by geoms} {lines}, but it is not workable.

Could anyone teach me how to set it??

 

BTW, does anyone know where I can find the command list in the help document??

 

Thank you in advance.

Share this post


Link to post
Share on other sites

Hi,

customizing panels are not usual documented fully. you can learn via sample script

example:

set ItemNumber [hm_getitemnumber rigids "calculate node"]
set ItemOwner [hm_getitemowner rigids $ItemNumber]
hm_setpopup rigids $ItemOwner $ItemNumber

 

with select nodes "by line". I didn't find direct command yet (using mouse hooking by twapi can do it, but it's a bit complicated).

if you want, try invoking sub proc like this

proc appendnodesbyline {{nodemark 1}} {
     *createmarkpanel lines 1 "Select lines:"
     if {[hm_marklength lines 1]} {
           eval *appendmark nodes $nodemark {"by lines"} [hm_getmark lines 1]
           hm_highlightmark nodes 1 h
           *clearmark lines 1
     }
}

 

Mike_Wu likes this

Share this post


Link to post
Share on other sites

Hi, 

 

I appreciate your reply. I think it's hypermesh's limitation and can't support to write the code into the shortcuts setting directly.

Anyway, I'll try your suggestion. 
Thanks again!

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