- ;;04/09/04 Bill Zondlo -received from AutoDesk NG
- ;;programming examples to get plotter info
- ;;
- (defun get_plotter_names ()
- (vla-RefreshPlotDeviceInfo (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
- (vlax-safearray->list
- (vlax-variant-value
- (vla-getplotdevicenames
- (vla-get-activelayout
- (vla-get-activedocument
- (vlax-get-acad-object)))))) ;gets list of installed plotters
- )
- ;;04/09/04 Bill Zondlo -received from AutoDesk NG
- ;;programming examples to get plotter info
- ;;
- (defun get_paper_sizes ()
- (vla-RefreshPlotDeviceInfo (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
- (vlax-safearray->list
- (vlax-variant-value
- (vla-getCanonicalMediaNames
- (vla-get-activelayout
- (vla-get-activedocument
- (vlax-get-acad-object)))))) ;gets all media names
- )
|