如果你想找到答案,请访问Augi论坛网站
下面的代码由jwanstaett提供,效果很好!
- Dim varAcadDwg As Variant
- Dim wallCollection As New Collection
- Dim acadObj As AcadObject
- Dim Mypro As AecScheduleProperty
- Dim strTest As String
- Set varAcadDwg = ThisDrawing.ModelSpace
- For Each acadObj In varAcadDwg
- If acadObj.ObjectName = "AecDbWall" Then
-
- Set Mypro = GetPro("DemtecMurs_O", "CadSubtype", acadObj)
- strTest = Mypro.Value
- MsgBox strTest
- End If
- Next
|