CMS IntelliCAD Forum Index CMS IntelliCAD
Discussing CMS IntelliCAD since 2000
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PDF Export via LISP

 
Post new topic   Reply to topic    CMS IntelliCAD Forum Index -> AutoLisp/SDS
View previous topic :: View next topic  
Author Message
timg
Newbie


Joined: 13 Mar 2005
Posts: 7
Location: San Jose, CA, USA

PostPosted: Wed Oct 14, 2009 2:02 pm    Post subject: PDF Export via LISP Reply with quote

Not a lot of traffic here, but I'll give it a try...

I wish to export a drawing I have created via lisp as a PDF file. In theory the code below should work, but what I get is the default DWG format instead. Anyone got any ideas? Is this a bug?

; (load "pout")
(defun C:pout ()
(command "export" "c:\\mypdf.pdf")
)

FOrgot to mention, I'm using CMS ICAD v6.6 Pro
Back to top
View user's profile Send private message Send e-mail
CAD_B
Valued Contributor


Joined: 20 Jun 2004
Posts: 27

PostPosted: Thu Oct 15, 2009 4:20 pm    Post subject: Reply with quote

Not sure about this, but instead of EXPORT try PDFOUT.
Back to top
View user's profile Send private message
timg
Newbie


Joined: 13 Mar 2005
Posts: 7
Location: San Jose, CA, USA

PostPosted: Wed Oct 21, 2009 12:36 pm    Post subject: PDF Export Reply with quote

No, PDFOUT and PDFEXPORT are not commands. Looks like this is an on-going bug, I've seen it since 6.2
Back to top
View user's profile Send private message Send e-mail
CAD_B
Valued Contributor


Joined: 20 Jun 2004
Posts: 27

PostPosted: Wed Oct 21, 2009 1:08 pm    Post subject: Reply with quote

Sorry I was no help. I use a different brand of Intellicad (Cadopia) that has the PDFOUT command in their recent release. The only suggestion I have is that you could possibly use an external PDF converter program (there are many) and call it from within your lisp. I presume CMS Icad has STARTAPP or SHELL or something to call a windows program. I have successfully made external calls in Autolisp by using FINDFILE within a loop to check for the existence of the new file. Good luck.
Back to top
View user's profile Send private message
CMS Inc
Site Admin


Joined: 23 Feb 2005
Posts: 13

PostPosted: Wed Oct 21, 2009 1:37 pm    Post subject: Reply with quote

CMS IntelliCAD 6.6 HAS PDF EXPORT OPTION
Back to top
View user's profile Send private message
timg
Newbie


Joined: 13 Mar 2005
Posts: 7
Location: San Jose, CA, USA

PostPosted: Wed Oct 21, 2009 3:08 pm    Post subject: PDF Export Reply with quote

Thanks for both replies:
Admin - The EXPORT PDF function is not available via LISP. EXPORT C:\\MyDwg.pdf produces a DWG file, please see above.

CAD_B - I had been using Print and GhostScript to create a PDF, however v6.6 seems to have changed how Print sizes are stored and it now will not remember what I have set - This probably needs to be a new thread.
Back to top
View user's profile Send private message Send e-mail
JCAMPOS
Valued Contributor


Joined: 24 Oct 2008
Posts: 26

PostPosted: Thu Oct 22, 2009 4:05 am    Post subject: Reply with quote

timg,

CMS IntelliCAD 6.6 will remember the print configurations (Print Area, Print Scale, Print Style Table, Print Offset, etc.) if "Save Changes to Layout" is checked for Current Layout (Print dialog).

To use an external application via LISP call the function startapp with its arguments. For instance, (startapp "notepad" "C:\\TEMP\\SomeText.txt").

Thank you,
JCAMPOS
Back to top
View user's profile Send private message
timg
Newbie


Joined: 13 Mar 2005
Posts: 7
Location: San Jose, CA, USA

PostPosted: Thu Oct 22, 2009 11:44 am    Post subject: Reply with quote

Thanks for the reply JCAMPOS, I think I didn't express my problem very well. I have been able to save the general layout, it is the print Setup that is giving me problems.

I use Ghostscript with a port re-direct to create PDF files (PDF export doesn't seem to cope well with viewports the way I am using them) Anyway, when I use this "Printer" in other programs, no problem, but in IntelliCAD in keeps defaulting to 11x17 paper size. How can I set the correct paper size? I usually set it at Legal and that works fine for me.

These print-outs are automatically generate via LISP, I don't want to have to keep an eye on it and change the settings every time.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    CMS IntelliCAD Forum Index -> AutoLisp/SDS All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group