AddVectorFillLayer Hatches / Vector Fills 

Declaration:

PROCEDURE   AddVectorFillLayer
(   xStart :REAL;
    yStart :REAL;
    xRepeat :REAL;
    yRepeat :REAL;
    xOffset :REAL;
    yOffset :REAL;
    dashFactor :REAL;
    lineWeight :INTEGER;
    colorIndex :INTEGER
) ;

Description:

Procedure AddVectorFillLayer is used to add layers to a vector fill definition. This procedure call should follow a call to BeginVectorFillN.

The input parameters for a vector fill layer match the inputs from the right side of the VectorWorks hatch editor dialog.

Parameters:

xStart X coordinate of fill origin.
yStart Y coordinate of fill origin.
xRepeat X coordinate of fill repeat origin.
yRepeat Y coordinate of fill repeat origin.
xOffset X coordinate of fill offset origin.
yOffset Y coordinate of fill offset origin.
dashFactor Dash factor of layer(percentage of fill line that is solid).
lineWeight Line weight of layer, in mils.
colorIndex Pen color of layer.

Example:

BeginVectorFill('Sample Hatch',TRUE,FALSE,0);
AddVectorFillLayer(0,0,1,1,0.5,-0.5,0.5,1,255);
AddVectorFillLayer(0.5,0.5,-2,0,1,-1,0.5,1,1);
EndVectorFill;



  BeginVectorFill Hatches / Vector Fills 

Declaration:

PROCEDURE   BeginVectorFill
(   vectorFillName :STRING;
    pageSpace :BOOLEAN;
    rotateInWall :BOOLEAN;
    colorIndex :INTEGER
) ;

Special Notes:

BeginVectorFill is obsolete as of VectorWorks 8.0

Description:

Obsolete procedure.

Parameters:

vectorFillName The name of the new vector fill.
pageSpace Flag specifying page space or world space option.
rotateInWall Flag specifying whether fill shuld be rotated in wall.
colorIndex Color index value.

See Also:

BeginVectorFillN   AddVectorFillLayer   EndVectorFill  



  BeginVectorFillN Hatches / Vector Fills 

Declaration:

PROCEDURE   BeginVectorFillN
( VAR  vectorFillName :STRING;
    pageSpace :BOOLEAN;
    rotateInWall :BOOLEAN;
    colorIndex :INTEGER
) ;

Description:

Procedure BeginVectorFillN creates a new vector fill definition in a VectorWorks document.

Parameters:

vectorFillName Name of new vector fill pattern.
pageSpace Sets page or world space for vector fill.
rotateInWall Sets rotate in wall option for vector fill.
colorIndex Background color of vector fill.

Example:

BeginVectorFill('Sample Hatch',TRUE,FALSE,0);
AddVectorFillLayer(0,0,1,1,0.5,-0.5,0.5,1,255);
AddVectorFillLayer(0.5,0.5,-2,0,1,-1,0.5,1,1);
EndVectorFill;

See Also:

AddVectorFillLayer   EndVectorFill  



  DelVectorFill Hatches / Vector Fills 

Declaration:

PROCEDURE   DelVectorFill
( vectorFillName:STRING ) ;

Description:

Procedure DelVectorFill deletes the specified vector fill definition.

Parameters:

vectorFillName Name of vector fill.



  EndVectorFill Hatches / Vector Fills 

Declaration:

PROCEDURE   EndVectorFill
;

Description:

Procedure EndVectorFill ends the vector fill creation process. This procedure call must follow the BeginVectorFillN call and a variable number of AddVectorFillLayer calls.

Example:

BeginVectorFill('Sample Hatch',TRUE,FALSE,0);
AddVectorFillLayer(0,0,1,1,0.5,-0.5,0.5,1,255);
AddVectorFillLayer(0.5,0.5,-2,0,1,-1,0.5,1,1);
EndVectorFill;



  GetVectorFill Hatches / Vector Fills 

Declaration:

FUNCTION   GetVectorFill
(   theObj :HANDLE;
  VAR  hatchName :STRING
) :BOOLEAN ;

Description:

Function GetVectorFill returns if the referenced object has a vector fill assigned.

Parameters:

theObj Handle to object.
hatchName Returns name of assigned vector fill pattern.



  GetVectorFillDefault Hatches / Vector Fills 

Declaration:

FUNCTION   GetVectorFillDefault
VAR vectorFillName:STRING ) :BOOLEAN ;

Description:

Function GetVectorFillDefault returns TRUE if the the active document contains a default vector fill, and returns the name of the vector fill pattern.

Parameters:

vectorFillName Returns name of vector fill.



  NumVectorFills Hatches / Vector Fills 

Declaration:

FUNCTION   NumVectorFills
:INTEGER ;

Description:

Function NumVectorFills returns the number of vector fills in the active document.



  SetVectorFill Hatches / Vector Fills 

Declaration:

FUNCTION   SetVectorFill
(   theObj :HANDLE;
    hatchName :STRING
) :BOOLEAN ;

Description:

Function SetVectorFill assigns the specified vector fill to the referenced object. The function returns TRUE if the operation was successful.

Parameters:

theObj Handle to object.
hatchName Name of vector fill to be assigned.



  SetVectorFillDefault Hatches / Vector Fills 

Declaration:

FUNCTION   SetVectorFillDefault
VAR vectorFillName:STRING ) :BOOLEAN ;

Description:

Function SetVectorFillDefault sets the default vector fill pattern for the document. The function returns TRUE if the operation was successful.

Parameters:

vectorFillName Name of vector fill.



  VectorFillList Hatches / Vector Fills 

Declaration:

FUNCTION   VectorFillList
( index:INTEGER ) :STRING ;

Description:

Function VectorFillList returns the name of the specified vector fill definition.

Parameters:

index Index ID of vector fill (ina range of 1 - n).