Zoom a plane

I wnat to choose a plane as a datum plane,and to sketcher in this plane.but first,i must to zoom this plane to fit the window.How can i do it?

r1150rt's picture

Try using the FitAll()& ZFitAll() functions of your V3D_View object (Handle(V3d_View)).


j-lin's picture

That will zoom to fit all objects,but what i want is to zoom to fit the datum plane i choose.

j-lin's picture

The plane is a Face with the surface type Geom_Plane,just like the Top or bottom face of a cylinder. after i choosing a plane,i must(1) zoom the plane to fit the window,and(2)set grid on the plane,Is there any way to do ?
thanks to everyone's responses.