Real_King 发表于 2015-8-18 09:06
看了你的权属线和界址点,应该不是CASS生成的,CASS7.1 到 9.1 地籍生成的这两玩意儿扩展数据不像这样, ...
我这样写对吗?- Sub Qqsx() '提取扩展属性
- Dim XDType As Variant, XData As Variant, mm As String, m As String
- Dim ai As Integer
- On Error Resume Next
- ThisDrawing.Utility.GetEntity Entry, basePnt, "选取实体对象"
- Entry.GetXData "", XDType, XData
- ai = UBound(XDType)
- If Err > 0 Then
- mm = "对象没有扩展属性"
- GoTo 10
- End If
- mm = "对象的扩展属性为:"
- For i = 0 To UBound(XDType)
- mm = mm + Chr(13) + Chr(10) + Str(XDType(i)) + "=:" + XData(i)
- a = Err
- Next i
- 10: MsgBox mm
- End Sub
|