The Create Sheet Images Generation Task will save images of multiple drawing sheets.
|(Name)||The unique name for this task.|
|Images Extension||The extension of the images (for example, .png).|
|Sheet Names||Pipe (|) delimited list of sheet names to export. Leave empty to export the current sheet or use an asterisk (*) to export all sheets.|
|Images Folder||The folder to save the images to (leave blank to use the folder the generated drawing is saved to).|
|Images Name||The file name of the images (leaving this blank will use the drawings name). Note that the sheet name will always be automatically added as a suffix.|
|Overwrite||TRUE to overwrite the files if they exist, FALSE to keep any existing files.|
|Specification Id||The Id of the specification to associate the images with.|
|Zoom To Fit||TRUE to zoom to fit before creating the images.|
When this Generation task is added, some properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
|Property Name||Example Rule||Example Result||Meaning|
|Images Extension||.png||.png||Will create .png image files of the sheets.
Valid image extensions for drawings include:
|Sheet Names||*||*||Will create image files of all sheets in the drawing.|
|Sheet Names||sheet1|sheet3||sheet1|sheet3||Will create image files of sheet1 and sheet3 only.|
|Images Folder||Will create the image files in the same folder as the drawing.|
|Images Folder||"C:\DrawingImages"||C:\DrawingImages||Will create the image files in the C:\DrawingImages folder.
The task will create the folder if it does not exist.
|Images Name||Will create images with the same name as the drawing, with the sheet name added as a suffix to each.
<Drawing Name> <DWSpecification> - <Sheet Name>.<Image Extension>
|Images Name||"Image"||Image||Will create images with the name "Image", with the sheet name added as a suffix to each.
Image - <Sheet Name>.<Image Extension>
|Overwrite||False||False||Will keep existing files if they already exist in the Images Folder.|
|Specification Id||Will associate all created images with the current specification.|
|Specification Id||22||22||Will associate all created images with the specification with the Id 22.
This is particularly useful if you have a separate project that batch creates drawing images that require associating to a specification.
|Zoom To Fit||True||True||Will perform a zoom to fit on each sheet prior to creating the images.|
Messages beginning with "swFileSaveWarning_" do not cause the File, Save operation to fail. These are warnings that could affect the accuracy of the file being outputted.
Warning status are displayed in orange in the report.
Ensure the Reporting Level is set to a minimum of Normal, to allow warnings to be reported.
Messages displayed with the status red in the report are errors that caused the File, Save operation to fail.
In most cases the error message is understandable, however the article SOLIDWORKS API Help - swFileSaveError_e Enumeration may give more insight.