Jump to content
Guy01

Get set ID by using name

Recommended Posts

Hello

 

I am trying to get a set ID number by knowing its name.

Its not working (i have followed the user guide).

 

The commands i am using:

 

set set_name [hm_getstring "Set Name=" "Enter set name:"] -> here i am retrieving the set name by user input
tk_messageBox -message "Id name: $set_name" 
set set_id [hm_getentityvalue sets $set_name id 0 -byname]
tk_messageBox -message "Id num: $set_id" 
 

Thanks in advance

 

Share this post


Link to post
Share on other sites

When you have set name, you can get set ID by following command:

set set_id [hm_getvalue sets name="E_1" dataname=id]

When you have set ID, you can get set name by following command:

set set_name [hm_getvalue sets id=2 dataname=name]

 

 

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

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.


×
×
  • Create New...