Materials service - Intergraph Smart Construction - 8 - Customization & Programming - Hexagon PPM

Intergraph Smart Construction API and Programming Reference

Language
English
Product
Intergraph Smart Construction
Search by Category
Customization & Programming
Smart Construction Version
8

By default, the Materials service delivered with Smart Construction communicates with Smart Materials. If you use a different materials system, then you can create your own version of the Materials service to communicate with your materials system. In order to do this, you must implement the IMaterialsService WCF service contract.

<ServiceContract()> _

Public Interface IMaterialsService

Inherits IExternalService

<OperationContract()> _

Function PerformStatusRequest( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal drawingNumbers As List(Of String), _

ByVal requestType As MaterialsRequestType, _

ByVal returnDataContainer As IObjectDictionary) As Boolean

<OperationContract()> _

Function PerformStatusRequest( _

ByVal projectID As String, _

ByVal materialRequest As IMaterialRequest, _

ByVal returnDataContainer As IObjectDictionary) As Boolean

<OperationContract()> _

Function GetLatestStatusRequest( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal requestType As MaterialsRequestType, _

ByVal returnDataContainer As IObjectDictionary) _

As Boolean

<OperationContract()> _

Function SearchLatestStatusRequest( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal requestType As MaterialsRequestType, _

ByVal searchParameters As Dictionary(Of String, String), _

ByVal returnDataContainer As IObjectDictionary) _

As Boolean

<OperationContract()> _

Function UndoStatusRequest( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal requestType As MaterialsRequestType, _

ByVal returnDataContainer As IObjectDictionary) _

As Boolean

<OperationContract()> _

Function GetLatestStatusRequestForFiltering( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal requestType As MaterialsRequestType, _

ByRef results As Xml.XmlDocument) _

As Boolean

<OperationContract()> _

Function SearchLatestStatusRequestForFiltering( _

ByVal projectID As String, _

ByVal statusRequestName As String, _

ByVal requestType As MaterialsRequestType, _

ByVal searchParameters As Dictionary(Of String, String), _

ByRef results As Xml.XmlDocument) _

As Boolean

<OperationContract()> _

Function GetExistingMaterialStatus( _

ByVal projectID As String, _

ByVal materialRequest As IMaterialRequest) _

As MaterialsRequestType

End Interface

In addition to implementing this service contract, you must honor the data formats that Smart Construction expects. These data formats are defined in the SmartPlant Foundation Engineering Framework schema that is delivered with Smart Construction. These data formats are specified with the method details.