.NET

.NET

Reply
Valued Contributor
StormyC
Posts: 82
Registered: ‎11-19-2010
Message 1 of 3 (287 Views)

AutoCAD Plot Engine - Regenerating slow.

287 Views, 2 Replies
03-24-2014 02:51 PM

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#

 

Valued Mentor
fieldguy
Posts: 382
Registered: ‎03-31-2005
Message 2 of 3 (246 Views)

Re: AutoCAD Plot Engine - Regenerating slow.

03-25-2014 07:09 AM in reply to: StormyC

Did you try background plotting off?  Something like this:

 

acapp.Application.SetSystemVariable("BACKGROUNDPLOT", 0)

Valued Contributor
StormyC
Posts: 82
Registered: ‎11-19-2010
Message 3 of 3 (230 Views)

Re: AutoCAD Plot Engine - Regenerating slow.

03-26-2014 03:20 AM in reply to: fieldguy

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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.