Behaviour of loading multiple on_doc_load.lsp?

I have multiple "on_doc_load.lsp", for example

  • in folder C:\test, which is listed at first place in support folders
  • in main-Bricscad-folder which is on second place in support folders
  • in Bricscad-express-folder which is on third place in support folders

When I enter "findfile on_doc_load.lsp" it shows me the file from main-folder, and this file is also the only one which is loaded.

So what's the official behaviour of the loading-order?
What is loaded first? And why?
Can multiple files be loaded?

Comments

  • Roy Klein Gebbinck
    edited September 2018

    Only one on_doc_load.lsp is automatically loaded per drawing. First the 'start up directory' is checked. Next the folder the drawing is in (this will be the start up directory if you have started BC by double-clicking the file). Then the search path is used.

    In your test I think you have started BC by double-clicking a desktop shortcut.

  • Thanks Roy

    maybe Bricsys could add this info to documentation? I couldn't find it there ...

This discussion has been closed.