Plot API questions.

Plot API questions.

William_Gonzales_Sanchez
Participant Participant
654 Views
1 Reply
Message 1 of 2

Plot API questions.

William_Gonzales_Sanchez
Participant
Participant
Hello all,
I have a program based on the AsdkPlotAPI example. It works fine but I would like to improve these 2 points:

1) It creates another AutoCAD instance to perform the plot job. How to avoid it? How to use the current AutoCAD instance?
2) It is slow compared with the PLOT command.

I suposed this ARX Plot API is the same used by the PLOT command. I am using AutoCAD 2008.

Thanks in advance.
William GS
0 Likes
655 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

I know it's an old topic, but I just dealt with it myself and I hope it can be of use to anyone, as I didn't find any mention of it in the documentation.

 

I started replacing the old hackish COM-based plot code with the new Plot API, and found out the same using code based on the sample - plotting a simple layout to PDF takes about 25 seconds on my laptop, during which time a second acad.exe instance is launched, and for most of the time it seems to be doing nothing.

 

The cause seems to be the BACKGROUNDPLOT system variable, as soon as I disabled background plotting, I had the PDF file done in a about a second, wtihout changin anything in the code.