IntelliCAD 11.1 Object Library
AddTolerance Method
See Also 
Text
The tolerance text.
InsertionPoint
A Point object representing the location to insert the tolerance.
Direction
A Vector object representing the direction of the tolerance symbol.
ModelSpace Collection : AddTolerance Method

Description

Creates a tolerance entity.

Syntax

Visual Basic
Public Function AddTolerance( _
   ByVal Text As String, _
   ByVal InsertionPoint As Point, _
   ByVal Direction As Vector _
) As Tolerance

Parameters

Text
The tolerance text.
InsertionPoint
A Point object representing the location to insert the tolerance.
Direction
A Vector object representing the direction of the tolerance symbol.

Example

Private Sub AddTolerance_Example()

' This example creates a tolerance object in model space.

     Dim toleranceObj As IntelliCAD.Tolerance

     Dim textString As String

     Dim insPt As Point

     Dim dirVect As Vector

     Set insPt = Library.CreatePoint(1, 2)

     Set dirVect = Library.CreateVector(0.5, 0.5)

     ' Define the tolerance object

     textString = "Test Tolerance"

     ' Create the tolerance object in model space

     Set toleranceObj = ThisDocument.ModelSpace.AddTolerance(textString, insPt, dirVect)

End Sub

See Also

© 2022 IntelliCAD Technology Consortium. All Rights Reserved.