Ive used the code in the post http://through-the-interface.typepad.com/through_the_interface/2007/09/driving-a-basic.html
The only differences are
I am using a userform with a button click to start the plot so im using command.session and command.modal flags.
I plot to .pdf using the DWG to PDF.pc3
I use a stored ObjectID for the layout, get the database, then the document to get all the values for the plot.
It works, and when the code reaches
pe.BeginGenerateGraphics(null);
The plot starts but seems to freeze or be very slow at "Status:Regenerating Sheet", it seems to grind at getting the effective plot areas for the viewports - 9 in total.
Its really fast using the plot command winthin AutoCAD... any help would be appreciated.
Win7, AutoCAD 2014, VS2010, C#
Did you try background plotting off? Something like this:
acapp.Application.SetSystemVariable("BACKGROUNDPLOT", 0)
That variable is in use.
I've tested the DLL with AutoCAD2013 on a Win XP 32bit, xeon 2.33mhz using a nvidia FX4500 graphics card and its faster.
The slow machine (Win7 64bit i7 2.66(OC to 3.4mhz)) isn't a workstation so the graphics card is an HD5970 and not a workstation type. Im hoping that's the reason for the difference and not because its 64bit.
Thanks for the reply though.