AddDimAngular 方法 (ActiveX)
为圆弧、两条线或一个圆创建角度尺寸。 支持的平台:仅限 Windows 签名VBA: RetVal = object.AddDimAngular(AngleVertex, FirstEndPoint, SecondEndPoint, TextPoint) 言论是圆或圆弧的中心,或被标注尺寸的两条线之间的公共顶点。 并且是两条延长线通过的点。AngleVertexFirstEndPointSecondEndPoint 可以与其中一个角度端点相同。如果您需要延长线,它们将自动添加。提供的端点用作延伸线的原点。AngleVertex 例子VBA: Sub Example_AddDimAngular() ' This example creates an angular dimension in model space. Dim dimObj As AcadDimAngular Dim angVert(0 To 2) As Double Dim FirstPoint(0 To 2) As Double Dim SecondPoint(0 To 2) As Double Dim TextPoint(0 To 2) As Double ' Define the dimension angVert(0) = 0#: angVert(1) = 5#: angVert(2) = 0# FirstPoint(0) = 1#: FirstPoint(1) = 7#: FirstPoint(2) = 0# SecondPoint(0) = 1#: SecondPoint(1) = 3#: SecondPoint(2) = 0# TextPoint(0) = 3#: TextPoint(1) = 5#: TextPoint(2) = 0# ' Create the angular dimension in model space Set dimObj = ThisDrawing.ModelSpace.AddDimAngular(angVert, FirstPoint, SecondPoint, TextPoint) ZoomAll End Sub 可视化 LISP: (vl-load-com) (defun c:Example_AddDimAngular() ;; This example creates an angular dimension in model space. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Define the dimension (setq angVert (vlax-3d-point 0 5 0) FirstPoint (vlax-3d-point 1 7 0) SecondPoint (vlax-3d-point 1 3 0) TextPoint (vlax-3d-point 3 5 0)) ;; Create the angular dimension in model space (setq modelSpace (vla-get-ModelSpace doc)) (setq dimObj (vla-AddDimAngular modelSpace angVert FirstPoint SecondPoint TextPoint)) (vla-ZoomAll acadObj) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 13:11
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.