找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 868|回复: 0

[分享]:资料,Qleader的设置

[复制链接]

已领礼包: 145个

财富等级: 日进斗金

发表于 2002-9-18 12:40:30 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
QLEADER Settings  
ID    58545  
Applies to:    AutoCAD 2000
AutoCAD 2002

Date    8/14/2001  

This document is part of   Dimensions   VBA   Visual Basic   


Question
Where is the QLEADER settings information stored and how to access it using VBA?
Answer
The QLEADER settings information is stored in the named object dictionary under
ACADDIM as an Xrecord. Please find below a sample VBA code, which shows how
to access the xrecord information:


Sub test()
   Dim obj As Object
   Dim xrec As AcadXRecord
   
   Set obj = ThisDrawing.Dictionaries("ACADDIM")
   Set xrec = obj
   
   xrec.GetXRecordData xrectype, xrecdata

   For i = 0 To UBound(xrectype) - 1
    ret = MsgBox("Xrecord Type: " & xrectype(i) & vbCrLf & "Xrecord Data: "
& xrecdata(i), vbOKCancel)
    If ret = 2 Then
        Exit Sub
    End If
   Next i
End Sub
End Sub

Following is a listing of the various DXF codes and its descriptions (as in the
QLEADER dialog):
DXF code Description

3 Arrowhead block name

60 0 MText
1 Copy an Object
2 Tolerance
3 Block Reference
4 None

61 0 None
1 Reuse Next
2 Reuse Current

60 0 MText
1 Copy an Object
2 Tolerance
3 Block Reference
4 None

62 0 Text on right - Top of top
1 Text on right - Middle of top
2 Text on right - Middle of multi-line
3 Text on right - Middle of bottom
4 Text on right - Bottom of bottom

63 0 Text on Left - Top of top
1 Text on Left - Middle of top
2 Text on Left - Middle of multi-line
3 Text on Left - Middle of bottom
4 Text on Left - Bottom of bottom

64 0 Underline bottom line - OFF
1 Underline bottom line - ON

65 0 Straight
1 Spline

66 0 No Limit - On
1 No Limit - Off

67 Maximum number of points

68 0 Prompt for width - OFF
1 Prompt for width - ON

69 0 Always Left justify - OFF
69 1 Always Left justify - ON

70 & 71 0 = Any angle
1 = Horizontal
2 = 90
3 = 45
4 = 30
5 = 15

72 0 Frame Text - OFF
72 1 Frame Text - ON
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2025-9-6 16:18 , Processed in 0.323139 second(s), 30 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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