A program to recognize and reward our most engaged community members
I am trying to get the Node Coordinates of a body in a local coordinate system in HyperView using TCL. Hence I am using tracking system option and using Query (Table) to fetch the results.
How to enable Node Coordinates (Tracked) in Query using TCL? In documentation of https://2023.help.altair.com/2023.1/hwdesktop/hwd/topics/reference/tcl/poiqueryctrl_setquery.htm#error I was not able to find the option to do this.
Thanks in advance,
Akash P
Hello @Akash Purushothaman
you can do a query manually through GUI, and then use below code to get the query string of it:
set t [expr rand()];
hwi GetSessionHandle mySessionName$t mySessionName$t GetProjectHandle myProjectName$t set pageIndex [myProjectName$t GetActivePage] myProjectName$t GetPageHandle myPageName$t $pageIndex set windowIndex [myPageName$t GetActiveWindow] myPageName$t GetWindowHandle myWindowName$t $windowIndex myWindowName$t GetClientHandle myPostName$t set modelIndex [myPostName$t GetActiveModel] myPostName$t GetModelHandle myModelName$t $modelIndex myModelName$t GetQueryCtrlHandle myQueryName$t set query_string [myQueryName$t GetQuery] puts "$query_string"
For your case it is "node.trackcoords"
Regards, Sebastian Karp