How to fit the model without overlapping with legend using tcl code.

Ash Ahamed
Ash Ahamed Altair Community Member
edited March 2021 in Community Q&A

Hello,

What is the command line to fit the view without the model overlapping the legend?

pg$i GetWindowHandle wn$j $j; wn$j GetViewControlHandle vc; vc Fit;

Also I want to make sure that all the windows are in the best zoomed view possible when I capture the screen using png 4, otherwise the views in the output image are coming small with unwanted whitespace between them. I have attached couple of pictures to show what I am looking for. 

proj$t SetActivePage $i proj$t GetPageHandle pg$i $i set namemodelwin "image_${i}.png" sess$t CaptureScreen png $namemodelwin 4

Best Answer

  • Manoj Kandukuri_22400
    Manoj Kandukuri_22400
    Altair Employee
    edited March 2021 Answer ✓
    Posting the suggestions from service now...

    I tried couple of things for fitting the model without overlaying the legend.. "vc Fit;" is the best one that i found, as Fit works with the Pixels of the screen you are working on.. but if that doesnt help much another way is to,
    1. capture image as 1 window per page and combine them later on..
    2. do capture the model and legend separately.. and overlay it in the power point.

    Please let me know if you have any questions..
     
     

     

Answers

  • Manoj Kandukuri_22400
    Manoj Kandukuri_22400
    Altair Employee
    edited March 2021 Answer ✓
    Posting the suggestions from service now...

    I tried couple of things for fitting the model without overlaying the legend.. "vc Fit;" is the best one that i found, as Fit works with the Pixels of the screen you are working on.. but if that doesnt help much another way is to,
    1. capture image as 1 window per page and combine them later on..
    2. do capture the model and legend separately.. and overlay it in the power point.

    Please let me know if you have any questions..