AutoCAD's VBA receives the following results when outputting files and plotters:
boolir;
GcadDocument AOBJ;
if()// For file output
{
ir=AOBJ.Plot.PlotToFile(@"C:\Temp\test.PLT");
}
For else//PLOTER output:
{
ir = AOBJ.Plot.PlotToDevice();
}
I changed the above part to .NET(C#) based on the contents of the following URL.
Is there any way to receive successful or unsuccessful results?
.NET - Print your current layout
.net ijcad
Print-related events are available in the PlotReactorManager class.
You can get the final print status, so you can check the status of whether the output was successful or whether the output was cancelled.
© 2024 OneMinuteCode. All rights reserved.