TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Amsterdammed on February 28, 2007, 04:22:26 PM

Title: Printer list
Post by: Amsterdammed on February 28, 2007, 04:22:26 PM
Hello there,

I'm sure there must be a vla-.... function to collect all the printers available (I just don't know it) :-(

Tank's in Advance

Bernd
Title: Re: Printer list
Post by: JohnK on February 28, 2007, 04:51:01 PM
Read this thread.

http://www.theswamp.org/index.php?topic=338
Title: Re: Printer list
Post by: Amsterdammed on March 01, 2007, 01:42:16 AM
Thanks :-)
Title: Re: Printer list
Post by: Patrick_35 on March 01, 2007, 03:06:31 AM
Yes, or you can use

Code: [Select]
(vlax-invoke (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))) 'getplotdevicenames)
@+
Title: Re: Printer list
Post by: CAB on March 01, 2007, 08:53:33 AM
Don't forget to issue this first.
Code: [Select]
(vla-RefreshPlotDeviceInfo  (vla-get-activelayout doc))