Jump to content

How to redraw graphics window via para file during Run?


---
 Share

Recommended Posts

I am having some problems displaying graphics on PiWeb reports based on part size.

This is a parametric program.

I create my initial "CAD-Presentation" from the largest part, once I run the smallest part the graphic is out of position and usually cut off on the report.

(If I generate the graphic from the smallest part first, the largest part will be completely off screen).

I am leaning towards the graphic screen needs to be redrawn per the parameters loaded at run time. Like manually selecting:

Plan

...Advanced

......Parameter

(Select/open "Run.para" file)

(Click "OK" button)

Graphics redraws.

The end goal is to have the graphic on the PiWeb report the same size all the time and as large as possible.

Small part report.jpg

large part report.jpg

Link to comment
Share on other sites

Please sign in to view this quote.

Redraw doesn't seem to redraw based on the parameters for size.

What is UseFit?

Link to comment
Share on other sites

setFit() is supposed to 'Zoom to Fit' to fit all CAD elements on screen.image.png.e79a195117d45d2d9ffeff35f3e4a760.png

 

 

You can also orient view with PCM with : setViewDirection()

 

 

  • Like! 1
Link to comment
Share on other sites

Im not sure this will work with as you need it with variable parts sizes.

You could opt for loading a specific size cad model based on .para file.

clearCAD() then

loadCADFile("C:\yourpart\Part3.sat")

redrawCAD()

setFit()

 

  • Like! 1
Link to comment
Share on other sites

you could also try this block of code and modify the # value before : " / 10", even greater than 10 if needed.

warning, this is raw code being sent, but should be fairly harmless in this case..

 

executeCode("Zeiss.Calypso.Acis computeExtrema")
executeCode("Zeiss.Calypso.Acis zoom: 10 / 10")
executeCode("Zeiss.Calypso.Acis refresh")

 

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...