Dictionary Objects Not Saving

Dictionary Objects Not Saving

Kyudos
Advisor Advisor
698 Views
3 Replies
Message 1 of 4

Dictionary Objects Not Saving

Kyudos
Advisor
Advisor

I have some settings objects in a named object dictionary.

 

The first time I save my dictionary into the document the contained objects are saved. Subsequent saves of the document do not save the contained objects. (or the dictionary?)

 

Any idea why this might be? I expect my objects to be saved on every save.

0 Likes
Accepted solutions (1)
699 Views
3 Replies
Replies (3)
Message 2 of 4

artc2
Autodesk
Autodesk
Accepted solution
Do you have ISAVEPERCENT set to 0? If not, then saves will be partial saves and objects that haven't changed won't be saved again.
Message 3 of 4

Kyudos
Advisor
Advisor

That looks to be it - but that essentially means that edits to my dictionary objects are not registering as changes.

 

What is the best way to mark an object as dirty? assertWrite()?

0 Likes
Message 4 of 4

artc2
Autodesk
Autodesk
Normally, set methods in an object call assertWriteEnabled(). That will set the flag that the object has been modified.
0 Likes