- 积分
- 282
- 明经币
- 个
- 注册时间
- 2002-9-26
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
我在图块中创建一个属性,为什么进行图块引用的时候这个属性
不在我最初定义的点上?块中还有其它的实体,插入后属性值的
位置一直不对,但是手动操作的就可以,这是为什么?
我也是按照帮助里写的
Dim attCode As AcadAttribute
Dim height As Double
Dim mode As Long
Dim prompt As String
Dim insertionPoint(0 To 2) As Double
Dim tag As String
height = 3.5
mode = acAttributeModeVerify
prompt = ""
insertionPoint(0) = 1000: insertionPoint(1) = 1000: insertionPoint(2) = 0
tag = "TagCode"
Set attCode = blockObj.AddAttribute(height, mode, prompt, insertionPoint, tag, strCode)
attCode.Alignment = acAlignmentMiddleCenter
Dim blockRefObj As AcadBlockReference
Set blockRefObj = ThisDrawing.ModelSpace.InsertBlock(insertionPnt, "NameTableBlock", fscale, fscale, fscale, 0) |
|