Arc Objects - 2D 

Declaration:

PROCEDURE   Arc
(   p1X :REAL;
    p1Y :REAL;
    p2X :REAL;
    p2Y :REAL;
    StartAngle :REAL;
    ArcAngle :REAL
) ;

Description:

Procedure Arc creates an arc object in a VectorWorks document.

Parameters:

p1 Top left coordinate of arc bounding box.
p2 Bottom right coordinate of arc bounding box.
StartAngle Start angle of drawn arc.
ArcAngle Sweep angle of drawn arc.

Example:

Arc(0,0,2,2,45,90);
{draws an 90 degree arc with a start angle of 45°}




  GetArc Objects - 2D 

Declaration:

PROCEDURE   GetArc
(   h :HANDLE;
  VAR  startAngleR :REAL;
  VAR  arcAngleR :REAL
) ;

Description:

Procedure GetArc returns the start and sweep angle of the referenced arc.

Parameters:

h Hnadle to arc.
startAngleR Returns start angle of arc.
arcAngleR Returns sweep angle of arc.

Example:





  GetLocPt Objects - 2D 

Declaration:

PROCEDURE   GetLocPt
(   h :HANDLE;
  VAR  pX :REAL;
  VAR  pY :REAL
) ;

Description:

Procedure GetLocPt returns the coordinate location of the referenced locus.

Parameters:

h Handle to locus.
p Coordinates of locus point.

Example:





  GetSegPt1 Objects - 2D 

Declaration:

PROCEDURE   GetSegPt1
(   h :HANDLE;
  VAR  pX :REAL;
  VAR  pY :REAL
) ;

Description:

Procedure GetSegPt1 returns the X-Y coordinates of the start point of the referenced line object.

Parameters:

h Handle to line.
p Coordinates of start point.



  GetSegPt2 Objects - 2D 

Declaration:

PROCEDURE   GetSegPt2
(   h :HANDLE;
  VAR  pX :REAL;
  VAR  pY :REAL
) ;

Description:

Procedure GetSegPt2 returns the end point of the of the referenced line object.

Parameters:

h Handle to line.
p Coordinates of end point.

Example:





  Line Objects - 2D 

Declaration:

PROCEDURE   Line
(   lineDX :REAL;
    lineDY :REAL
) ;

Description:

Procedure Line creates a line object in VectorWorks. The line is drawn from the current pen position(x,y) to the specified point. The point may also be thought of as the location (x+dX,y+dY), where dX and dY are x and y offsets, respectively.

The line object is drawn with the current default attributes unless otherwise specified.

Parameters:

line Offset values for line.

Example:

Line(2,2);
{ draws a line from the current pen location to a point }
{ 2 horizontal and 2 vertical units away.               }



  LineTo Objects - 2D 

Declaration:

PROCEDURE   LineTo
(   pX :REAL;
    pY :REAL
) ;

Description:

Procedure LineTo creates a line object in the document. LineTo draws from the current graphics pen position to the specified coordinate location. The line object is drawn with the current default attributes unless otherwise specified in the VectorScript routine.

Parameters:

p Line endpoint.

Example:

LineTo(3,4);
{draws a line from the current pen position to (3,4)}

See Also:

Absolute   Relative  



  Locus Objects - 2D 

Declaration:

PROCEDURE   Locus
(   pX :REAL;
    pY :REAL
) ;

Description:

Procedure Locus creates a 2D locus object at the specified coordinate location.

Parameters:

p Coordinate location of new locus.



  Oval Objects - 2D 

Declaration:

PROCEDURE   Oval
(   p1X :REAL;
    p1Y :REAL;
    p2X :REAL;
    p2Y :REAL
) ;

Description:

Procedure Oval creates an oval object in a VectorWorks document.

Parameters:

p1 Top left coordinate of oval bounding box.
p2 Bottom right coordinate of oval bounding box.



  Rect Objects - 2D 

Declaration:

PROCEDURE   Rect
(   p1X :REAL;
    p1Y :REAL;
    p2X :REAL;
    p2Y :REAL
) ;

Description:

Procedure Rect creates a rectangle object in a VectorWorks document.

The procedure will accept coordinate definitions by either of two methods : coordinate values or distance angle values. Coordinate values are the absolute coordinate locations(in the documents' coordinate system) and are expressed as x and y values.

Distance-angle values are expressed as a distance and angle from the current pen position. For Rect, two distance angle pairs are required to specify the top left and bottom right of the rectangle object.


Parameters:

p1 Top left coordinate of rectangle.
p2 Bottom right coordinate of rectangle.

Example:

Rect(0,2,2,1);
{creates a rectangle object by coordinate values}

Rect(0.5,#90,2,#0);
{creates a rectangle object by dist-angle values}



  RRect Objects - 2D 

Declaration:

PROCEDURE   RRect
(   p1X :REAL;
    p1Y :REAL;
    p2X :REAL;
    p2Y :REAL;
    DiamDX :REAL;
    DiamDY :REAL
) ;

Description:

Procedure RRect creates a rounded rectangle object in a VectorWorks document.

Corner definition is controlled by parameter Diam, which determines the "roundness" of the rectangle corners. The X and Y components of Diam correspond to the major and minor axes of an oval defining the rectangle corner.

Parameters:

p1 Top left coordinate of rectangle.
p2 Bottom right coordinate of rectangle.
Diam X and Y diameters of corner.

Example:

RRect(-1,1,1.5,-2,0.5,1.5);



  SetArc Objects - 2D 

Declaration:

PROCEDURE   SetArc
(   h :HANDLE;
    startAngle :REAL;
    arcAngle :REAL
) ;

Description:

Procedure SetArc set the start and sweep angles of the referenced arc object.

Parameters:

h Handle to arc.
startAngle New start angle of arc.
arcAngle New sweep angle of arc.



  SetSegPt1 Objects - 2D 

Declaration:

PROCEDURE   SetSegPt1
(   h :HANDLE;
    pX :REAL;
    pY :REAL
) ;

Description:

Procedure SetSegPt1 sets the location of the start point of the referenced line object.

Parameters:

h Handle to line.
p New start point of arc.



  SetSegPt2 Objects - 2D 

Declaration:

PROCEDURE   SetSegPt2
(   h :HANDLE;
    pX :REAL;
    pY :REAL
) ;

Description:

Procedure SetSegPt2 sets the location of the end point of the referenced line object.

Parameters:

h Handle to arc.
p New end point of arc.