Jump to content

Recommended Posts

Can some would suggest me script for read and write all the subcase names and their respective ids, for now to get all subcases names, I am using-

hwi GetSessionHandle mySessionName

mySessionName GetDataFileHandle myDataFile $op2File
set subcase_list [myDataFile GetSubcaseList] 
puts "subcase_list $subcase_list"


can some suggest script or code to find all Subcases ids with minimal changes in above.

Share this post

Link to post
Share on other sites

Hi Sagar,


You will have to follow the object hierarchy to reach subcases which is in ResultCtrl.


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

    set lst_subcases [result_handle GetSubcaseList]

hwi CloseStack


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...