Object mode in NLF format - 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)

To allow users to import objects with the same name through NLF, the Loader supports a keyword called ObjectMode that has two values in a NLF package: AllowDuplicates or DoNotAllowDuplicates. DoNotAllowDuplicates is the default if the keyword is not specified.

This allows objects such as nozzles and files to be created with the same name as objects already in the system.

For example, if you have a CURRENT and WORKING version of a document named SPE-121-XC-2205M and a file attached to the Current version named 77-D-G-006.txt, you can run the following script in NLF to create a duplicate file on both versions by setting the value of the ObjectMode keyword to AllowDuplicates:

.BeginContainer

.UploadInstruction

..RefClass|SPFDesignFile

..RefName|77-D-G-006.txt

..RemoveLocalFileInd|False

.SPFDesignFile

..Name|77-D-G-006.txt

..SPFDesignDocVersion|SPE-121-XC-2205M|SPFFileComposition_12

..SPFLocalDirectory|C:\K_Drive\Data\PID

..SPFLocalFileName|77-D-G-006.txt

..SPFVault|SPF40Vault|SPFFileVault_12

..SPFEditInd|True

..SPFViewInd|True

..ObjectMode|AllowDuplicates

.EndContainer