Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenUtilities
  • Product Communities
OpenUtilities
OpenUtilities Wiki Customizing OpenUtilities with VBA
    • Sign In
    • -OpenUtilities
      • +Bentley OpenUtilities Designer
      • +Bentley OpenUtilities Map
      • Bentley OpenUtilities PowerView
      • Bentley OpenUtilities Workflow Manager
      • +Bentley sisIMS
      • Collecting Event Viewer Logs
      • Customizing OpenUtilities with VBA
      • How to create a Deployment Image
      • How to Submit a Service Request
      • Log4j Vulnerability
      • OpenUtilities - Digital Twin Services
      • OpenUtilities Data Models
      • +OpenUtilities Dataloader Reference
      • +Release Information
      • Working from home with OpenUtilities
    • Access Service Request Manager
    • +Bentley sisHYD Multi Utility
    • Design Features - promis.e Functionality - Promis.e Standard
    • +OpenUtilities sisNET - English
    • +OpenUtilities Substation
    • Promis.e Paths
    • +Promis.e Wiki
    • Replace Family - Find_Replace - Promis.e
    • SQL Server Login

    You are currently reviewing an older revision of this page.

    • History View current version

    Customizing OpenUtilities with VBA

    The following is a list of the events that can be caught in VBA to provide customization points in OpenUtilities PowerView, OpenUtilities Map, OpenUtilities Designer, OpenUtilities Design Optioneering, and OpenUtilities Analysis.

    PreInsertHook(ByVal Context As String, _
                                           ByRef oFeature As xft.feature, _
                                           ByRef oProposedProp As xft.PropertyEnumerator, _
                                           ByRef Validation As Boolean, _
                                           ByRef Message As String) As Integer
    PostInsertHook(ByVal Context As String, _
                                            ByRef oFeature As xft.feature, _
                                            ByRef Message As String) As Integer
    CanDeleteHook(ByVal Context As String, _
                                           ByVal oFeature As xft.feature, _
                                           ByRef Validation As Boolean, _
                                           ByRef Message As String) As Integer
    PreDeleteHook(ByVal Context As String, _
                                           ByRef oFeature As xft.feature, _
                                           ByRef bCancel As Boolean, _
                                           ByRef Message As String) As Integer
    PostDeleteHook(ByVal Context As String, _
                                            ByRef oFeature As xft.feature, _
                                            ByRef Message As String) As Integer
    PreSplitHook(ByVal Context As String, _
                                          ByRef oFeature As xft.feature, _
                                           ByRef SplitCoordX As Double, _
                                           ByRef SplitCoordY As Double, _
                                           ByRef SplitCoordZ As Double, _
                                           ByRef Validation As Boolean, _
                                           ByRef Message As String) As Integer

    PostSplitHook(ByVal Context As String, _
                                           ByVal SplitCoordX As Double, _
                                           ByVal SplitCoordY As Double, _
                                           ByVal SplitCoordZ As Double, _
                                           ByRef oUpstreamFeature As xft.feature, _
                                           ByRef oDownstreamFeature As xft.feature, _
                                           ByRef Message As String) As Integer
    PreJoinHook(ByVal Context As String, _
                                           ByRef SplitCoordX As Double, _
                                           ByRef SplitCoordY As Double, _
                                           ByRef SplitCoordZ As Double, _
                                         ByRef oUpstreamFeature As xft.feature, _
                                         ByRef oDownstreamFeature As xft.feature, _
                                         ByRef Validation As Boolean, _
                                         ByRef Message As String) As Integer
    PostJoinHook(ByVal Context As String, _
                                           ByVal SplitCoordX As Double, _
                                           ByVal SplitCoordY As Double, _
                                           ByVal SplitCoordZ As Double, _
                                          ByRef oUpstreamFeature As xft.feature, _
                                          ByRef oDownstreamFeature As xft.feature, _
                                          ByRef Message As String) As Integer
    NumberOfChildrenHook(ByVal Context As String, _
                                                      ByVal oParentFeature As xft.feature, _
                                                      <MarshalAs(UnmanagedType.SafeArray, SafeArraySubType:=VarEnum.VT_DISPATCH)> ByRef ChildFeatures() As Object, _
                                                      ByRef Validation As Boolean, _
                                                      ByRef Message As String) As Integer
    PreMoveGeometryHook(ByVal Context As String, _
                                                  ByRef oFeature As xft.feature, _
                                                  ByRef oProposedGeometry As MicroStationDGN.Element, _
                                                  ByRef Validation As Boolean, _
                                                  ByRef Message As String) As Integer
    PostMoveGeometryHook(ByVal Context As String, _
                                                   ByRef oFeature As xft.feature, _
                                                   ByVal oPreviousGeometry As MicroStationDGN.Element, _
                                                   ByRef Message As String) As Integer
    PreConnectHook(ByVal Context As String, _
                                             ByVal NetworkName As String, _
                                             ByRef oSourceFeature As xft.feature, _
                                             ByRef oTargetFeature As xft.feature, _
                                             ByRef Validation As Boolean, _
                                             ByRef Message As String) As Integer
    PostConnectHook(ByVal Context As String, _
                                              ByVal NetworkName As String, _
                                              ByRef oSourceFeature As xft.feature, _
                                              ByRef oTargetFeature As xft.feature, _
                                              ByRef Message As String) As Integer
    PreDisconnectHook(ByVal Context As String, _
                                                ByVal NetworkName As String, _
                                                ByRef oTargetFeature As xft.feature, _
                                                ByRef Validation As Boolean, _
                                                ByRef Message As String) As Integer
    PostDisconnectHook(ByVal Context As String, _
                                                 ByVal NetworkName As String, _
                                                 ByRef oTargetFeature As xft.feature, _
                                                 ByRef Message As String) As Integer
    PreUpdateHook(ByVal Context As String, _
                                            ByRef oFeature As xft.feature, _
                                            ByRef oProposedProp As Object, _
                                            ByRef bCancel As Boolean, _
                                            ByRef Message As String) As Integer
    PostUpdateHook(ByVal Context As String, _
                                             ByRef oFeature As xft.feature, _
                                             ByVal oPreviousProp As xft.PropertyEnumerator, _
                                             ByVal oPreviousGeometry As MicroStationDGN.Element, _
                                             ByRef Message As String) As Integer
    PreTraceHook(ByVal TraceType As String, _
                                            ByVal NetworkName As String, _
                                            ByRef oStartFeature As xft.feature, _
                                            ByRef oXPathQuery As BentleyXfmNetworkLib.XPathQueryDef) As Integer
     PostTraceHook(ByVal TraceType As String, _
                                            ByVal NetworkName As String, _
                                            ByRef oStartFeature As xft.feature, _
                                            ByRef NetResult As BentleyXfmNetworkLib.NetworkResult) As Integer
    ExtendedTraceFunctionalityEnabled(ByVal TraceType As String, _
                                         ByVal NetworkName As String, _
                                         ByRef oStartFeature As xft.feature, _
                                         ByRef NetResult As BentleyXfmNetworkLib.NetworkResult, _
                                         ByRef bEnabled As Boolean) As Integer
    ExtendedTraceFunctionality(ByVal TraceType As String, _
                                         ByVal NetworkName As String, _
                                         ByRef oStartFeature As xft.feature, _
                                         ByRef NetResult As BentleyXfmNetworkLib.NetworkResult, _
                                         ByRef Network As BentleyXfmNetworkLib.network) As Integer
    GetFeaturePropertyHook(ByVal oFeature As xft.feature, _
                                                 ByVal propertyname As String, _
                                                 ByVal PropertyValue As String) As String
    PreCreatePeerAssociationHook(ByVal Context As String, _
                                                  ByVal oFeature1 As xft.feature, _
                                                  ByVal oFeature2 As xft.feature, _
                                                  ByVal AssociationType As Short, _
                                              ByRef Validation As Boolean, _
                                              ByRef Message As String) As Integer
    PostCreatePeerAssociationHook(ByVal Context As String, _
                                                ByVal oFeature1 As xft.feature, _
                                                 ByVal oFeature2 As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                              ByRef Message As String) As Integer
    PreDeletePeerAssociationHook(ByVal Context As String, _
                                                ByVal oFeature1 As xft.feature, _
                                                 ByVal oFeature2 As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                              ByRef Validation As Boolean, _
                                              ByRef Message As String) As Integer
    PostDeletePeerAssociationHook(ByVal Context As String, _
                                                ByVal oFeature1 As xft.feature, _
                                                 ByVal oFeature2 As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                              ByRef Message As String) As Integer
    PreCreateParentAssociationHook(ByVal Context As String, _
                                                ByVal oChildFeature As xft.feature, _
                                                 ByVal oParentFeature As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                                 ByRef Validation As Boolean, _
                                                ByRef Message As String) As Integer
    PostCreateParentAssociationHook(ByVal Context As String, _
                                                ByVal oChildFeature As xft.feature, _
                                                 ByVal oParentFeature As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                              ByRef Message As String) As Integer
    PreDeleteParentAssociationHook(ByVal Context As String, _
                                                 ByVal oChildFeature As xft.feature, _
                                                 ByVal oParentFeature As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                              ByRef Validation As Boolean, _
                                              ByRef Message As String) As Integer
    PostDeleteParentAssociationHook(ByVal Context As String, _
                                                 ByVal oChildFeature As xft.feature, _
                                                 ByVal oParentFeature As xft.feature, _
                                                 ByVal AssociationType As Short, _
                                                  ByRef Message As String) As Integer
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies