GetPublishCount Method - Integration - Update 44 - Help - Hexagon

SmartPlant Integration COM Help

Language
English
Product
Integration
Search by Category
Help
SmartPlant Foundation / SDx Version
10
Smart P&ID Version
9 (2019)
Smart Engineering Manager Version
10 (2019)

Depending on the user selection for publish type (Full or Changes Only, also called Delta) in the Publish dialog box, the tool determines the number of times the PublishDocument needs to be called for a document. The TEF Services Manager calls the method IEFAdapter10.PublishCount to get the count of publishes for a document.

The tool adapter implements the GetPublishCount method to do the following:

  1. Determines the type of publish (Full or Changes Only) by reading the input argument.

  2. Determine the number of publishes for the document. This number depends on the size of data that tool will publish in each publish. This number is obtained by dividing the total number of objects to be published by the number of objects published in each PublishDocument call.

  3. Returns the number obtained from step 2.

Arguments

Name

Data type

Input/output

Description

oDocumentIObj

IObject

Input

IObject interface on the document object.

p_eptPublishType

ePublishTypes

Input

ePublishTypes.Full indicates that this is a full publish. ePublishTypes.Delta indicates that this is a Delta Publish update publish.