Load .pch file and generate graph

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

Hi all,

 

I wants to create a script which can load .pch file by browsing the file and generate graph for the same for point and x,y,z trans using hypergraph 2D version 13.0.

 

Please help me as soon as possible. 

Answers

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited March 2018

    Hi all,

     

    I wants to create a script which can load .pch file by browsing the file and generate graph for the same for point and x,y,z trans using hypergraph 2D version 13.0.

     

    Please help me as soon as possible. 

    Just help me how to load .pch file using tcl\tk scripting.  which api i should use.

  • tinh
    tinh Altair Community Member
    edited March 2018

    Hi,

    enter reference guide of hyperwork desktop

    >>Programming with tcl/tk commands

    >>tcl/tk commands

    >>hyperworks desktop

    >>hypergraph 2d

    >>pltlBuildPlotsCtrl Class

     

    there is an example using method 'SelectDataFile' to load file for hypergraph

  • Vikas Kumar_22189
    Vikas Kumar_22189 Altair Community Member
    edited March 2018

    Hi tinh,

     

            hwi GetSessionHandle sess;
            sess GetClientManagerHandle mgr plot;

            mgr GetBuildPlotsCtrlHandle build;

            build SelectDataFile 'D:/Vikas/Backup/Input_Model/abc.pch' false;

     

    This command is not generating graph i have gone throuh this.

    thanks for your reply.