Community
Good morning, I am trying to list the printers that are installed on my PC and tabem the plot style table (pen assignments), each in a popup_list, I have done the dialog box, just missing the lisp someone could give me an idea of how do.
thank you.
Solved! Go to Solution.
Solved by SENL1362. Go to Solution.
as a .NET solution this might help you:
using Autodesk.AutoCAD.PlottingServices; ...
[CommandMethod("LPC3")] public void ListPC3() { Document doc = Application.DocumentManager.MdiActiveDocument; Database db = doc.Database; Editor ed = doc.Editor; PlotConfigManager.RefreshList(RefreshCode.All); PlotSettingsValidator plotSettingsValidator = PlotSettingsValidator.Current; try { var PlotDeviceList = plotSettingsValidator.GetPlotDeviceList().Cast<string>().ToList(); PlotDeviceList.ForEach(p => ed.WriteMessage("\n\t{0}", p));
...
var plotStyleList = plotSettingsValidator.GetPlotStyleSheetList()
.Cast<string>()
.Select(ctb => ctb.EndsWith(".ctb"))
.ToList();
...