Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenUtilities
  • Product Communities
  • More
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
      • Customizing OpenUtilities with VBA
      • How to Submit a Service Request
      • OpenUtilities Data Models
      • +Release Information
      • Working from home with OpenUtilities
    • Access Service Request Manager
    • +Bentley sisHYD Multi Utility
    • Design Features - promis.e Functionality - Promis.e Standard
    • +OpenUtilities Substation
    • Promis.e Paths
    • +Promis.e Wiki
    • Replace Family - Find_Replace - Promis.e
    • SQL Server Login

     
     Questions about this article, topic, or product? Click here. 

    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.

    Event Parameters Notes
    PreInsertHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef oProposedProp As xft.PropertyEnumerator, _
    ByRef Validation As Boolean, _
    ByRef Message As String
    PostInsertHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef Message As String
    CanDeleteHook ByVal Context As String, _
    ByVal oFeature As xft.feature, _
    ByRef Validation As Boolean, _
    ByRef Message As String
    Use validation parameter to prevent the delete operation. Message can be used to provide feedback to the user.
    PreDeleteHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef bCancel As Boolean, _
    ByRef Message As String
    Use bCancel parameter to prevent the delete. Message can be used to provide feedback to the user.
    PostDeleteHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef Message As String
    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
    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
    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
    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
    NumberOfChildrenHook ByVal oParentFeature As xft.feature, _
    <MarshalAs(UnmanagedType.SafeArray, SafeArraySubType:=VarEnum.VT_DISPATCH)> ByRef ChildFeatures() As Object, _
    ByRef Validation As Boolean, _
    ByRef Message As String
    PreMoveGeometryHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef oProposedGeometry As MicroStationDGN.Element, _
    ByRef Validation As Boolean, _
    ByRef Message As String
    PostMoveGeometryHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByVal oPreviousGeometry As MicroStationDGN.Element, _
    ByRef Message As String
    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
    PostConnectHook ByVal Context As String, _
    ByVal NetworkName As String, _
    ByRef oSourceFeature As xft.feature, _
    ByRef oTargetFeature As xft.feature, _
    ByRef Message As String
    PreDisconnectHook ByVal Context As String, _
    ByVal NetworkName As String, _
    ByRef oTargetFeature As xft.feature, _
    ByRef Validation As Boolean, _
    ByRef Message As String
    PostDisconnectHook ByVal Context As String, _
    ByVal NetworkName As String, _
    ByRef oTargetFeature As xft.feature, _
    ByRef Message As String
    PreUpdateHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByRef oProposedProp As Object, _
    ByRef bCancel As Boolean, _
    ByRef Message As String
    PostUpdateHook ByVal Context As String, _
    ByRef oFeature As xft.feature, _
    ByVal oPreviousProp As xft.PropertyEnumerator, _
    ByVal oPreviousGeometry As MicroStationDGN.Element, _
    ByRef Message As String
    PreTraceHook ByVal TraceType As String, _
    ByVal NetworkName As String, _
    ByRef oStartFeature As xft.feature, _
    ByRef oXPathQuery As BentleyXfmNetworkLib.XPathQueryDef
    PostTraceHook ByVal TraceType As String, _
    ByVal NetworkName As String, _
    ByRef oStartFeature As xft.feature, _
    ByRef NetResult As BentleyXfmNetworkLib.NetworkResult
    ExtendedTraceFunctionalityEnabled ByVal TraceType As String, _
    ByVal NetworkName As String, _
    ByRef oStartFeature As xft.feature, _
    ByRef NetResult As BentleyXfmNetworkLib.NetworkResult, _
    ByRef bEnabled As Boolean
    ExtendedTraceFunctionality ByVal TraceType As String, _
    ByVal NetworkName As String, _
    ByRef oStartFeature As xft.feature, _
    ByRef NetResult As BentleyXfmNetworkLib.NetworkResult, _
    ByRef Network As BentleyXfmNetworkLib.network
    GetFeaturePropertyHook ByVal oFeature As xft.feature, _
    ByVal propertyname As String, _
    ByVal PropertyValue 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
    PostCreatePeerAssociationHook ByVal Context As String, _
    ByVal oFeature1 As xft.feature, _
    ByVal oFeature2 As xft.feature, _
    ByVal AssociationType As Short, _
    ByRef Message As String
    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
    PostDeletePeerAssociationHook ByVal Context As String, _
    ByVal oFeature1 As xft.feature, _
    ByVal oFeature2 As xft.feature, _
    ByVal AssociationType As Short, _
    ByRef Message As String
    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
    PostCreateParentAssociationHook ByVal Context As String, _
    ByVal oChildFeature As xft.feature, _
    ByVal oParentFeature As xft.feature, _
    ByVal AssociationType As Short, _
    ByRef Message As String
    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
    PostDeleteParentAssociationHook ByVal Context As String, _
    ByVal oChildFeature As xft.feature, _
    ByVal oParentFeature As xft.feature, _
    ByVal AssociationType As Short, _
    ByRef Message As String
    • Bentley OpenUtilities Map
    • Bentley OpenUtilities PowerView
    • Bentley OpenUtilities Designer
    • Share
    • History
    • More
    • Cancel
    • Mike Carlisle Created by Bentley Colleague Mike Carlisle
    • When: Fri, Sep 4 2020 11:00 AM
    • Mike Carlisle Last revision by Bentley Colleague Mike Carlisle
    • When: Fri, Sep 4 2020 4:38 PM
    • Revisions: 8
    • Comments: 0
    Recommended
    Related
    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

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