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
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;
https://community.altair.com/community?id=community_question&sys_id=8ead45ff1b93c950c4dfdbd9dc4bcb1c&anchor=answer_581e0f8ddb6b8590e8863978f4961906&view_source=searchResult