ProjectWise Document Metadata


In ProjectWise Design Integration, the parent folder that a document exists in can have an Environment assigned to it which defines the Attributes used on each document that exists in that folder. These are displayed for each document when viewing the document's properties in PW Explorer. 

These Attributes (and their parent Environment) are defined in the PW Administrator tool.

Each Environment name is used as a subclass under the iModel's DocumentMetaData schema.  This can currently be access in imodelconsole.bentley.com using 2 simple queries:

First is to select from the DocumentMetaData schema using "Select * from DocumentMetaData.DocumentLink".  This retrieves all documents in the iModel.

The sub-classed environments are listed as "ProjectWiseDynamic.Env" followed by the PW internal environment identifier followed by the Environment name (in this case "MyCompany").

Querying the sub-classed name directly results in all the documents and attribute values for that environment ion the iModel.

When viewed in Design Review the data can be seen when clicking on an element, and viewing it's properties under the Document Link group property:


 

Further information can be found on Bentley's YouTube channel here:

NOTE: Be aware of the data types used in the environment attributes and be careful not to change them if a child document has already been sync'd, as this can cause a data type mismatch error while synchronising.  For example having an attribute data type defined as a string and then changing it to a boolean after it has been synchronised would almost certainly throw Sync errors.  It is better to add a new attribute or change the environment in that situation.