Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autoload.lsp Question

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
dwk1204
467 Views, 3 Replies

Autoload.lsp Question

I have my autoload.lsp being loaded be my acaddoc.lsp which I have done for quite a while. It now does not work. If I am understanding correctly it is loading because I see it when I go into appload, I also see at the command prompt "Loaded", but not one routine in the autoload works? 

 

A sample of my routine is below:

 

(setq lisp_path (strcat "C:\\Users\\Public\\Team\\Autodesk\\GoogleDrive\\R19.1\\Linetypes\\team.lin"))

 

(load (strcat lisp_path "sanunknown") '("sanunknown"))
(load (strcat lisp_path "san8") '("san8"))
(load (strcat lisp_path "san10") '("san10"))
(load (strcat lisp_path "san12") '("san12"))
(load (strcat lisp_path "san15") '("san15"))
(load (strcat lisp_path "san18") '("san18"))
(load (strcat lisp_path "san24") '("san24"))
(load (strcat lisp_path "san36") '("san36"))
(load (strcat lisp_path "san48") '("san48"))

 

(princ " loaded")

 

Any help would be GREATLY appreciated !!

3 REPLIES 3
Message 2 of 4
paullimapa
in reply to: dwk1204

Just looking at your brief sample it looks like the path goes to a linetype file "team.lin"

 

If this is the case, you cannot use the load lisp function to load linetypes.

You would have to use AutoCAD's Linetype command & load option:

(command "_.Linetype" "_Load" (strcat lisp_path))

 

There's also a possiblity you are loading shape files under folder "team.lin".  But then you would use AutoCAD's Load command to do this:

(command"_.Load (strcat lisp_path "\\sanunknown"))

 

Then there's also a possibility that there are lisp files saved under "team.lin" subfolder then your load lisp function is missing a "\\":

(load (strcat lisp_path "\\sanunknown"))

 

You are seeing at the command prompt "Loaded" because the last line in yoru sample shows this statement:

(princ " loaded")

But that doesn't mean anything is necessarily "loaded".

 

Without any additional info, it's really hard to provide any more feedback.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 4
Lee_Mac
in reply to: dwk1204

dwk1204 wrote:

 

(load (strcat lisp_path "sanunknown") '("sanunknown"))
(load (strcat lisp_path "san8") '("san8"))
(load (strcat lisp_path "san10") '("san10"))
(load (strcat lisp_path "san12") '("san12"))
(load (strcat lisp_path "san15") '("san15"))
(load (strcat lisp_path "san18") '("san18"))
(load (strcat lisp_path "san24") '("san24"))
(load (strcat lisp_path "san36") '("san36"))
(load (strcat lisp_path "san48") '("san48"))

 

You are using the load function, but supplying the syntax in the form required by the autoload function; change 'load' to 'autoload'.

 

Lee

Message 4 of 4
dwk1204
in reply to: Lee_Mac

Thanks to both of you for the quick response and suggestions...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost