Error
The document reservation feature was introduced in SmartPlant Foundation 4.0. To support this feature, the ISPFDocumentMaster interface was made optional for SmartPlant Foundation 4.0 documents. Therefore, this error occurs when creating a SmartPlant Foundation document using the custom document form or the NLF load file.
Solution 1: Create a SmartPlant Foundation document using the NLF load file
Add the ISPFDocumentMaster interface to the NLF instructions.
The following is an example of an NLF file with instructions to create an engineering document:
.SPXEngineeringDocMaster
..Name|EngDocMaster-Basic-001
..Description|Engineering Document from NLF
..SPXDocumentClass|MD|SPFPrimaryClassification_21
..SPFDocState|RESERVED
..SPFRevisionScheme|RevA01|SPFDocRevisionRevisionScheme_12
..SPFMajorRevision|A
..SPFMinorRevision|01
..SPFRevState|WORKING
..SPFProject|0000|DocumentProject_12
..SPXOriginator|AB|DocumentOriginator_12
..SPXDiscipline|A|DocumentDiscipline_12
..ISPFDocumentMaster
For more information, see NLF format and Loader in the SmartPlant Foundation Desktop Client Help.
Solution 2: Create a SmartPlant Foundation document using the custom document form
-
Add the SPFDisplayItemType interface to the form section.
For example:
<SPFDisplayItem>
<IObject UID="DI_ISPFDocumentMaster" Name="ISPFDocumentMaster" Description="DI for ISPFDocumentMaster" ContainerID="" />
<ISPFAdminItem />
<ISPFGUIDisplay SPFGUIDisplayAs="Document Master" />
<ISPFSubscribableItem />
<ISPFDisplayItem SPFSizeOfField="35" SPFDisplayItemType="e1InterfaceDef" SPFSizeOfLabel="25" />
</SPFDisplayItem>
-
Select the [ISPFGUIDisplay.SPFGUIDisplayAs] option in the document creation form.