Jump to content
Guy01

Get highest set ID number

Recommended Posts

Hello

 

Is it possible to retrieve the highest set id number that exists in the model tree?

So that when i create a new set by command it does not clash with existing set id. The idea is to create a set with "ID = max set id +1".

 

Thanks in advance

 

 

Share this post


Link to post
Share on other sites

@vipin Thanks a lot that helped

@Nguyen yes in my set creation commands i need the max set id. Its for the line "*attributeupdateint sets $max_set_id 3240 1 2 0 1"

Share this post


Link to post
Share on other sites
32 minutes ago, Roche said:

@vipin Thanks a lot that helped

@Nguyen yes in my set creation commands i need the max set id. Its for the line "*attributeupdateint sets $max_set_id 3240 1 2 0 1"

 

Don't do that, 

Use hm_latestentityid to return created set id

It could not be max id if includes are there (from version 13)

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