Message 1 of 18
execute mnl only on autocad startup?

Not applicable
04-07-2004
07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
looks like I've build a nice deathtrap. However, maybe someone has an idea?
I have a mnl file loaded with my mnu which does:
- load my vlx
- define some commands
- set some variables
Recently it became necessary to set several options with every autocad
startup, so I included the following line in the mnl:
(vl-vbarun "gb_AO.dvb!M_Startup.GB_startup")
Normally this works without problems.
Now I've got a vba program which exports objects on certain layers using
wblock. Dependent on user's choice either one drawing or a bunch of drawings
are created and at last opened.
The problem: If more than one drawing are opened, only the last one is
opened completely, the others are locking up whilst executing the startup
macro and cannot be closed afterwards ("AutoCAD can't close drawing because
a command is still active...")
Can I achieve the mnl to be executed only on Autocad startup?
Or is there a possibility to execute a vba macro only once in a autocad
session?
TIA,
Kathrin