Discussion:
LISP & PDF output
(too old to reply)
aliennation
2007-05-09 18:07:43 UTC
Permalink
I'm using ICAD 6.2 and I can't get a PDF file to output automatically
from LISP (I haven't tried VBA)
Does anyone have any ideas?

By substituting (command "export" "c:\\mypdf.pdf") I get a DWG file,
is there a bug in PDF export?

The function I am using is shown below:

(defun C:myPDFOut ()
(command "export" "c:\\mysvg.svg" "ALL" "")
(command "export" "c:\\mypdf.pdf" "ALL" "")
)
***** This produces the output below **********
: myPDFOut
: export
File name (extension defines export type) <C:\temp\myfile.dwg>:
c:\mysvg.svg
Select entities to export: ALL
Select entities to export:
: export
File name (extension defines export type) <C:\temp\myfile.dwg>:
c:\mypdf.pdf
: ALL error: rejected function
(COMMAND "export" "c:\\mypdf.pdf" "ALL" "")
(C:myPDFOut)
jg
2007-05-09 19:53:24 UTC
Permalink
Post by aliennation
I'm using ICAD 6.2 and I can't get a PDF file to output automatically
from LISP (I haven't tried VBA)
Does anyone have any ideas?
By substituting (command "export" "c:\\mypdf.pdf") I get a DWG file,
is there a bug in PDF export?
(defun C:myPDFOut ()
(command "export" "c:\\mysvg.svg" "ALL" "")
(command "export" "c:\\mypdf.pdf" "ALL" "")
)
***** This produces the output below **********
: myPDFOut
: export
c:\mysvg.svg
Select entities to export: ALL
: export
c:\mypdf.pdf
: ALL error: rejected function
(COMMAND "export" "c:\\mypdf.pdf" "ALL" "")
(C:myPDFOut)
Have you tried doing it from the command line? I don't believe any
version of Icad has the ability to export to PDF. It does dwg, dxf, bmp
and dwf. People, including myself, use a third party "printer driver" to
produce PDF's - there are discussions on which is the best etc. I also
don't think you can automate the print dialogue through lisp or any other.
CW
2007-05-10 01:23:53 UTC
Permalink
CMS Icad 6.2 does PDF.
Post by jg
Post by aliennation
I'm using ICAD 6.2 and I can't get a PDF file to output automatically
from LISP (I haven't tried VBA)
Does anyone have any ideas?
By substituting (command "export" "c:\\mypdf.pdf") I get a DWG file,
is there a bug in PDF export?
(defun C:myPDFOut ()
(command "export" "c:\\mysvg.svg" "ALL" "")
(command "export" "c:\\mypdf.pdf" "ALL" "")
)
***** This produces the output below **********
: myPDFOut
: export
c:\mysvg.svg
Select entities to export: ALL
: export
c:\mypdf.pdf
: ALL error: rejected function
(COMMAND "export" "c:\\mypdf.pdf" "ALL" "")
(C:myPDFOut)
Have you tried doing it from the command line? I don't believe any
version of Icad has the ability to export to PDF. It does dwg, dxf, bmp
and dwf. People, including myself, use a third party "printer driver" to
produce PDF's - there are discussions on which is the best etc. I also
don't think you can automate the print dialogue through lisp or any other.
aliennation
2007-05-14 21:10:58 UTC
Permalink
I am using the CMS version of IntelliCAD, from the standard interface
it will create a PDF, I just can't get it working from LISP.

Currently I use a printer driver that creates PDFs, but I was hoping
to simplify my set up :-(
jg
2007-05-14 21:42:19 UTC
Permalink
Post by aliennation
I am using the CMS version of IntelliCAD, from the standard interface
it will create a PDF, I just can't get it working from LISP.
Currently I use a printer driver that creates PDFs, but I was hoping
to simplify my set up :-(
Without knowing how it exports - like how it stops to input various
settings - or how your lisp works - it's hard to know what's wrong. But
you could try including something like (getstring "\n1 <>:") after each
line to make it pause and let you know how far it got before failing.
Continue reading on narkive:
Loading...