Set blockRefObj = 布局名称.Item(块编号) varAttributes = blockRefObj.GetAttributes ‘获得属性集 For tempi = 0 To UBound(varAttributes) Select Case (Trim(varAttributes(tempi).TagString)) '查找tag名称 Case "设计人": ..... Case 设计单位": ..... End Select Next tempi Set blockRefObj = Nothing |