明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1738|回复: 2

求助,关于转角标注

[复制链接]
发表于 2003-11-13 14:52:00 | 显示全部楼层 |阅读模式
转角标注

Public Sub Align_Draw(aa0, aa1, aa2, bb0, bb1, bb2 As Double, locLongAdept, locWideAdept As Double, angle As Double, textIn As Double)

    Dim dimObj As AcadDimAligned
    Dim location(0 To 2) As Double
    Dim rotAngle As Double
    Dim startPoint(0 To 2) As Double
    Dim endPoint(0 To 2) As Double
   
    rotAngle = angle
    rotAngle = rotAngle * 3.1415926 / 180#
    AcadApp.ActiveDocument.ActiveLayer = enn(8)
   
    startPoint(0) = aa0
    startPoint(1) = aa1
    startPoint(2) = aa2
    endPoint(0) = bb0
    endPoint(1) = bb1
    endPoint(2) = bb2
    location(0) = startPoint(0) + locLongAdept
    location(1) = startPoint(1) + locWideAdept
    location(2) = 0
   
    Set dimObj = AcadApp.ActiveDocument.ModelSpace.AddDimAligned(startPoint, endPoint, location)
    dimObj.TextOverride = textIn
    dimObj.ArrowheadSize = 3.5
    dimObj.TextHeight = 3.5

    dimObj.VerticalTextPosition = acAbove
    dimObj.TextRotation = rotAngle
    dimObj.Update

End Sub

调用函数Align_Draw Point_C(0), Point_C(1), Point_C(2), Point_D(0), Point_D(1), Point_D(2), 15, 0, 90, wt_wide

请问怎样将垂直方向的标注放到标注线上方

我只能将它放在标注线的中间
发表于 2003-11-13 15:24:00 | 显示全部楼层
好好看一下标注的各种属性吧,很多,要慢慢消化
 楼主| 发表于 2003-11-19 10:48:00 | 显示全部楼层
不太好办阿

如果直接在AutuCAD上加标注

根本不要任何修改

但是一用vb,标注字就躺下来了

就是垂直方向的一个普通标注

帮忙帮忙

很重要的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-28 13:42 , Processed in 0.167477 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表