Rogue S::Startup Commands?

Rogue S::Startup Commands?

ergoarchitecture
Contributor Contributor
632 Views
7 Replies
Message 1 of 8

Rogue S::Startup Commands?

ergoarchitecture
Contributor
Contributor

When I first load AutoCAD I get the following strings before the command prompt:

 

Command: *Cancel*
_RIBBON
*Cancel*
COMMANDLINE
properties
*Cancel*
TOOLPALETTES
*Cancel*


Command:

Command:

 

This happens only when launching, not when opening files when the program is already open.

 

I figure they must be S::Startup commands that got appended to something, but I have been through the files below and I can't find any S::Startup calls:

  • All the LISP and .MNL files listed as loaded in APPLOAD
  • LISP sections in CUIx files
  • Startup Suite Applications

I feel like I am missing something obvious, but if not, any ideas on how I might find the source?

 

Thanks!

0 Likes
633 Views
7 Replies
Replies (7)
Message 2 of 8

paullimapa
Mentor
Mentor

this link has been mentioned in multiple threads but I thought I include it here so you have an idea as to the order AutoCAD loads files at startup:

What is loaded at AutoCAD startup, and when? - cad nauseam


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 8

paullimapa
Mentor
Mentor

and you can see what the S::STARTUP is doing...while in a drawing enter at the command line:

!s::startup


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 8

ergoarchitecture
Contributor
Contributor

Hi @paullimapa ,

 

The !S::Startup was a great hint!  I could see what was running in S::Startup and see that the problem is occurring before that.  According to the article you mentioned above and tagging of the routines I know about, the problem appears to be coming from acadstartup() which other articles say might reside in acad.dvb?

 

I don't remember editing such a file, and in fact seldom if ever use VBA.  I have looked through all my customization areas, and don't see acad.dvb.  Is there somewhere else I might find acadstartup()?  Could it be buried in any LISP routine?

 

Thanks!

0 Likes
Message 5 of 8

paullimapa
Mentor
Mentor

I dont' think it's acad.vba because vba installation is no longer part of the initial AutoCAD install and must be installed separately:

VBA support for AutoCAD | AutoCAD | Autodesk Knowledge Network

If you have a system where you can use for testing, first reset AutoCAD settings to default and then slowly add back the custom files you use to see which one is the cause of the problem.

paulli_apa_0-1663791570924.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 6 of 8

Sea-Haven
Mentor
Mentor

There is from windows CMD the option to use FINDSTR which looks for a string pattern in files, it displays matches found.

 

FINDSTR S::Startup *.lsp

 

Ok just looked for startup over a drive and it worked. Findstr /s startup *.lsp

 

So lower left on windows then CMD will open OS window. Type the string above. If blank then not found. If you think its not working try a known string and search say a defun name.

 

Oh yeah multi drives etc just type drive letter to change search path C: 😧 E: etc

Message 7 of 8

ergoarchitecture
Contributor
Contributor

Thanks!  That's good to hear, because as far as I know I have been using only LISP. 

 

I took your excellent advice and renamed all the LISP file that would load themselves like ACAD.mnl, Acad2022.lsp, Acaddoc.lsp, Acetmain.mnl, and all the LISP and MNL files that I load.  Then ran APPLOAD and !S::Startup to confirm that none of the LISP, MNL, or Startup files ran, but the problem remains!

 

Very strange...

0 Likes
Message 8 of 8

ergoarchitecture
Contributor
Contributor

Thanks @Sea-Haven, that is a great trick, and worked very well. 

 

In addition to the files I already knew about and had disabled to debug, it found a Visual LISP sample file called Blackboard.lsp, timestamp.lsp, and sample-profile-util.lsp, as well as a few other visual LSIP sample files.  The trouble is that none of these seemed to show the offending bits, or showed up as loaded apps when I ran APPLOAD after loading AutoCAD, and I got nil when I ran !S::Startup.

 

The mystery continues.  I guess it isn't a big deal, I just hate not knowing what's going on...

 

 

 

0 Likes