26
177
7
后起之秀
使用道具 举报
158
2315
10
顶梁支柱
' 函数 Sub SetAttValue(AttEnt As AcadBlockReference, Tag As String, Value As String) Dim Att As AcadAttributeReference If AttEnt.HasAttributes = True Then Dim AttVal As Variant AttVal = AttEnt.GetAttributes Dim i As Integer For i = 0 To UBound(AttVal) If AttVal(i).TagString = Tag Then AttVal(i).TextString = Value End If Next i End If End Sub ' 例子 Sub mjtd() Dim ent As AcadEntity Dim pnt As Variant ThisDrawing.Utility.GetEntity ent, pnt, "Get Block:" SetAttValue ent, "CLBJ", "mjtd.com" End Sub
本版积分规则 发表回复 回帖后跳转到最后一页
微信公众平台
扫描访问手机版
点击图片下载手机App
|关于我们|小黑屋|乐筑天下 繁体中文
GMT+8, 2025-3-14 21:13 , Processed in 0.572194 second(s), 56 queries .
© 2020-2025 乐筑天下
在线时间:10:00-17:00
暂无
扫一扫,关注我们
帮助中心
关于我们
下载APP客户端