After opening a drawing, it would be nice to have some means of auto detecting
that an opendcl project had previously been used in that drawing and loading the necessary files to re-establish the previous state.
Is anyone willing to share their experience doing this?
Thanks,
Jim
Hello, Jim, for that cases I use
- Registry entries for general settings
- Dictionaries and XRecords with XRecordData for drawing-related settings
- BlackBoard (vl-bb-set ...) (vl-bb-ref ...) for settings for all drawings of the current session.
To make sure that a modeless form (and palettes and dockables) will update automatically, I activate the OnDocActivated event and I call them, too, in the end of autoloading my lisp when a new drawing will be created or an existing will be opened.
That's the way I do.
Regards, Fred