HM solidmap automation using TCL script

Shubham Dhokare_21917
Shubham Dhokare_21917 Altair Community Member
edited January 12 in Community Q&A
*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

Answers