hansalbi
(Inflearner)
1
Hi there,
I am using ViewCaptureToFile to export a view of an object.
I am trying to zoom in until the mesh border reaches the edge of the export file (.png)
I am using the following code
rs.Command('_SetView _World _Bottom')
rs.RotateView(direction=0, angle=90.0) # right turn
rs.ZoomExtents()
any idea? 
Thank you!
Hans Paul
pascal
(Pascal Golay)
2
Hi Hans Paul - I think you’ll need to use SetZoomExtentsBorder
and set that to 1 for parallel views - does that do it?
-Pascal
hansalbi
(Inflearner)
3
Hello Pascal,
this is what I get.

any ideas on how to make it work?
pascal
(Pascal Golay)
4
That is correct, now useZoom Extents
in a parallel view. Does that do what you want?
-Pascal
hansalbi
(Inflearner)
5
I’ve tried but that still does not work.
pascal
(Pascal Golay)
6
I think this is sorted out and working now ( via PM )- correct?
-Pascal
hansalbi
(Inflearner)
7
Yes it works perfectly.
Thanks