Hotspot finder Best view API

Jouher_20819
Jouher_20819 Altair Community Member
edited June 2021 in Community Q&A

I am looking to get contour view like hotspot element close to screen, same as contour option in hotspot finder. When I have gone thru help document for API - bestview_handle SetViewMode mode, I could see that last line of example is wrong.

 

bestview_handle1 ActivateView
a Draw true

 

Please help to solve my issue

Answers

  • Sandesh Gandhi_20689
    Sandesh Gandhi_20689
    Altair Employee
    edited June 2021

    Indeed.

    It should have been "client" instead of "a" since "client" is the name of handle being used for Hyperview there. Draw API exists on the base client handle.

     

    hwi GetActiveClientHandle client  client AddBestView  client GetBestViewHandle bestview_handle1 1  bestview_handle1 SetEntity node 22460  client GetBestViewHandle bestview_handle2 [client AddBestView] bestview_handle2 SetEntity node 22568  bestview_handle1   SetViewMode globalcomponents bestview_handle1 ActivateView  client Draw true