AngularDim Dimensions 
MiniCAD

VectorScript Declaration:

PROCEDURE   AngularDim
(   startPtX :REAL;
    startPtY :REAL;
    endPtX :REAL;
    endPtY :REAL;
    vert1X :REAL;
    vert1Y :REAL;
    textOffsetDistance :REAL (Coordinate);
    arrow :INTEGER;
    textFlag :INTEGER;
    posAngle :REAL
) ;

Python:

def  vs.AngularDim(startPt, endPt, vert1, textOffsetDistance, arrow, textFlag, posAngle):
   return None

Description:

Procedure AngularDim creates an angular dimension in the document.

Bit code values for dimension flags can be found in the VectorScript Appendix.

Angular Dimension


Parameters:

startPt X-Y coordinates of dimension start point.
endPt X-Y coordinates of dimension end point
vert1 X-Y coordinates of dimension arc center.
textOffsetDistance Offset from dimension arc center (radius of the dimension arc).
arrow Dimension arrowhead style flag.
textFlag Dimension text style flag.
posAngle Position angle of dimension text(from start). Auto position text overrides this value.

Example:

AngularDim(1 1/2",3/8",-1/4",-1/2",7/8",-1/2",1.7001838",771,770,#35d 32'16");



  AssociateLinearDimension Dimensions 
VectorWorks12.5

VectorScript Declaration:

PROCEDURE   AssociateLinearDimension
(   h :HANDLE;
    selectedObjectsMode :BOOLEAN
) ;

Python:

def  vs.AssociateLinearDimension(h, selectedObjectsMode):
   return None

Description:

Associates a linear dimension with an object when the dimension's endpoints are coincident with objects in the drawing. When selectedObjectsMode is true, only selected objects will be checked to see if they should be associated with the linear dimension.



  CircularDim Dimensions 
MiniCAD

VectorScript Declaration:

PROCEDURE   CircularDim
(   startPtX :REAL;
    startPtY :REAL;
    endPtX :REAL;
    endPtY :REAL;
    box1X :REAL;
    box1Y :REAL;
    box2X :REAL;
    box2Y :REAL;
    textOffsetDistance :REAL (Coordinate);
    dimType :INTEGER;
    arrow :INTEGER;
    textFlag :INTEGER;
    shoulder :REAL
) ;

Python:

def  vs.CircularDim(startPt, endPt, box1, box2, textOffsetDistance, dimType, arrow, textFlag, shoulder):
   return None

Description:

Procedure CircularDim creates a diameter or radial dimension in a Vectorworks document.

Bit code values for dimension flags can be found in the VectorScript Appendix.

Circular Dimension


Parameters:

startPt X-Y coordinates of dimension start point.
endPt X-Y coordinates of dimension end point.
box1 X-Y coordinates of top left corner of object bounding box
box2 X-Y coordinates of bottom right corner of object bounding box
textOffsetDistance Offset distance of text from dimension line(witness leader length).
dimType Dimension type flag.
arrow Arrow style flag.
textFlag Text style flag.
shoulder Shoulder extension line length.

Example:

CircularDim(-4 3/8",3",-4 3/8",1/4",-5 3/4",3",-3",1/4",1 1/8",1,3, 1025,1/4");




  CreateChainDimension Dimensions 
VectorWorks12.5

VectorScript Declaration:

FUNCTION   CreateChainDimension
(   h1 :HANDLE;
    h2 :HANDLE
) :HANDLE ;

Python:

def  vs.CreateChainDimension(h1, h2):
   return HANDLE

Description:

Creates and returns a single chain dimension object when the two dimensions or chains that are passed in meet the requirements for being in a single chain dimension object.



  DimArcText Dimensions 
MiniCAD

VectorScript Declaration:

PROCEDURE   DimArcText
;

Python:

def  vs.DimArcText():
   return None

Description:

Procedure DimArcText creates an angular dimension object from the last arc object that was drawn using VectorScript.

Example:

Arc(0,0,2,2,45d,90d);
DimArcText;
{ creates a dimension from the new arc object }



  DimText Dimensions 
MiniCAD

VectorScript Declaration:

PROCEDURE   DimText
;

Python:

def  vs.DimText():
   return None

Description:

Procedure DimText converts the most recently created line object in VectorScript to a dimension.

Example:

LineTo(2,2);
DimText;



  DoubleFixedTolerance Dimensions 
MiniCAD4.0

VectorScript Declaration:

PROCEDURE   DoubleFixedTolerance
(   showVal :BOOLEAN;
    boxText :BOOLEAN;
    leader :STRING;
    trailer :STRING;
    topStr :STRING;
    botStr :STRING
) ;

Python:

def  vs.DoubleFixedTolerance(showVal, boxText, leader, trailer, topStr, botStr):
   return None

Description:

Procedure DoubleFixedTolerance is used with dimensioning procedures to define a tolerance for the most recently created dimension object.

Parameters:

showVal Dimension text display flag.
boxText Boxed text display flag.
leader Dimension leader text string.
trailer Dimension trailer text string.
topStr Tolerance value text string.
botStr Tolerance value text string.

Example:

