.NET

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

AutoCAD Plot Engine - Regenerating slow.

174 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: 367
Registered: ‎03-31-2005
Message 2 of 3 (133 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: 76
Registered: ‎11-19-2010
Message 3 of 3 (117 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community