xdata on block definitions

xdata on block definitions

Anonymous
Not applicable
726 Views
3 Replies
Message 1 of 4

xdata on block definitions

Anonymous
Not applicable

Hi folks,

 

I'm fairly new at .NET. 

I'm trying to attach xdata to a block definition. Is this possible, or can it only be attached to block references?

 

I have the block table reference for the block in the db, but can't figure out how to get an entity objectID from it, which is what the xdata routines that I'm working with requires. 

 

Thanks

0 Likes
727 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

BlockTableRecord.ObjectId

0 Likes
Message 3 of 4

chiefbraincloud
Collaborator
Collaborator

BlockRef.BlockTableRecord is the objectid.

 

Yes you can attach Xdata to a Block Definition (BlockTableRecord), but if it is part of your plan, your code will have to copy the Xdata from the BTR to the Bref when created.  It will not automatically propagate to the Refs.

Dave O.                                                                  Sig-Logos32.png
0 Likes
Message 4 of 4

Anonymous
Not applicable

Thanks for the replies.  I apparently was misinterpreting the error I was getting, the problem must be elsewhere in the code. 

 

Thanks also for the info on the xdata not automatically following insertions.  That would have caught me when I got there.

 

0 Likes