Print Page | Close Window

Script For Printing

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=11820
Printed Date: 31.May.2026 at 20:24


Topic: Script For Printing
Posted By: DennisK2579
Subject: Script For Printing
Date Posted: 20.May.2016 at 15:42

I know how to create a script for DWG to PDF. With our drawings sometimes they are done in layout and sometimes in model. Is there a script that could be written if you don't know which one but it will print once it checks which one?

Thanks,
dk



Replies:
Posted By: John Connor
Date Posted: 20.May.2016 at 16:07
Off the top of my head I can't think of a normal command that would check if a layout exists.  Sounds like a task better suited to a custom lisp routine.  You might try asking over at The Swamp or CADTutor.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: DennisK2579
Date Posted: 20.May.2016 at 16:12
Not sure trying to figure out how to do this.
What we have is a directory full of drawings some are model some are layout.
Right now I can open and run a script depending which space the drawing is.
What we are looking for is having a script take that directory and open each drawing and depending what space it is creates the pdf for us. Instead of opening each drawing and having two scripts.


Posted By: John Connor
Date Posted: 20.May.2016 at 16:25
And what if the drawing was last saved in the "wrong" space?


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: DennisK2579
Date Posted: 20.May.2016 at 16:27
The directory we look in is final drawings.


Posted By: John Connor
Date Posted: 20.May.2016 at 18:11
So what?  Someone could still open, edit and then save a drawing in model space when it should have been saved in a paper space layout or vice-versa. You don't have any real control over how a drawing is saved although you may think you do.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>




Print Page | Close Window