Plotters

Plotters

Anonymous
Not applicable
342 Views
2 Replies
Message 1 of 3

Plotters

Anonymous
Not applicable
Bonjour à tous,

If i use the _-PLOT command, i have this message (French AutoCAD)

--------------------------------------------------------------------------
Entrez un nom de périphérique de sortie ou [?] : ?
Périphériques de traçage disponibles.
"HP LaserJet III"
"hp deskjet 990c series"
"CAPTURE FAX BVRP"
"Acrobat PDFWriter"
"DWF Classic.pc3"
"DWF ePlot.pc3"
"DesignJet 990cxi.pc3"
"Traceur ATC.pc3"
"LaserJet 4V.pc3"
"hp deskjet 990c series.pc3"
"Hp_pcl.pc3"
Entrez un nom de périphérique de sortie ou [?] : *Annuler*
--------------------------------------------------------------------------

How can i find all these plotter's names with VBA or LISP

Merci

Bernard
ATC
45700 Villemandeur
France
0 Likes
343 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Bernard,

I believe this is what you're looking for?

Joe

Public Sub ListPrinters(Space As Integer)
Dim plotDevices As Variant
Dim intI As Integer

If Space Then
With ThisDrawing.ModelSpace.Layout
.RefreshPlotDeviceInfo
plotDevices = .GetPlotDeviceNames()

For intI = LBound(plotDevices) To UBound(plotDevices)
Debug.Print plotDevices(intI)
Next
End With

Else
With ThisDrawing.PaperSpace.Layout
.RefreshPlotDeviceInfo
plotDevices = .GetPlotDeviceNames()

For intI = LBound(plotDevices) To UBound(plotDevices)
Debug.Print plotDevices(intI)
Next
End With
End If
End Sub

Public Sub Test()
ListPrinters acPaperSpace
End Sub


"Bernard Flavignard" wrote in message
news:[email protected]...
> Bonjour à tous,
>
> If i use the _-PLOT command, i have this message (French AutoCAD)
>
> --------------------------------------------------------------------------
> Entrez un nom de périphérique de sortie ou [?] : ?
> Périphériques de traçage disponibles.
> "HP LaserJet III"
> "hp deskjet 990c series"
> "CAPTURE FAX BVRP"
> "Acrobat PDFWriter"
> "DWF Classic.pc3"
> "DWF ePlot.pc3"
> "DesignJet 990cxi.pc3"
> "Traceur ATC.pc3"
> "LaserJet 4V.pc3"
> "hp deskjet 990c series.pc3"
> "Hp_pcl.pc3"
> Entrez un nom de périphérique de sortie ou [?] :
*Annuler*
> --------------------------------------------------------------------------
>
> How can i find all these plotter's names with VBA or LISP
>
> Merci
>
> Bernard
> ATC
> 45700 Villemandeur
> France
>
>
>
>
0 Likes
Message 3 of 3

Anonymous
Not applicable
Joe

Thank you, it is exactly what i want

Bernard
0 Likes