AUTOLISP TO SET DEFAULT PRINTER FOR ALL DRAWINGS IN A PROJECT

AUTOLISP TO SET DEFAULT PRINTER FOR ALL DRAWINGS IN A PROJECT

Anonymous
Not applicable
1,462 Views
5 Replies
Message 1 of 6

AUTOLISP TO SET DEFAULT PRINTER FOR ALL DRAWINGS IN A PROJECT

Anonymous
Not applicable

I believe this can be done.
Does anyone have an AUTOLISP file to set the Default Printer for all drawings in a Project?

 

Could I get a link to the AUTOLISP Commands and Rules so I can learn what your proposed command is doing and so I can learn to build some more going forward. Any other ideas or suggestions for learning AUTOLISP for use with AutoCAD Electrical 2019 would be greatly appreciated.

 

Thank You all for sharing your knowledge,

Mike

0 Likes
1,463 Views
5 Replies
Replies (5)
Message 2 of 6

dlanorh
Advisor
Advisor

Look HERE 

I am not one of the robots you're looking for

0 Likes
Message 3 of 6

Sea-Haven
Mentor
Mentor

MGvandeyhey

 

We had multiple printers even to be on different floors so a simple method was to use a custom lisp that was called from a menu so you just pick the correct printer menu option. Including pdf's. We did though use fixed size title blocks. This avoided setting default printer.

 

The lisp even determined which default printer to use via the users name, taking into account multiple floor building. So one version of code rather than floor by floor.

 

Happy to provide more info. 

0 Likes
Message 4 of 6

Anonymous
Not applicable

Sea Haven,


Sounds like EXACTLY what we need! Please tell me more.


Your scenario is more complicated than ours, BUT ours will change over time, everybody's will and it sounds like your lisp routine can add & subtract Users, Floors, Printers and PAGESETUPS which is very cool.
Hopefully these things can be modified by the users after starting the APP.
Is that a custom app built by your company or did you buy it from a 3rd party app developer?
If your company created the app, consider putting it on the Autodesk APP Store, it sounds very good.

If there is one available, no reason for us to reinvent the wheel. It is a generic and universal issue.

My original goal was to find a simple AutoLISP APP that could copy a PAGESETUP from a seed drawing (project) and apply it to the whole project I am working in. It would be really nice to be able to find a solution that will cover all present and future scenerios.

Now I will share more about our scenario with respect to the ideas you presented.

We have many designers and engineers located in 2 different areas served by local printers in those areas and of course people will want different size options in those areas.

USERS

Many

PRINTERS

East Printer.PC3

West Printer.PC3

PAGE SETUP LAYOUTS
A SIZE East Printer
B SIZE East Printer
A SIZE West Printer

B SIZE West Printer

 

If the App pre-selects the printer selection by user it has to be able to be overridden because what if "their assigned" local printer could be down. Selecting the PRINTER and the desired PAGESETUP are the most important.

 

Thank You for provoking more thought on this subject. If you can help me and this forum please continue.

 

If anyone else knows the where an AutoLISP Application like this is shared or sold it would be greatly appreciated.

Please share your ideas for this solution.

0 Likes
Message 5 of 6

Anonymous
Not applicable

ADDITIONAL INFORMATION

On previous message I also showed
SIZE A East Printer

SIZE B West Printer

SIZE A East Printer

SIZE B West Printer

 

I guess I was originally thinking that this was the simplest way to cover the whole new PAGESETUP to include all printer and SIZE combinations? I like this idea but maybe I am missing something.

 

So I understand my previous post has a bit of a conflict.
If we are selecting our PRINTER.PC3 separately then all we would need is the balance of the PAGESETUP properties.

SIZE A

SIZE B


We can get all the combinations either way.

A solution that covers any scenario would be greatly appreciated.

 

0 Likes
Message 6 of 6

Sea-Haven
Mentor
Mentor

You can do it in a few different ways the easiest is to just use a menu that has the list of your printers by say name. Or for each printer and size as an item.

 

screenshot71.png

The code for the actual printing part is very simple and is posted many times. It really comes down to how you want to set it up. Pick printer then size or just pick and print. Forgot to mention you can do stuff like plot range of layouts.

 

Also check out the plot routines by Maratovich at Cadtutor.

; for an A3 but A1 title
(COMMAND "-PLOT" "Y" "" "\\\\PROD\\1your printer" "A3 (297 x 420 mm)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" 
   "1=2" "C" "y" "DesignlaserCOLOUR.ctb" "Y" "n" "n" "n" "N" "N" "y")

 

 

0 Likes