Set deformed value
Dear sir,
I wanted to set deformation values as marked in image by using TCL\Tk please help me as soon as possible.
Vikas Kumar
8509012124
vikaskkuma141@gmail.com
Answers
-
and after all setting value how to apply all settings.Please help me as soon as possible.
0 -
Hi Vikas,
This is the sequence you should follow,
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetScaleCtrlHandle poIScaleCtrl_handle
poIScaleCtrl_handle SetAnimationSource Displacement
poIScaleCtrl_handle SetInterpolationScaleMode model_percent
poIScaleCtrl_handle SetScale '5.0'
hwi CloseStack
Refer to https://altairhyperworks.com/hwhelp/Altair/2017/help/hwdref/hwdref.htm?poiscalectrl_class.htm for different parameters,
Regards,
Livil Lyle
0 -
Dear Livil,
Thanks for your support actually i was using
'poIScaleCtrl_handle SetInterpolationScale model_precent' at the place of 'model_percent poIScaleCtrl_handle SetInterpolationScaleMode model_percent'
as mentioned in syntax from help menu. So it was giving error.
SetInterpolationScale – Sets the scale mode.
SYNTAX
poIScaleCtrl_handle SetInterpolationScale mode
TYPE
HyperView Tcl Modify
DESCRIPTION
This command sets the scale mode.
mode
The scale mode. Options include: scale, model_units, and model_percent.
ERRORS
Returns 0 if successful, otherwise an error code.
I am very new in this field so i was not understanding the problem. Thanks alot .
Thanks,
Vikas Kumar
0 -
Hi vikas,
Try,
poIScaleCtrl_handle SetAnimationSource Displacement
poIScaleCtrl_handle SetInterpolationScaleMode model_percent
poIScaleCtrl_handle SetScale '5 5 5'
0 -
Dear Livil,
Thanks for your support it's working. Thanks lot .
Thanks,
Vikas Kumar
0