Need help with odd plotting problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created an addin to batch create pdf files from AutoCAD Plant3D isometric drawings. The addin will create a pdf file of the entire drawing using the plot type of PlotType.Extents and then it will create a pdf of a part of the drawing using the plot type of PlotType.Window. The addin works without any issues. However, occasionally a blank pdf file is created when using the plot type, PlotType.Window. When I investigated what was going on, I have determined that something is wrong internally with the drawing file but I have no idea how fix the file or program around the anomaly.
I have attached a copy of a drawing with this behavior as well as two pdf files, PDF File Created Using Extents.pdf and PDF File Created Using Window.pdf, to illustrate what I am seeing. One pdf file was created using PlotType.Extents. The other was created using PlotType.Window but the window corners specified are DocumentDatabase.Extmin and DocumentDatabase.Extmax. Both were created using the plot scale, StdScaleType.ScaleToFit. The pdf files should be identical but they are not. The pdf file created using PlotType.Window only contains a portion of the drawing. The drawing being printed is an ANSI C size drawing which is 22"x17". The coordinates returned by DocumentDatabase.Extmin are pretty close to 0,0 and the coordinates returned by DocumentDatabase.Extmax are pretty close to 22,17.
Does anyone have any idea what trick I can pull to make this behavior go away?
Thanks,
Darren Haverstick
Paul Mueller Company