Author Topic: help leader_none.lsp  (Read 1827 times)

0 Members and 1 Guest are viewing this topic.

cretu11

  • Guest
help leader_none.lsp
« on: November 10, 2011, 08:28:30 AM »
Hello All,
I want to use the lisp lider_none.lsp (see attach) but can not find the correct command line to be written in acad2008doc.lsp (see attach).
Command line is written in the tags LEADER NONE to the end of acad2008doc.lsp .
The smallest help is welcome.
Respectfully.

Chris

  • Swamp Rat
  • Posts: 548
Re: help leader_none.lsp
« Reply #1 on: November 10, 2011, 08:42:30 AM »
I wouldnt write anything in the acad2008doc.lsp  you never know when Autodesk might change something.
I would suggest creating a file called acaddoc.lsp and placing it within the support directory.
I havent looked at any of your code, but to load it, I'd write
(load "leader_none.lsp")
Christopher T. Cowgill, P.E.
AEC Collection 2020 (C3D)
Win 10

cretu11

  • Guest
Re: help leader_none.lsp
« Reply #2 on: November 10, 2011, 09:02:33 AM »
Hi Ghris,
By default is this acad2008doc.lsp (from installation).
I have not changed.


cretu11

  • Guest
Re: help leader_none.lsp
« Reply #4 on: November 10, 2011, 10:19:03 AM »
Thanks Lee Mac
The solution is perfect on you .
Here is acaddoc.lsp (with a path to long dont work).

nivuahc

  • Guest
Re: help leader_none.lsp
« Reply #5 on: November 10, 2011, 12:01:21 PM »
Just a bit of un-asked-for advice... if you're going to be loading routines with your acaddoc.lsp file you might want to consider doing something similar to what I do.

On our company server I have a folder structure similar to this;
Code: [Select]
P:\ACAD\
P:\ACAD\Blocks\
P:\ACAD\Profiles\
P:\ACAD\Lisp\
P:\ACAD\Lisp\ARX\

I have a block of code at the top of my acaddoc.lsp that looks something like this;

Code: [Select]
(setq RootPath (if (findfile "P:\\ACAD\\.local") "P:\\ACAD\\" "\\\\Server\\Path\\ACAD\\")
      BlockPath (strcat RootPath "Blocks\\")
      LispPath (strcat RootPath "Lisp\\")
      ARXPath (strcat LispPath "ARX\\")
      ProfilePath (strcat RootPath "Profiles\\")
)

If I've setup a local copy of our routines on a company laptop I'll map the folder as the project drive and create an empty file called .local in the ACAD folder.

Now, when I'm writing code and I want to load something I write it like this;

Code: [Select]
(defun c:MyCommand ()(load (strcat LispPath "MyRoutine")) (c:MyCommand))
This way, later on, when something gets changed (like they move all of our stuff to a different server or they decide to change the drive letter on us) all I have to do is change the path at the top of my routine. Makes it fairly easy to update lots of routines without actually having to update lots of routines...

Just my $0.02