This page contains reference documentation for the GetViewWidth function. This function returns the worksheet's width in pixels.
int GetViewWidth()
Examples are as follows:
function void GetViewportCenter( ModelView activeView, Vec center )
{
Vec end = new Vec;
activeView.GetViewRay(
activeView.GetViewWidth() * 0.5,
activeView.GetViewHeight() * 0.5,
center,
end );
center.Blend( end, 64.0f / ( center.GetDistance( end ) ) );
delete end;
}
For sample code: