Print to File autocad command lsp

Print to File autocad command lsp

KimBrunz
Advocate Advocate
2,068 Views
5 Replies
Message 1 of 6

Print to File autocad command lsp

KimBrunz
Advocate
Advocate

Does someone have a function that prints out all the autolisp/vlisp commands to file?  The lsp command will print to screen but how do you get that output to file?

 

Thanks for any help



-------------------------------------------------
Windows 10 Pro 64 bit
Currently PDS 2018 but testing alternatives
i7 3770k 16 Gb RAM GTX 1070
0 Likes
Accepted solutions (1)
2,069 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Would you describe with some more details what you would like to achieve ? I think that I can help you.

0 Likes
Message 3 of 6

KimBrunz
Advocate
Advocate

If you type “lsp” at the command line, the prompt is “commands/functions/variables”. Functions gives you a list of the autolisp/vlisp command set, ie. atom, car, eq, print, etc. I would like to print out the command set to file to use in an editor.  The output to screen only saves a few pages, ie. Not the whole set.

 

Thanks, Kim



-------------------------------------------------
Windows 10 Pro 64 bit
Currently PDS 2018 but testing alternatives
i7 3770k 16 Gb RAM GTX 1070
0 Likes
Message 4 of 6

marko_ribar
Advisor
Advisor
Accepted solution

Try using commands : LOGFILEON and LOGFILEOFF... So firstly LOGFILEON, then LSP, ACAD prints to screen and log file and after finish LOGFILEOFF... Then search for *.log file - look for sysvar LOGFILENAME to see where is it stored on HD...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 5 of 6

KimBrunz
Advocate
Advocate

Thanks Marko, I was creating the output and never thought about it being saved to the LOGFILE.  Clearly a "DUH" moment.

 

Thanks,

 

Kim



-------------------------------------------------
Windows 10 Pro 64 bit
Currently PDS 2018 but testing alternatives
i7 3770k 16 Gb RAM GTX 1070
0 Likes
Message 6 of 6

john.uhden
Mentor
Mentor

I posted this some time back, but here it is again...

 

LISTFUNS.lsp which looks like...

 

Command: LF
LISTFUNS v15.01 (c)1994-2001, John F. Uhden, Cadlantic
Function name(s)/<*>: *

Variable Type...
Exsubr/eXrxsubr/File/Int/List/eName/paGetb/Pickset/Real/Safearray/sTr/sUbr/sYm/
vAriant/Vla-object/*, <*>:

   [which will return all the matches here]

Write to file? Append/Overwrite/<No>:

 

 

John F. Uhden

0 Likes