Message 1 of 4
Update Attribute prior to Insert
Not applicable
05-29-2012
12:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a routine that will change attribute text when the block is in the dwg. My problem is that I would like to set the attribute text prior to insertion. Every example that I have found uses promptentityoptions which returns a result.ObjectId. as shown below.
BlockReference br = (BlockReference)tr.GetObject(result.ObjectId, OpenMode.ForRead);
AttributeCollection attCol = br.AttributeCollection;
What do I use in place of result.ObjectId?
Tom