In my custom ACAD.lsp file I have (acad-push-dbmod) at the beginning and (acad-pop-dbmod) at the end, yet every time I check DBMOD after opening AutoCAD, it has a value of 5.
Thoughts? Suggestions??
Edit: Scratch... just saw dgorsman's quoted post from previous page.I also use ACAD.lsp to set profile paths, etc., however DBMOD = 0 at start with Drawing1.
Consider the load order at startup:
linkyA. CUI files loaded:
1. Enterprise
2. Main
3. Partials to Main
4. Partials to Enterprise
B. acad*.* files loaded:
1. Files listed in acad.rx
2. acad2009.lsp
3. acad.lsp <--
4. acad2009doc.lsp
5. acaddoc.lsp
6. acad.dvb
C. CUI-associated MNL and LSP files loaded:
1. Enterprise named MNL
2. Enterprise loaded LSP and MNL
3. Main named MNL
4. Main loaded LSP and MNL
5. Partials to Main named MNLs
6. Partials to Main loaded LSPs and MNLs
7. Partials to Enterprise named MNLs
8. Partials to Enterprise loaded LSPs and MNLs
D. Startup suite files loaded
E. Startup routines run:
1. AcadStartup() called (AutoCAD startup)
2. AcadDocument_Activate() called (Drawing startup)
3. (S::STARTUP) called
4. SCR loaded from /b switch
Edit: ^^
Corrected... Is it possible that you have something loading/executing via ACADDOC.lsp, CUI(s), or (S::STARTUP)?