::hwat::utils::CreateMark - This function clears the mark and creates a mark on the desired entities.
::hwat::utils::CreateMark entityType mark args
entityType |
The type of the entity. |
mark |
The ID of the mark. |
args |
The arguments after the "mark" argument in the *createmark command. |
1 if successful, {} otherwise.
::hwat::utils::CreateMark "components" 1 "by sets" Vehicle .
If any one of the "args" is a list in Tcl like [list 1 2 3] or {1 2 3} or a variable which is a list, use eval before the ::hwat::utils::CreateMark command. Also, in these cases, while using the options like "by assems" or "on plane" pass them as \"assems\" or \"on plane\" respectively.
For example: set a { 1 2 3}
eval ::hwat::utils::CreateMark comps 1 \"by assems\" $a
however, if the values 1, 2 and 3 are not in a list
::hwat::utils::CreateMark comps 1 "by assems" 1 2 3