Some questions about layouts

Some questions about layouts

Anonymous
Not applicable
202 Views
1 Reply
Message 1 of 2

Some questions about layouts

Anonymous
Not applicable
I'm writing an application to batch-convert to pdf many dwgs coming from
many different versions of autocad on behalf of a customer. He gave me
60.000 dwgs to convert. This is why i'm writing some code to automate all
the process.

I first plot to a postscript plotter and then I use ghostscript DLL to
translate the postscript code to PDF. The process now works fine except for
some problems not directly related to coding.

Question : some of the drawings to be converted have layouts defined and
others don't. For the defined layouts the plot device name is stored in the
layout itself. Obviously I don't have the original .PC3. I guess that the
paper size stored in the layout is the one belonging to the original .PC3
file. So i have incorrect paper size. I tried to calculate the paper size
using yhe exmin and extmax variables. It seems that such variables, when in
a layout, have the size of the layout window border. This works fine but
sometime it give incorrect results. Is there any other variable/tip/trick to
get the extents of the geometry of a layout ? And will possible to turn off
the plotting of the layout window border from code ?
0 Likes
203 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hi, I'm working on a similar project right now, maybe we can help each other out. I have culled data from drawings and standardized my existing layouts. I could give you code snippets to get papersizes, if you could teach me how to send ps or eps to ghostscript.

I previously(acad2000) had autospool working nice for single pages/layouts, but now i want to have all stitched together and I can't figure out how to drive GS that way.

howie
0 Likes