Sample - Update Duct Labels

Version 3

    Versions: 9.3.1 - current

    Product Availability: ArcFM Desktop

     

    This developer sample provides two special autoupdaters that add or update phase designation on the duct connector.

    • ArcFM Update Duct Connector Phase: This special autoupdater updates the phase designation on the duct connector when an associated conductor is edited. Assign this AU to the On Feature Update event on a conductor feature class (with the ULSMember model name assigned).
    • ArcFM UFM Populate Duct Connector: This special autoupdater adds the phase designation to a duct connector when it is created or edited. It retrieves the phase designation from the associated conductor. Assign this AU to the On Feature Create and On Feature Update events of the duct connector feature class.


    How to Implement:

    1. You may modify the code sample. This step is not required.
    2. Compile the code sample.


    How to Use:

    1. Assign the autoupdaters using the ArcFM Properties Manager (Object Info tab) in ArcCatalog.


    Requires:

    All of the files shown below are required for the project to compile successfully.

    FileDescription
    UpdateDuctLabels.csprojC# project containing the code to
    UpdateDuctConnectorPhaseAU.csClass for a special autoupdater that updates phase designation on a duct connector when an associated conductor is edited.
    UFMPopulateDuctConnectorAU.csClass for a special autoupdater that adds phase designation to a duct connector when it's created or updated.
    AssemblyInfo.csClass module to support the tool
    Global.csClass module that contains global values