Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

cadffm
en respuesta a: voseo

Hi,

 

>>"I find it very frustrating that s::startup runs every time a drawing is opened"

It doesn't*

 

>>". I have to load several hundred Lisp files to enable me to run them on my drawings. "

Hundreds? Time to overthink your function&file library structure, but this is offtopic and your own choice.

 

>>"Previously (Acad2012) it seemed that it was only necessary to load the files (within s::startup) at the initial start up of AutoCAD"

No*, nothing changed.

 

>>"(which was controlled by the 'lispinit' variable)"

ahh.

Lispinit controles the lispsymbol keep-or-take-with from document to document while in SDI mode(1) !

SDI is special and not default, sinde R2000 MDI is default an usual.

* If SDI is on and Lispinit is set to 0, this is how the program works, today and in R2012 too.

 

>>"however this now appears to have been discontinued and it takes about 5 minutes to load every time I open a drawing."

while SDI and lispinit=0 and s::startup is defined, that's normal (if you are using simple load-statements).

! I can't say anything about the timing problem, but please tell us how long this takes for the first or second file, thank you.

 

>>"I'm probably wrong, but I believe that the lisp was previously loaded into the Acad 'Environment' "

No, Lisp is loaded into the document. If we talking about function from a vlx, you have more options,

but in this case YOU should know what you talking about.

https://help.autodesk.com/view/ACD/2024/DEU/?guid=GUID-4E949651-A881-4E0F-9DBA-A4645FE473B3

https://help.autodesk.com/view/ACD/2024/DEU/?guid=GUID-5784FC6F-82DD-4459-879B-6EC3BD5E88D1 

 

 

>>"but now into the Individual Drawing session itself. "

While SDI and lispinit=0 it is enough to load them one time.

 

>>"I'm now no longer to loop into and out of drawings and run an automated program on each drawing (with no interaction from me) as I could do previously without getting the 'VL-NAMESPACE' error appearing."

It should be easy to find the first peace of the issue, while sitting in front of the system,

but it's hard to help from here without access.

 

>>"I really hope I'm wrong,"

Some rememberings, sure.

 

>>"but if there are any suggestions I'd be very pleased to know them (within reason :))"

_ _ _ _ _

 

Some ideas to start with searching, but I have to choose one of the ways:

 

1. You set LISPSYS to 0 ? If not, set it to 0 and restart Acad (which productname and Autocad-productversion in detail? See command ABOUT)

2. Just to make sure, please answer to: You are running SDI=1 and LISPINIT=0 ?

3. I don't want to talk so much about "before", I'd rather solve the problem first.

    For all your tests, redefine or skip th eload*something part in your s::startup,

    Start AutoCAD, load your Lisp files one time (all .lsp/.fas, or also .vlx files as I guess?)

     and do whatever needed to test the issue now.

 

4. We are waiting for as much feedback as possible.

   

 
 

 

 

Sebastian