AngularDim | Dimensions |
Declaration:
PROCEDURE AngularDim
( startPtX :REAL; startPtY :REAL; endPtX :REAL; endPtY :REAL; vert1X :REAL; vert1Y :REAL; textOffsetDistance :REAL; arrow :INTEGER; textFlag :INTEGER; posAngle :REAL ) ; 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,#35° 32'16");
CircularDim | Dimensions |
Declaration:
PROCEDURE CircularDim
( startPtX :REAL; startPtY :REAL; endPtX :REAL; endPtY :REAL; box1X :REAL; box1Y :REAL; box2X :REAL; box2Y :REAL; textOffsetDistance :REAL; dimType :INTEGER; arrow :INTEGER; textFlag :INTEGER; shoulder :REAL ) ; 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");
DimArcText | Dimensions |
Declaration:
PROCEDURE DimArcText
; 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 |
Declaration:
PROCEDURE DimText
; Description:
Procedure DimText converts the most recently created line object in VectorScript to a dimension.Example:
LineTo(2,2); DimText;
DoubleFixedTolerance | Dimensions |
Declaration:
PROCEDURE DoubleFixedTolerance
( showVal :BOOLEAN; boxText :BOOLEAN; leader :STRING; trailer :STRING; topStr :STRING; botStr :STRING ) ; 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 |
Declaration:
PROCEDURE DoubleTolerance
( showVal :BOOLEAN; boxText :BOOLEAN; leader :STRING; trailer :STRING; topDistance :REAL; botDistance :REAL ) ; 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 |
Declaration:
FUNCTION GetDimText
( h:HANDLE ) :STRING ; Description:
Function GetDimText returns the dimension value displayed with the referenced object.
Parameters:
h Handle to object. Example:
DimValue:=GetDimText(HandleToObj);
HasDim | Dimensions |
Declaration:
FUNCTION HasDim
( h:HANDLE ) :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 |
Declaration:
PROCEDURE LimitTolerance
( showVal :BOOLEAN; boxText :BOOLEAN; leader :STRING; trailer :STRING; lowDistance :REAL; hiDistance :REAL ) ; 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 |
Declaration:
PROCEDURE LinearDim
( startPtX :REAL; startPtY :REAL; endPtX :REAL; endPtY :REAL; offsetDistance :REAL; dimType :INTEGER; arrow :INTEGER; textFlag :INTEGER; textOffset :REAL ) ; 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);
SetDimText | Dimensions |
Declaration:
PROCEDURE SetDimText
( h :HANDLE; leaderTrailer :STRING ) ; Description:
Procedure SetDimText will set the dimension text of the referenced dimension to the specified value. The maximum string length is 30 characters.Parameters:
h Handle to a dimension object. leaderTrailer Dimension text string. Example:
SetDimText(dimHandle,'Length varies');
SingleTolerance | Dimensions |
Declaration:
PROCEDURE SingleTolerance
( showVal :BOOLEAN; boxText :BOOLEAN; leader :STRING; trailer :STRING; limDistance :REAL ) ; 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");