Some tools (Smart Instrumentation, for example) have tool specific publishable document types mapped to the SmartPlant Schema document type hierarchy (Document category, document type and document subtype), defined in the tool meta-data schema defined in the EFSchema.xml. When interfacing with EFCommonUI, the tool needs to know the mapping between a tool publishable document type and the SmartPlant Schema document type hierarchy. This method will return the SmartPlant Schema document type hierarchy found in the tool meta-data schema for a given tool document type.
The tool document type ID is defined by the tools in the tool meta-data schema (in EFSchema.xml) as a property, called ToolDocTypeID on the interface IDocumentType on the class DocumentType.
Tool meta-data (For example, Intools_Meta.xml)
Class – DocumentType
Interface – IDocumentType
Property – ToolDocTypeID
For a given tool document type ID, the method will search through the tool meta-data and will return the SmartPlant Schema document type hierarchy (Document category UID, document type UID and document subtype UID). If a tool document type ID is not found in the tool meta-data schema, Null values are returned for document category UID, document type UID and document subtype UID.
Arguments
Name |
Data type |
Input/output |
Description |
---|---|---|---|
sToolDocTypeID |
String |
Input |
The ID of the tool document type for which the document hierarchy needs to be found. |
sDocCategoryUID |
String |
Output |
The UID of the document category |
sDocTypeUID |
String |
Output |
The UID of the document type |
sDocSubTypeUID |
String |
Output |
The UID of the document subtype |
Return Value
0 if method is successful.
A negative number if method fails. (Check the LastErrorMessage property for error message.)
Comments
None