OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Jim Short on October 10, 2011, 08:48:11 AM

Title: Auto Load OpenDCL
Post by: Jim Short on October 10, 2011, 08:48:11 AM
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
Title: Re: Auto Load OpenDCL
Post by: Fred Tomke on October 10, 2011, 04:21:39 PM
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