Plotting slows down after every file

Plotting slows down after every file

ottosson_mathias
Advocate Advocate
284 Views
1 Reply
Message 1 of 2

Plotting slows down after every file

ottosson_mathias
Advocate
Advocate

I'm trying to write a batch plot routine. Yes I'm aware that there are built in batch plot api:s, but I want to write status information to file after each plot before starting next file so I'm using single file plot api:s.

 

If I plot many files I notice a gradual but, over time, exponential decrease in performance. At first it will plot multiple files per minute, decreasing to single file per minute until after 50 files plotted it will crawl to a halt and each file takes 15-20 minutes to plot.

 

I've basically just copied code found in this forum (take any of the multitude of plot examples) and stuck it in a for-loop iterating a list of files and plotting one by one.

 

Anybody recognizes the issue and know why this happens and what to do to mitigate it?

 

Should I restart Autocad after 10 files to keep it happy? Feels like a really naive and slow solution... Plotting 50 files using script does not cause this issue...

 

Thanks!

0 Likes
285 Views
1 Reply
  • plot
Reply (1)
Message 2 of 2

maratovich
Advisor
Advisor

If you are looking for help programming your code, then you should show your code.
If you need a ready-made solution, then write about it, but most likely in another section of the forum.

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes