Author Topic: cant edit acad.lsp or acaddoc.lsp  (Read 6157 times)

0 Members and 1 Guest are viewing this topic.

andrew..

  • Newt
  • Posts: 24
cant edit acad.lsp or acaddoc.lsp
« on: July 31, 2015, 09:19:07 AM »
hello gang.
i started a new job and couldnt remember my old login so had to make a new account.
anyway. i have some custom lisp files i need to add to the acad.lsp and the acaddoc.lsp files but they are admin controlled.
how can i get my acad and acaddoc lsp files to load along side of the OOTB acad and acaddoc lsp files?

is there maybe another way to load my files on startup without editing these files?


JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #1 on: July 31, 2015, 09:30:05 AM »
Yes, a MNL file.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ChrisCarlson

  • Guest
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #2 on: July 31, 2015, 09:36:52 AM »
People still load their routines into those files? Why not load through the startup suite which is not admin controlleD?

ronjonp

  • Needs a day job
  • Posts: 7531
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #3 on: July 31, 2015, 10:14:35 AM »
People still load their routines into those files? Why not load through the startup suite which is not admin controlleD?

I have not used the startup suite in over a decade. Last time I remember it was sorta half baked .. but maybe it's better now?


Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #4 on: July 31, 2015, 10:22:11 AM »
People still load their routines into those files? Why not load through the startup suite which is not admin controlleD?

Ummm...why wouldn't they *not* use an MNL file? Don't you create a custom or enterprise CUIX file? There was no way I was going to go around to everyone's computer and add files to the end users startup thing (way too many people/computers); I would have lost my job for wasting time!

Quote
...
MNL files with the same name and location as your main, enterprise, or partial customization files are loaded automatically; these files cannot be removed.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #5 on: July 31, 2015, 10:24:14 AM »
hello gang.
i started a new job and couldnt remember my old login so had to make a new account.
anyway. i have some custom lisp files i need to add to the acad.lsp and the acaddoc.lsp files but they are admin controlled.
how can i get my acad and acaddoc lsp files to load along side of the OOTB acad and acaddoc lsp files?

is there maybe another way to load my files on startup without editing these files?

You don't.  If those files are locked down there is generally a good reason.  Your customizations could end up bypassing important protocols/procedures you aren't aware of.  First, as a new employee you need to learn to do things the company way.  Then you can see if fiddling around would improve things rather than making them worse.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

ChrisCarlson

  • Guest
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #6 on: July 31, 2015, 10:30:38 AM »
People still load their routines into those files? Why not load through the startup suite which is not admin controlleD?

Ummm...why wouldn't they *not* use an MNL file? Don't you create a custom or enterprise CUIX file? There was no way I was going to go around to everyone's computer and add files to the end users startup thing (way too many people/computers); I would have lost my job for wasting time!

Quote
...
MNL files with the same name and location as your main, enterprise, or partial customization files are loaded automatically; these files cannot be removed.

We utilize enterprise CUIx here but the way it sounds he doesn't have access to modify the CUI file (maybe they have the same setup?) so the next step is to

A) Figure out why, maybe its a bad routine? Not vetted?
B) If he absolutely needs that routine the next best step is to add it to his start-up suite.

BlackBox

  • King Gator
  • Posts: 3770
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #7 on: July 31, 2015, 10:32:51 AM »
If using 2012+, you can always use one of the 2-3 ..\ApplicationPlugins\ folders to load a custom .bundle (which loads your own LISP, etc.) and completely bypasses all AutoCAD Security (save some 2016 changes, which user can immediately, and permanently dismiss, BTW)... See this old post for more info.



Also, doesn't CUIx support 'embedded' LISP (no need for MNL)? :-)

About Loading an AutoLISP File with a CUIx File

Quote
...
MNL files with the same name and location as your main, enterprise, or partial customization files are loaded automatically; these files cannot be removed. Additional AutoLISP (LSP) files can be loaded with a CUIx file by adding a reference to the file under the LISP Files node displayed for a loaded CUIx file in the Customizations In pane of the Customize User Interface (CUI) Editor.
« Last Edit: July 31, 2015, 10:37:42 AM by BlackBox »
"How we think determines what we do, and what we do determines what we get."

BlackBox

  • King Gator
  • Posts: 3770
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #8 on: July 31, 2015, 10:36:59 AM »
We utilize enterprise CUIx here but the way it sounds he doesn't have access to modify the CUI file (maybe they have the same setup?) so the next step is to

A) Figure out why, maybe its a bad routine? Not vetted?
B) If he absolutely needs that routine the next best step is to add it to his start-up suite.

So long as the Enterprise CUIx is not read-only, this may be of use.

I could not disagree with you more on point B - demand loading, anyone? :angel:
"How we think determines what we do, and what we do determines what we get."

JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #9 on: July 31, 2015, 10:39:42 AM »
Make your own CUIx file.

Yes, BB it does but I loaded all my "support" functions into the MNL file and anything else I used embeded. ...of course I also rolled my own loader which was in the MNL file so I never used the embeded lisps that much either so take that with a grain of salt.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10661
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #10 on: July 31, 2015, 10:42:13 AM »
Would you mind sending me that lisp from RRB, BlackBox (I'm not a member there).

Also, Is RRB still active? What's he up to these days?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ChrisCarlson

  • Guest
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #11 on: July 31, 2015, 10:59:40 AM »
Make your own CUIx file.

Yes, BB it does but I loaded all my "support" functions into the MNL file and anything else I used embeded. ...of course I also rolled my own loader which was in the MNL file so I never used the embeded lisps that much either so take that with a grain of salt.

Why make a new CUIx file simply for loading of local, per-user lisp routines? You can definitely do that but Confucius says "don't use a cannon to kill a mosquito".

andrew..

  • Newt
  • Posts: 24
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #12 on: July 31, 2015, 12:03:40 PM »
its custom block commands and ddedit and a few other general all purpose custom commands but for my custom wblock command i undefind the OOTB block command and the ddedit command and so on.
ill look into the startup suite and the mnl and determine what is easiest

if any other ideas come to mind, please post them

thanks again

andrew..

  • Newt
  • Posts: 24
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #13 on: July 31, 2015, 12:07:09 PM »
Make your own CUIx file.

Yes, BB it does but I loaded all my "support" functions into the MNL file and anything else I used embeded. ...of course I also rolled my own loader which was in the MNL file so I never used the embeded lisps that much either so take that with a grain of salt.
i was able to load my own menu with no issues. its the acad and the acaddoc lisp files that i need access to.
or a way to load my own code on startup

ronjonp

  • Needs a day job
  • Posts: 7531
Re: cant edit acad.lsp or acaddoc.lsp
« Reply #14 on: July 31, 2015, 12:10:02 PM »
If you can load your own menu, I'd suggest the mnl route. There are plenty of example routines here for loading files from a directory.
« Last Edit: July 31, 2015, 12:14:08 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC