I am trying to use PoI partclass api for getting scale but it is not working for any parthandle.

LAKHAN MODHAVADIYA
LAKHAN MODHAVADIYA New Altair Community Member
edited November 2023 in Community Q&A

        set t [clock clicks];
        hwi OpenStack;
        hwi GetSessionHandle sess$t;
        sess$t GetProjectHandle proj$t;
        proj$t GetPageHandle page$t [proj$t GetActivePage];
        page$t GetWindowHandle win$t [page$t GetActiveWindow];

       win$t GetClientHandle client$t;
       set Id_ActiveModel [client$t GetActiveModel];

       client$t GetModelHandle mod$t [client$t GetActiveModel];

       mod$t GetPartHandle part$t 2;

       part$t SetScale " 2 2 2"

       client$t Draw;

 

this code is note working for part id 2.

 

 

Answers