HM solidmap automation using TCL script
*createmarkpanel elems 1 "Select Source" set source [hm_getmark elems 1] *createmarkpanel elems 2 "Select Dest" set dest [hm_getmark elems 2] *solidmap_begin 0 *solidmap_prepare_usrdataptr "SOURCE" 24 *createmark elements 1 "$source" *solid_prepare_entitylst elements 0 *solidmap_prepare_usrdataptr "DEST" 24 *createmark elements 2 "$dest" *solid_prepare_entitylst elements 0 *solidmap_prepare_usrdataptr "ALONG" 0 *solidmap_end 8322 3 0 0 0
I am trying to create solidmap using tcl script. Above code I have taken from the command.tcl file and modify it for further uses.
After running script I get error "source element not found"
I checked it using puts $source. It shows all the elements ID which are selected in source set.
If anyone knows how to solve this issue please help. Also please explain the [ Source 24, Dest 24 and Solidmap_end 8322 ] , what this (24,24,8322) numbers exactly indicates.
Thanks in advance.
Best Answer
-
i'm not sure if that's the only thing, but when you run
*createmark elements 1 "$source"
this will only load the first element from your list into the mark.
use hm_createmark instead, or use
eval "*createmark elements 1 $source"
the same for destination.
Concerning 24, it is a binary number, related to this topic:
https://community.altair.com/community?id=community_question&sys_id=f896407a1b2bd0908017dc61ec4bcb99
0
Answers
-
i'm not sure if that's the only thing, but when you run
*createmark elements 1 "$source"
this will only load the first element from your list into the mark.
use hm_createmark instead, or use
eval "*createmark elements 1 $source"
the same for destination.
Concerning 24, it is a binary number, related to this topic:
https://community.altair.com/community?id=community_question&sys_id=f896407a1b2bd0908017dc61ec4bcb99
0 -
Adriano A. Koga_21884 said:
i'm not sure if that's the only thing, but when you run
*createmark elements 1 "$source"
this will only load the first element from your list into the mark.
use hm_createmark instead, or use
eval "*createmark elements 1 $source"
the same for destination.
Concerning 24, it is a binary number, related to this topic:
https://community.altair.com/community?id=community_question&sys_id=f896407a1b2bd0908017dc61ec4bcb99
Thanks for the help. It worked as expected.
0