Writing code overrides - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

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

This is the point at which you can change existing functionality. In the example we have followed through we know we can override the IssueChange method.

To do this just type "Public sub Overrides", then pick IssueChange from the list that pops up. Your code will look something like this. Comments have been added so you can see where to place your code.

Public Overrides Sub IssueChange()

' Add code here

MyBase.IssueChange()

' And/Or here

End Sub

This example shows how to override a directly implied method. It is the same for any implied methods, and you can just select one from the list that pops up after you type "overrides."