Getting plotter names in a pull down combo box.

Getting plotter names in a pull down combo box.

muckmailer
Collaborator Collaborator
368 Views
1 Reply
Message 1 of 2

Getting plotter names in a pull down combo box.

muckmailer
Collaborator
Collaborator
Getting plotter names in a pull down combo box.
Posted: Jan 28, 2010 12:27 PM Reply

Using AutoCad 2010, VBA.

Is it possable to get the plot driver names and put them in a combo box for later
programming uses.

I am trying the following code but I am not having any luck.

Private Sub CommandButton12_Click()
Dim P As Object
Dim p1 As Object
Dim PL As String
Dim x As Integer
Set P = ThisDrawing.PlotConfigurations
'Set p1 =
PL = P.ConfigName
ComboBox1.Value = "Plotter Name"
For Each PL In P.ConfigName
'ComboBox1.AddItem (P.Name)
MsgBox P.Name
Next
End Sub

I am also interested in getting available pin files in a combo box but
I need to figure out how to do it with plotter names first.



Thank you,
0 Likes
369 Views
1 Reply
Reply (1)
Message 2 of 2

Mario-Villada
Advocate
Advocate
Try This:
{code}
Private Sub CommandButton1_Click()
Dim L As Variant
L = ThisDrawing.ActiveLayout.GetPlotDeviceNames
ComboBox1.List = L
End Sub
{code}
0 Likes