Hyper View Contour Application using TCL script
Hi all, kindly help me with the following
I am facing an issue with Appling contour values using TCl folling command, if i use OP2 files the contour values are applied, if i use .res file type the contour values are not applied to the displayed elemnts.
set t [::hw::GetT];
hwi OpenStack;
hwi GetSessionHandle sess$t;
sess$t GetProjectHandle proj$t;
proj$t GetPageHandle page$t [proj$t GetActivePage];
page$t GetWindowHandle win$t [page$t GetActiveWindow];
win$t GetViewControlHandle view$t
win$t GetClientHandle anim$t;
anim$t GetModelHandle model$t [anim$t GetActiveModel] ;
model$t GetResultCtrlHandle result$t;
result$t GetContourCtrlHandle cont$t;
cont$t SetDataType "VonMises Strs (max,all)";
cont$t SetDataComponent "Scalar value";
cont$t SetEnableState True
Answers
-
I believe the DataType name is different for .res and .op2.
Just need to adjust that, probably.
But I would suggest you taking a look at this post, and take a look at the HWC commands, which make it much easier to automate HV scripts;
0 -
Hi , Thank you for your reply. Sorry my explanation was not complete, i have used the different Data names.
I have found the issue, it was with animation, that was in the 0 time step so the contour was not activated.
0