PDF generation with custom .INI settings - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

  • Custom .INI file settings are supported for Hexagon file formats only. For non-Hexagon file formats, custom .INI file settings are not supported. The following instructions can only be used for Hexagon file formats.

  • For a complete list of available .INI parameters, refer to INI Parameters.

To generate a PDF with custom settings, you can specify the .INI file that contains the custom settings using the -i switch in the command line of the Alternate rendition application text box. Values specified in the INI file will override other alternate rendition settings in SmartPlant Foundation.

For example, to print a watermark diagonally on each page of the PDF, you can add the following to an .INI file (named CustomSettingsFile1.ini in this example):

[SPMParameters]

PrtWaterMarkText=TEST WATERMARK3

PrtWaterMarkPosition=2

PrtWaterMarkFontName=Arial

PrtWaterMarkFontSize=48

To include the custom settings for PDF generation, include the .INI file containing these settings in the command line as shown:

dmredl –p obj.Name $OUTPUTDIR –i "C:\CustomSettingsFile1.ini"

More than one .INI file can be included in the Alternate rendition path. The following is an example for specifying multiple .INI files:

dmredl –p obj.Name $OUTPUTDIR –i "C:\CustomSettingsFile1.INI" –i "D:\CustomSettingsFile2.INI" –i "E:\CustomSettingsFile3.INI"

All the settings in the .INI files supplied in the Alternate rendition path are concatenated on execution. If two or more .INI files contain the same settings, the settings in last .INI file listed in the Alternate rendition path will be take the precedence.

For example, if the file CustomSettingsFile1.INI contains the setting PrintRange=0 (current view), but in the file CustomSettingsFile3.INI the setting value is 2(All), the PDF will be generated with PrintRange=2(All), which is taken from the CustomSettingsFile3.INI file.