Auto Load OpenDCL

Started by Jim Short, October 10, 2011, 08:48:11 AM

Previous topic - Next topic

Jim Short

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
Jim Short

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]