djs
Electrical
- Mar 21, 2001
- 719
I am writing a VBA porgram in AutoCAD to modify some existing drawings. In particular the program is updating the attribute data for some block references. I have found out how to access the text data and update it once I have the block reference.
The problem is that the block references are in the ModelSpace collection which is a collection of all of the entities in the drawing. This includes text, lines etc. As I go through these entities, I need a way to determine if it is a block reference. As I go through the ModelSpace collection I reference each entity as an object. I need a way to determine if an object is of type AcadBlockReference. Does anyone have any ideas?
The problem is that the block references are in the ModelSpace collection which is a collection of all of the entities in the drawing. This includes text, lines etc. As I go through these entities, I need a way to determine if it is a block reference. As I go through the ModelSpace collection I reference each entity as an object. I need a way to determine if an object is of type AcadBlockReference. Does anyone have any ideas?