GetVCenter View / Zoom 

Declaration:

PROCEDURE   GetVCenter
( VAR  centerX :REAL;
  VAR  centerY :REAL
) ;

Description:

Procedure GetVCenter returns the VectorWorks document coordinates at the center of the drawing window.

Parameters:

center Returns view center point.



  GetView View / Zoom 

Declaration:

PROCEDURE   GetView
( VAR  xAngleR :REAL;
  VAR  yAngelR :REAL;
  VAR  zAngleR :REAL;
  VAR  offsetX :REAL;
  VAR  offsetY :REAL;
  VAR  offsetZ :REAL
) ;

Description:

Returns information about the current 3D view.

Parameters:

xAngleR Returns X rotation angle of view.
yAngelR Returns Y rotation angle of view.
zAngleR Returns Z rotation angle of view.
offset Center of view rotation.



  GetZoom View / Zoom 

Declaration:

FUNCTION   GetZoom
:REAL ;

Description:

Function GetZoom returns the percentage of the zoom factor in the current document view.



  Projection View / Zoom 

Declaration:

PROCEDURE   Projection
(   proj :INTEGER;
    rMode :INTEGER;
    viewDistance :REAL;
    clip1X :REAL;
    clip1Y :REAL;
    clip2X :REAL;
    clip2Y :REAL
) ;

Description:

Procedure Projection sets the projection mode of a VectorWorks document.

Parameters viewDistance, [p:4]], and clip2 are used only in perspective
projection mode.

Parameters:

proj Projection mode of document.
rMode Render mode of document.
viewDistance View length.
clip1 Top left coordinate of clipping rectangle.
clip2 Bottom right coordinate of clipping rectangle.

Example:

Projection(1,2,3',-2,-2,2,2);



  SaveSheet View / Zoom 

Declaration:

PROCEDURE   SaveSheet
(   name :STRING;
    saveView :BOOLEAN;
    saveClass :BOOLEAN;
    saveLayer :BOOLEAN
) ;

Description:

Procedure SaveSheet saves current view, class, and layer settings in a new sheet with a specified name.

Parameters:

name Name of saved sheet.
saveView Saves view settings.
saveClass Saves class settings.
saveLayer Saves layer settings.

Example:

SaveSheet('Phase 2',FALSE,TRUE,TRUE);



  SetVCenter View / Zoom 

Declaration:

PROCEDURE   SetVCenter
(   viewCenterX :REAL;
    viewCenterY :REAL
) ;

Description:

Procedure SetVCenter sets the VectorWorks document view center.

Parameters:

viewCenter Coordinates of document view center.

Example:

SetVCenter(2,4);



  SetView View / Zoom 

Declaration:

PROCEDURE   SetView
(   xAngle :REAL;
    yAngle :REAL;
    zAngle :REAL;
    xDistance :REAL;
    yDistance :REAL;
    zDistance :REAL
) ;

Description:

Procedure SetView sets the view of a VectorWorks document. The projection must be non-plan to modify the view.

Parameters:

xAngle X axis rotation angle.
yAngle Y axis rotation angle.
zAngle Z axis rotation angle.
xDistance X coordinate of view center.
yDistance Y coordinate of view center.
zDistance Z coordinate of view center.

Example:

SetView(45d,30d,30d,0,2,2);



  SetZoom View / Zoom 

Declaration:

PROCEDURE   SetZoom
( zoomfactor:LONGINT ) ;

Description:

Procedure SetZoom sets the zoom factor of the active VectorWorks document.

Parameters:

zoomfactor Zoom percentage setting.

Example:





  VDelete View / Zoom 

Declaration:

PROCEDURE   VDelete
( name:STRING ) ;

Description:

Procedure VDelete deletes the specified saved view.

Parameters:

name Name of view to be deleted.

Example:

VDelete('Detail A-A');



  VRestore View / Zoom 

Declaration:

PROCEDURE   VRestore
( name:STRING ) ;

Description:

Procedure VRestore restores the specified saved view.

Parameters:

name Name of view to be displayed.

Example:





  VSave View / Zoom 

Declaration:

PROCEDURE   VSave
( name:STRING ) ;

Description:

Procedure VSave saves the current VectorWorks document view.

Parameters:

name Name of view to save.