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

Accoreconsole and lisp

7 REPLIES 7
Reply
Message 1 of 8
nice-paca
1408 Views, 7 Replies

Accoreconsole and lisp

Hi

 

 

I would like to launch attached lisp in a accoreconsole.

 

The goal is to plot every layouts of a file When I load or insert the lisp directly in the console, I have no errors

 

When I launch it : Command : test , accoreconsole gives me two blank lines and accoreconsole waits a new command "Command : " as asual. He does nothing

 

I saw that the 'lisp command' can't be used in accoreconsole but I have no idea how can I do without using 'command' in my lisp

 

Each files have several layouts (10) and I would like to plot all of them.

 

I don't want to use the command publish (it works perfectly) because I need a specific dsd for each file (something like a bunch of 200 files).

 

Thanks if you have any suggestions,

Tags (2)
7 REPLIES 7
Message 2 of 8
nice-paca
in reply to: nice-paca

This is the exact Lisp I try to use in accoreconsole :

 

(defun C:test (/ layouts num)
(setq layouts (layoutlist))
(setq num 0)
(repeat (length layouts)
(COMMAND "-PLOT"
"Yes"
""
"PublishToWeb PNG.pc3"
"User 1 (8000.00 x 8000.00 Pixels)"
"Portrait"
"No"
"Extents"
"Fit"
"Center"
"Yes"
"."
"Yes"
"Yes"
"No"
"No"
""
"No"
"Yes"

)
(setq num (1+ num))
)
)

 

If you have suggestions, you're welcome. I defintly lost!

 

 

Message 3 of 8

Hi did you solve that allready? I have the same issue and can't find any answer. My self made TLEN.lsp file works fine in Autocad.exe just typing TLEN, but whe I call it in accore console just typing TLEN it says:

 

"Command: TLEN

Unknown command "TLEN". Press F1 for Help.

Command: _quit"

 

And crashes. What's the right way to call my .lisp routine in accoreconsole? Thank you 

 

Message 4 of 8

I don't know much about accoreconsole, but you might look here: 

http://adndevblog.typepad.com/autocad/2012/04/getting-started-with-accoreconsole.html

 



Jon Page

AutoCAD Design Manager
Message 5 of 8

I allready read the Balaji Ramamoorthy's and some more people's posts, videos, forums and more about accore console, I can now run the accoreconsole, my own .bat, .scr, and .lsp files, I got that covered thank you for that but now at this not so noob level I got stuck tryng to call my TLEN.lsp in accoreconsole, any other idea?

Message 6 of 8
cadffm
in reply to: nice-paca

Crosspost https://forums.autodesk.com/t5/autocad-forum/can-t-run-my-selfmade-lsp-in-accoreconsole/td-p/7437946

See solution there, use Lispfunction LOAD
(load "c:/myfold/my.lsp")
- Sebastian -
Message 7 of 8
jairo.zenteno.jz
in reply to: cadffm

@cadffm That didn't work I tried that before, It stills pass that line and does nothing like if I where typing nothing but a space, any other idea? Thank you

Message 8 of 8
cadffm
in reply to: jairo.zenteno.jz

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

Post to forums  

Autodesk Design & Make Report

”Boost