Message 1 of 2
Some questions about layouts

Not applicable
03-07-2006
02:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 ?
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 ?