Command to select components in Hyperview TCL script
Hello Experts,
I've been writing myself a TCL Script in Hyperview to help me with my post-processing. I'm nearly done, but missing one command to complete the work...
Within the contour panel, you can set which result you want to plot (stress, strain, displacement, etc.) and on which selection you want to plot it. You can chose your selection by component, assemblies, or elements, before clicking apply and getting the desired contour. So what are the commands to make that selection through a script??? I can do it just fine by clicking on the screen, but I can't find what I'm looking for in the tcl manual.
If anyone knows, please help... it will be appreciated
Christiane
Answers
-
The *createmarkpanel will prompt you to select a list of components when you run the script and store them in a 'mark'
*createmarkpanel components 1 'Please Select the Components'
set complist [ hm_getmark components 1 ];
0 -
@Altair Forum User What would be the code to select certain component to view results in Hyperworks?
0 -
Hi
I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:
set eList [::post::panelselect::getuserselection Elements]
set cList [::post::panelselect::getuserselection Components]
set nList [::post::panelselect::getuserselection Nodes]Just for your reference
2 -
Nagahashi Kouta said:
Hi
I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:
set eList [::post::panelselect::getuserselection Elements]
set cList [::post::panelselect::getuserselection Components]
set nList [::post::panelselect::getuserselection Nodes]Just for your reference
Hello Nagahashi Kouta,
Can you guide me to get the reference guide of TCL commands to do programming in HV?
Regards,
Sanket
0 -
sanket_patil said:
Hello Nagahashi Kouta,
Can you guide me to get the reference guide of TCL commands to do programming in HV?
Regards,
Sanket
Hi,
I'm not a native english speaker,I'm not sure your actual meaning by "guide me to get the reference guide of TCL commands to do programming in HV".If you have any question ,just put it on the forum , many engineers or developers like me will be happy to help you.
0 -
Nagahashi Kouta said:
Hi
I think the file in the attachment can help you. The file had been compiled. So you should "source" the script file in your script and invoke the command and function like below:
set eList [::post::panelselect::getuserselection Elements]
set cList [::post::panelselect::getuserselection Components]
set nList [::post::panelselect::getuserselection Nodes]Just for your reference
Thank you
0