Bricscad Plotting Services Issues

Running into a couple issues with using Bricscad Plotting Services for a printing function.. 

I have wrote a method that prints a Block Reference to the printer. This works fine for a single run. However once the method has printed for the first time the Bool "IsBackgroundPackaging" of PlotEngine becomes set to True and never returns back to False during the current session. If I close Bricscad, re-open and run my custom print method again it will work once and not proceed for a second print due to IsBackgroundPackaging becoming True again. 

Below is a snippet of my code where I use the PlotEngine to print.

                            PlotEngine pe = PlotFactory.CreatePublishEngine();

                            using (pe)
                            {
                                pe.BeginPlot(null, null);
                                pe.BeginDocument(pi, doc.Name, null, 1, true, "C:\\");

                                PlotPageInfo ppi = new PlotPageInfo();
                                pe.BeginPage(ppi, pi, true, null);

                          pe.BeginGenerateGraphics(null);
                                pe.EndGenerateGraphics(null);

                                pe.EndPage(null);
                                pe.EndDocument(null);
                                pe.EndPlot(null);
                            }

Does anybody have any ideas as to why pe.IsBackgroundPackaging remains True after ending the plot, closing the transaction etc?

Also another question, is the PlotProgressDialog class complete? It seems to missing a bunch of vital methods?

Any help will be much appreciated. Thank you. 

Comments

This discussion has been closed.