若要创建几何公差,请使用该方法。AddTolerance 此方法需要三个值作为输入:包含公差符号的文本字符串、图形中放置公差的位置以及指定公差方向的方向向量。您还可以复制、移动、擦除、缩放和旋转公差。 创建几何公差此示例在模型空间中创建一个简单的几何公差。 Sub Ch5_CreateTolerance()
Dim toleranceObj As AcadTolerance
Dim textString As String
Dim insertionPoint(0 To 2) As Double
Dim direction(0 To 2) As Double
' Define the tolerance object
textString = "Here is the Feature Control Frame"
insertionPoint(0) = 5
insertionPoint(1) = 5
insertionPoint(2) = 0
direction(0) = 1
direction(1) = 1
direction(2) = 0
' Create the tolerance object in model space
Set toleranceObj = ThisDrawing.ModelSpace. _
AddTolerance(textString, insertionPoint, direction)
ZoomAll
End Sub
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-10-29 05:55
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.