GetPublishedDocData 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)

This method works in the context of the AsBuilt plant or a project passed in the Connect call. The SmartPlant Foundation database is queried for document data XML published by the tool, the oDocList container is loaded, and a version object is created in the oDocMeta container for the document. The version object has the revision, version and published date values. The oDocMeta container also has File objects; one for the view file and each reference file.

Signature

GetPublishedDocData (sDocUID as String, oDocData as IContainer, oDocMeta as IContainer, oDocTombstones as IContainer) As Long

Arguments

Name

Data type

Input/output

Description

sDocUID

String (maximum 128 characters)

Input

UID of the document.

oDocData

IContainer

Output

Pointer to the IContainer containing the document data and relationship objects.

oDocMeta

IContainer

Output

Pointer to the IContainer containing document version object and File objects.

oDocTombstones

IContainer

Output

Pointer to the IContainer containing tombstones published in the context of the document.

Return Value

0 if the method is successful.

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