LinearDim(-2",2",1",2",-3",0,771,771,0.75);
DoubleFixedTolerance(TRUE,FALSE,'','','yes','no');
{defines a dimension with a double fixed tolerance}



  DoubleTolerance Dimensions 
MiniCAD4.0

VectorScript Declaration:

PROCEDURE   DoubleTolerance
(   showVal :BOOLEAN;
    boxText :BOOLEAN;
    leader :STRING;
    trailer :STRING;
    topDistance :REAL (Coordinate);
    botDistance :REAL (Coordinate)
) ;

Python:

def  vs.DoubleTolerance(showVal, boxText, leader, trailer, topDistance, botDistance):
   return None

Description:

Procedure DoubleTolerance is used with dimensioning procedures to define a tolerance for the most recently created dimension.

Parameters:

showVal Dimension text display flag.
boxText Boxed text display flag.
leader Dimension leader text string.
trailer Dimension trailer text string.
topDistance Tolerance value text string.
botDistance Tolerance value text string.

Example:

LinearDim(-2",2",1",2",-3",0,771,771,0.75);
DoubleTolerance(True,False,'est. ','',1/16",1/16");
{defines a dimension with a double tolerance}



  GetDimText Dimensions 
MiniCAD

VectorScript Declaration:

FUNCTION   GetDimText
( h:HANDLE ) :STRING ;

Python:

def  vs.GetDimText(h):
   return STRING

Description:

Function GetDimText returns the dimension value displayed with the referenced object.

Parameters:

h Handle to object.

Example:

DimValue:=GetDimText(HandleToObj);



  HasDim Dimensions 
MiniCAD

VectorScript Declaration:

FUNCTION   HasDim
( h:HANDLE ) :BOOLEAN ;

Python:

def  vs.HasDim(h):
   return BOOLEAN

Description:

Function HasDim returns TRUE if a line or arc object has dimension text associated with it, otherwise it returns FALSE.

Parameters:

h Handle to object.

Example:

isDimension:=HasDim(HandleToObject);



  LimitTolerance Dimensions 
MiniCAD4.0

VectorScript Declaration:

PROCEDURE   LimitTolerance
(   showVal :BOOLEAN;
    boxText :BOOLEAN;
    leader :STRING;
    trailer :STRING;
    lowDistance :REAL (Coordinate);
    hiDistance :REAL (Coordinate)
) ;

Python:

def  vs.LimitTolerance(showVal, boxText, leader, trailer, lowDistance, hiDistance):
   return None

Description:

Procedure LimitTolerance is used with dimensioning procedures to define a tolerance for the most recently created dimension object.

Parameters:

showVal Dimension text display flag.
boxText Boxed text display flag.
leader Dimension leader text string.
trailer Dimension trailer text string.
lowDistance Tolerance value text string.
hiDistance Tolerance value text string.

Example:

LinearDim(-2",2",1",2",-3",0,771,771,0.75);
LimitTolerance(TRUE,FALSE,'','',-1",1");



  LinearDim Dimensions 
MiniCAD

VectorScript Declaration:

PROCEDURE   LinearDim
(   startPtX :REAL;
    startPtY :REAL;
    endPtX :REAL;
    endPtY :REAL;
    offsetDistance :REAL (Coordinate);
    dimType :INTEGER;
    arrow :INTEGER;
    textFlag :INTEGER;
    textOffset :REAL
) ;

Python:

def  vs.LinearDim(startPt, endPt, offsetDistance, dimType, arrow, textFlag, textOffset):
   return None

Description:

Procedure LinearDim creates a linear dimension in a Vectorworks document.

Bit code values for dimension flags can be found in the VectorScript Appendix.

Linear Dimension


Parameters:

startPt X-Y coordinates of dimension start point.
endPt X-Y coordinates of dimension end point.
offsetDistance Offset distance of dimension line from object.
dimType Dimension type flag.
arrow Arrowhead style flag.
textFlag Text style flag.
textOffset Dimension text offset distance.

Example:

LinearDim(-2",2",1",2",-3",0,771,770,0.75);



  SetDimNote Dimensions 
Vectorworks 2015

VectorScript Declaration:

PROCEDURE   SetDimNote
(   h :HANDLE;
    note :STRING
) ;

Python:

def  vs.SetDimNote(h, note):
   return None

Description:

Procedure SetDimNote sets the note text of the referenced dimension to the specified value.

Parameters:

h Handle to dimension.
note Note string.

Example:

SetDimNote(dimHandle,'DLO');



  SetDimText Dimensions 
MiniCAD4.0

VectorScript Declaration:

PROCEDURE   SetDimText
(   h :HANDLE;
    leaderTrailer :STRING
) ;

Python:

def  vs.SetDimText(h, leaderTrailer):
   return None

Description:

Procedure SetDimText will set the dimension text of the referenced dimension to the specified value.

The maximum length for dimension text is 60 characters. The first 30 characters of the specified dimension text string will be displayed in the primary dimension string; the remaining characters will be displayed in the secondary dimension string, if it exists.

Parameters:

h Handle to a dimension object.
leaderTrailer Dimension text string.

Example:

SetDimText(dimHandle,'Length varies');



  SingleTolerance Dimensions 
MiniCAD4.0

VectorScript Declaration:

PROCEDURE   SingleTolerance
(   showVal :BOOLEAN;
    boxText :BOOLEAN;
    leader :STRING;
    trailer :STRING;
    limDistance :REAL (Coordinate)
) ;

Python:

def  vs.SingleTolerance(showVal, boxText, leader, trailer, limDistance):
   return None

Description:

Procedure SingleTolerance is used with dimensioning procedures to define a tolerance for the most recently created dimension.

Parameters:

showVal Dimension text display flag.
boxText Boxed text display flag.
leader Dimension leader text string.
trailer Dimension trailer text string.
limDistance Limit tolerance string.

Example:

LinearDim(-2",2",1",2",-3",0,771,770,0.75);
SingleTolerance(True,False,'approx. ','',1/16");