I was just curious...
Code:
(defun PlotDevices (/ #List)
(vlax-for x (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
(vla-refreshplotdeviceinfo x)
(setq #List (cons (cons (vla-get-name x) (vla-get-configname x)) #List))
) ;_ vlax-for
(reverse #List)
) ;_ defun
Code:
Command: (benchmark '( (getplotdevices) (plotdevices) ))
Elapsed milliseconds / relative speed for 64 iteration(s):
(PLOTDEVICES)........1203 / 1.17 <fastest>
(GETPLOTDEVICES).....1407 / 1.00 <slowest>
Command: (benchmark '( (getplotdevices) (plotdevices) ))
Elapsed milliseconds / relative speed for 64 iteration(s):
(GETPLOTDEVICES).....1218 / 1.00 <fastest>
(PLOTDEVICES)........1219 / 1.00 <slowest>
Command: (benchmark '( (getplotdevices) (plotdevices) ))
Elapsed milliseconds / relative speed for 64 iteration(s):
(PLOTDEVICES)........1219 / 1.01 <fastest>
(GETPLOTDEVICES).....1234 / 1.00 <slowest>
Command: (benchmark '( (getplotdevices) (plotdevices) ))
Elapsed milliseconds / relative speed for 64 iteration(s):
(GETPLOTDEVICES).....1219 / 1.00 <fastest>
(PLOTDEVICES)........1219 / 1.00 <slowest>
Command: (benchmark '( (getplotdevices) (plotdevices) ))
Elapsed milliseconds / relative speed for 64 iteration(s):
(PLOTDEVICES)........1218 / 1.00 <fastest>
(GETPLOTDEVICES).....1219 / 1.00 <slowest>
Bookmarks