LoadCompSchemaForAdapter As Long - HxGN SDx - Update 36 - Customization & Programming - Hexagon

HxGN SPClient Programming Guide

Language
English
Product
HxGN SDx
Search by Category
Customization & Programming

This method gives tools access to a component schema in memory for its operations. The tool calls this method when it requires a component schema loaded and made available to the tool adapter. For integration with SDx, the tool should pass the common schema UID "Common" to LoadCompSchemaForAdapter.

The tool’s SmartPlant Adapter must implement the interface ISPAdapter6 and its write-only property CompSchemaIContainer to get access to the component schema. SmartPlant Client sets the property to the component schema object after the tool calls LoadCompSchemaForAdapter. (For more information, see ISPAdapter6 Interface.)

Arguments

Name

Data type

Input/output

Description

sCompSchemaUID

String

Input

The UID of the Component Schema to be loaded, "Common" when integrated with SDx.

Return Value

  • 0 if method is successful.

  • A negative number if method fails (check the LastErrorMessage property for error message).

Comments

Tools must implement ISPAdapter6 interface before calling this method.