Modifying Objects and Relationships from Within a Semantic - Integration - Update 44 - Customization & Programming - Hexagon

SmartPlant Integration Customization

Language
English
Product
Integration
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

If a semantic needs to insert objects or relationships, change property values on existing objects or delete objects or relationships, then the semantic needs to call the appropriate method on the ISemanticEvents interface (on the transaction manager) to effect the change.

The following approach should be used for the various actions:

  • To insert an object, the object should be created and populated with property values. The InsertObj method should then be called.

  • To insert a relationship, the relationship should be created and populated with property values. The InsertRel method should then be called.

  • To update a property, the CanPropertyBeUpdated method should be called from within an If statement before the value is updated. If the CanPropertyBeUpdated returns True, then the property value should be updated and the UpdateProperty method called.