PDF

Inventor and InventorServer

When opening the following 2D drawing formats in ../../../../../_images/inventor.png Inventor or ../../../../../_images/inventorserver.png InventorServer, .pdf files can be created for them (via the TranslatorAddin):

  • Inventor IDW

  • Inventor DWG

  • AutoCAD DWG

The used “Tranlsator: PDF - Addin” also supports generating pdf files out of 3D documents but without any settings:

  • Inventor IAM

  • Inventor IPT

  • Inventor IPN

Configuration

To enable multisheet- or singlesheet PDF generation, the Publish_All_Sheets flag can be turned on or off.
Additionally you have to change the value of Sheet_Range to 14082, since this is the value for printing all Sheets, instead of the current sheet.

As Print range you can specify if the current sheet, all sheets or a range of sheets should be exported. You have to set the Sheet_Range setting to the respective value.

Value

Description

14082

Print all Sheets of the Drawing.

14081

Print the current Sheet in the Drawing.

14083

A sheet range allows to export only the sheets specified in a specifc range.
Specify the starting sheet page via Custom_Begin_Sheet and the end page via Custom_End_Sheet

The Publish_Mode defines what of your document will be exported to the PDF. Per default it is set to print your selected data.

Value

Description

62721

Only the current view and the state of the document will be published

62722

The full context of the current document will be published

62723

Only the selected data will be published

How the various ini-settings relate to the Inventor user interface:

../../../../../_images/pj_config_inv_pdf.png
Sample configuration for Drawings - PDF_2D.ini
[EXPORT SELECT OPTIONS]
Publish_All_Sheets=0
Sheet_Range=14082
Publish_3D_Models=0
Launch_Viewer=0
Password_Protect=0
Password=
Publish_Mode=62723
Enable_Large_Assembly_Mode=0
Enable_Measure=1
Enable_Printing=1
Enable_Markups=1
Enable_Markup_Edits=1
Sheets=Sheet:1 True
Include_Sheet_Tables=0
Sheet_Metal_Flat_Pattern=0
Sheet_Metal_Style_Information=0
Sheet_Metal_Part=1
Weldment_Preparation=0
Weldment_Symbol=0
BOM_Structured=0
BOM_Parts_Only=0
Animations=0
Instructions=0
iAssembly_All_Members=0
iAssembly_3D_Models=0
iPart_All_Members=0
iPart_3D_Models=0
Publish_Component_Props=1
Publish_Mass_Props=1
Include_Empty_Properties=0
Publish_Screenshot=0
Screenshot_DPI=1
Facet_Quality=69379
Force_Facet_Recompute=0
Facet_Recompute_Tolerance=0
Override_Sheet_Color=0
Sheet_Color=1
Custom_Begin_Sheet=1
Custom_End_Sheet=1
All_Color_AS_Black=0
Remove_Line_Weights=0
Vector_Resolution=4800
TranscriptAPICall=0

DWG TrueView

DWG files (AutoCAD and Inventor) can be opened in ../../../../../_images/dwg_trueview.png DWG TrueView and converted to .pdf (or .dwf, .dwfx).

Configuration

DWG TrueView creates a “.dsd” file that contains the export settings that allow to manipulate the result of the export (unlike Inventor-exports there are no “.ini” files).

These settings are read from the page settings of the dwg file itself or from another specified dwg file.
Our sample jobs use the installed powerJobs\Module\Export\PDF.dwg by default.

Here’s how the Export-Document cmdlet can be used to accomplish this:

  • When no configuration file is specified, the default page setup of the source drawing itself will be used.

  • A configuration file can be specified in the -Options parameter. Files of type .dwg, .dws, .dwt or .dxf can be provided.
    When doing so, DWG TrueView will look for a page setup named “AutoloaderModelSetup” for model space configuration and “AutoloaderLayoutSetup” for layout space configuration.

Examples:

1
2
3
4
5
6
7
Open-Document -Application 'DWG TrueView' -LocalFile 'C:\Vault\Tablet.dwg'

# Using the default Page Setup of the source drawing Tablet.dwg:
Export-Document -format PDF -To 'C:\Vault\Tablet_1.pdf'

# Usign the Page Setup of the specified drawing PDF.dwg:
Export-Document -format PDF -To 'C:\Vault\Tablet_2.pdf' -Options "$($env:POWERJOBS_MODULESDIR)Export\PDF.dwg"

The settings in the automatically generated DSD file can be further manipulated with additional -Options or with the -OnExport script block.

For example, to enable multisheet- or singlesheet PDF generation, the Type setting can used:

1
Export-Document -format PDF -To C:\Temp\Test.pdf -Options @{'Type'='6'}

These are all possible Type settings for PDF exports:

Value

Description

2

PlotterPageSetup

The plotter named in Page Settings is used for the export

5

SingleSheet(s)

Separate pdf files are created for the model and for each layout of the drawing

6

MultiSheet (default)

A single pdf file is created, with multiple pages for model and layouts

More information on how to customize the PDF creation can be found on our knowledge base.

Sample dsd file - Sample.dsd
[DWF6Version]
Ver=1
[DWF6MinorVersion]
MinorVer=1
[DWF6Sheet:migration-Model]
DWG=C:\Temp\migration.dwg\migration.dwg
Layout=Model
Setup=
OriginalSheetPath=C:\Temp\migration.dwg\migration.dwg
Has Plot Port=0
Has3DDWF=0
[DWF6Sheet:migration-Layout1]
DWG=C:\Temp\migration.dwg\migration.dwg
Layout=Layout1
Setup=
OriginalSheetPath=C:\Temp\migration.dwg\migration.dwg
Has Plot Port=0
Has3DDWF=0
[Target]
Type=6
DWF=C:\Temp\migration.dwg\migration.dwg.pdf
OUT=C:\Temp\migration.dwg
PWD=
[MRU Local]
MRU=0
[MRU Sheet List]
MRU=0
[PdfOptions]
IncludeHyperlinks=TRUE
CreateBookmarks=TRUE
CaptureFontsInDrawing=TRUE
ConvertTextToGeometry=FALSE
VectorResolution=1200
RasterResolution=400
[AutoCAD Block Data]
IncludeBlockInfo=0
BlockTmplFilePath=
[SheetSet Properties]
IsSheetSet=FALSE
IsHomogeneous=FALSE
SheetSet Name=
NoOfCopies=1
PlotStampOn=FALSE
ViewFile=FALSE
JobID=0
SelectionSetName=
AcadProfile=<<Unnamed Profile>>
CategoryName=
LogFilePath=
IncludeLayer=FALSE
LineMerge=FALSE
CurrentPrecision=
PromptForDwfName=FALSE
PwdProtectPublishedDWF=FALSE
PromptForPwd=FALSE
RepublishingMarkups=FALSE
PublishSheetSetMetadata=FALSE
PublishSheetMetadata=FALSE
3DDWFOptions=0 1
[PublishOptions]
InitLayouts=TRUE