Customization of advanced query options
Hi All,
I am trying to write a tcl/tk script wherein I need to export .csv for each component's Advanced Query results.
I am not able to find the handle to to control this option. I have attached the screenshot for clear understanding
of the problem.
Thanks and regards.
Saumya Mishra
Answers
-
Hello Saumya,
You will have to create appropriate selection set for the advanced query.
Writing to file can be done as below:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set pageIndex [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $pageIndex
set windowIndex [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $windowIndex
myWindowName GetClientHandle myPostName
set modelIndex [myPostName GetActiveModel]
myPostName GetModelHandle myModelName $modelIndex
myModelName GetResultCtrlHandle myResultName
myModelName GetQueryCtrlHandle myQueryName
myModelName GetSelectionSetHandle mySetName [myModelName
AddSelectionSet element]
mySetName Add all
myResultName SetCurrentSimulation 1
myQueryName SetDataSourceProperty result datatype Stress
myQueryName SetDataSourceProperty result shelllayer Upper
myQueryName SetQuery 'element.id,result.value'
myQueryName SetSelectionSet [mySetName GetID];
myQueryName WriteData {c:/temp/d.txt};
0 -
Altair Forum User said:
Hi All,
I am trying to write a tcl/tk script wherein I need to export .csv for each component's Advanced Query results.
I am not able to find the handle to to control this option. I have attached the screenshot for clear understanding
of the problem.
Thanks and regards.
Saumya Mishra
hi saumya,
Did you find a way to do it. I am facing a similar problem.
Thanks and regards,
Rahul.
0