Saturday, November 21, 2009
Home   |   Search   |   About AUGI   |   My AUGI   |   Join Now

Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP
 Welcome, Guest. 

Login

Join Now FAQ Members List Calendar Search Today's Posts Mark Forums Read

AutoLISP AutoLISP or Visual LISP, learn both here!

Reply
 
Thread Tools Display Modes
Old 2004-07-12, 09:01 PM   #1
rodmc
Member
 
Join Date: 2004-01
Posts: 3
rodmc is starting their journey
Default Accessing available media sizes

I'm using the following code to generate a list of the available printers on a system. Do you know how I can likewise generate a list of available media sizes for a given printer?


(setq AOBJ (vlax-get-Acad-object) ADOC (vla-get-ActiveDocument AOBJ) ALOB (vla-Get-ActiveLayout ADOC))
(vla-RefreshPlotDeviceInfo ALOB) (setq PNAMS (vla-GetPlotDeviceNames ALOB))
(vl-princ-to-string (setq PLST (vlax-safearray->list (vlax-variant-value PNAMS))))
(if PLST (setq PLST (acad_strlsort PLST)))
rodmc is offline   Reply With Quote
Old 2004-07-13, 09:00 PM   #2
rodmc
Member
 
Join Date: 2004-01
Posts: 3
rodmc is starting their journey
Default RE: Accessing available media sizes

Never mind - I've got it! Thanks.

(vla-RefreshPlotDeviceInfo ALOB)
(foreach MNE
(vlax-safearray->list
(vlax-variant-value
(vla-GetCanonicalMediaNames
(setq MLO (vla-item (vla-get-layouts ADOC) "Model")))))
(setq MNL (cons (vla-GetLocaleMediaName MLO MNE) MNL))) (reverse MNL)
rodmc is offline   Reply With Quote
Reply


Go Back   AUGI Forums > AUGI Technical (English) > Programming > AutoLISP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Extra Large File Sizes ajamil CAD Management - General 7 2004-07-02 10:11 PM
How do you change the sizes on a PRECAST- INVERTED TEE? HouseInnovator Revit Architecture - General 7 2004-03-15 09:22 PM


All times are GMT +1. The time now is 03:30 PM.