Okay,
I think I've made some progress.
I've set doc to the active document and set the plotter configuration to the printer I want to print to.
I still cannot figure out where I access plotting.
Can someone tell me if I have the right resources to plot?
And if so, what part of the model do I access it from?
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Interop.Common;
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.PlottingServices;
#endregion
namespace PlotLayer2PdfFile
{
///
/// Summary description for Class1.
///
public class PDF2FileName
{
[CommandMethod("PlotPDF")]
public void PDF2File()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Autodesk.AutoCAD.PlottingServices.PlotConfigManager.SetCurrentConfig("CutePDF Writer");
//CommandLinePrompts.Message(doc.ToString());
}
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
//Application.Run(new PDF2FileName());
}
}
}
TIA
Bill