Add Model file to Hyperview

sandeeppm17
sandeeppm17 Altair Community Member
edited October 2020 in Community Q&A

Hi, 

 

I am new to Hyperview Customization, i want to add model file to hyperview and used below code,

 

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
set model_file1 'C:\hyper\PLATE_EXAMPLE\PLATE2.bdf'
client_handle AddModel $model_file1
hwi CloseStack

 

with this code i am unable to add Model file,

please suggest me better solution for this

 

Thanks in Advance,

sandeep

Tagged:

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited January 2020

    Hi 

     

    You have to set file path using {} 

    set model_file1 {C:\hyper\PLATE_EXAMPLE\PLATE2.bdf}

    or

    set model_file1 'C:/hyper/PLATE_EXAMPLE/PLATE2.bdf'