Set deformed value

Vikas Kumar_22189
Vikas Kumar_22189 Altair Community Member
edited October 2020 in Community Q&A

Dear sir,

 

I wanted to set deformation values as marked in image by using TCL\Tk please help me as soon as possible.

 

blob.png.ce0aa11c4e04e507e1aead8ab870c79b.png

 

Vikas Kumar

8509012124

vikaskkuma141@gmail.com

 

Answers

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited February 2018

    and after all setting value how to apply all settings.Please help me as soon as possible.

    blob.png.764c281d9669fcca62cd2b5172f1bf44.png

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited February 2018

    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

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited February 2018

    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.

    Err.PNG.4da09338d7a84c19ddffcba8f88efa0c.PNG

     

    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

     

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited February 2018

    Hi vikas,

    Try,

    poIScaleCtrl_handle SetAnimationSource Displacement

    poIScaleCtrl_handle SetInterpolationScaleMode model_percent

    poIScaleCtrl_handle SetScale '5 5 5'

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited February 2018

    Dear Livil,

    Thanks for your support it's working. Thanks lot .

     

    Thanks,

    Vikas Kumar