[Ri...] Posted August 14 Share Posted August 14 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. Link to comment Share on other sites More sharing options...
[Ch...] Posted August 14 Share Posted August 14 PCM ? 1.) redrawCAD() 2.)setFit() Link to comment Share on other sites More sharing options...
[Ri...] Posted August 14 Author Share Posted August 14 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 More sharing options...
[Ch...] Posted August 14 Share Posted August 14 setFit() is supposed to 'Zoom to Fit' to fit all CAD elements on screen. You can also orient view with PCM with : setViewDirection() 1 Link to comment Share on other sites More sharing options...
[Ch...] Posted August 14 Share Posted August 14 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() 1 Link to comment Share on other sites More sharing options...
[Ch...] Posted August 14 Share Posted August 14 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") 1 Link to comment Share on other sites More sharing options...
[Ri...] Posted August 15 Author Share Posted August 15 Please sign in to view this quote. There are no CAD models for these parts. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in