PDA

View Full Version : xdata on blocks with an attribute not getting saved with dwg. Why?


jshimkus
2008-02-09, 02:06 PM
I really need help with this. I've been working on a couple of related programs for months now and I just now find out that my block xdata is not getting saved.
My program is adding a simple drawing, a couple polyline squares with one attribute, as a block and adding xdata to the block.
The program completes fine and the xdata can be viewed on the block.
I save the drawing, but do not close it, the xdata is still there.
If I close the drawing and re-open it or even open another another instance of it read-only and look for the xdata on the blocks the xdata is gone.

If I take the same block drawing and erase the atrribute and repeat the process the block xdata is retained through a save-close-open just fine.

Why would having an attribute on the block cause the block xdata to be lost after a save and close? BTW I'm using MEP 2008

I've upload my block drawing and a quick piece of code that should demonstrate my problem.

Thanks

P.S.
I just tried this by manually inserting the block, using express tools to add the xdata. Using express tools I verified the xdata was on the block.
Saved, closed, re-opened, express tools again to examine the block and NO MORE XDATA!
So its not my program. Something wrong with my block drawing?