public void PIK_PlotToPdf() { CommandStart.Start(doc => { using (doc.LockDocument()) PlotDirToPdf.PromptAndPlot(doc); }); }