FAQ - Designer - CU Favorite Visibility in the Work Function Tool

Version 5

    Question

     

    What determines the visibility of a CU favorite in the Work Function Tool?

     

    Answer

     

    A CU favorite is visible in the Work Function Tool depending on its available work functions and CU Defining Attributes if any are defined for the feature or object class.

     

    Here is an example to show how the visibility is determined. In this example a 45' class 3 wood power pole CU is created, and a favorite is created that uses this CU.

     

    1. Create the CU in the Compatible Units Administration tool. Note the Available Workfunction and Defining Attributes settings.

     



    This creates a row in the MM_CU_LIBRARY table:

    Rows are also created in MM_CU_ATTRIBUTES for CU Defining Attributes and MM_CU_EXTENDED_DATA for Extended Data.

     

     

    2. Create a favorite using the CU in the ArcFM System Favorites Manager.

       1. Use the Pole, subtype Wood Power Pole feature class. In the Create Favorite dialog name it PW-TEST-45-3. Right click on PW-TEST-45-3 and select Add CU from CU library.

       2. Search for the PW-TEST-45-3 CU, double-click on it to add it. Set its work function to None. Setting it to None allows it to be set to the work function chosen in the CU tab work function dropdown list.

       3. Click Create to save it. Click Close. Click OK to save edits.

     

    This creates the following favorite XML. This has been exported from the ArcFM System Favorites Manager.

     

    <GISUNIT ProgID="mmDesktop.MMGisUnit.1" Owner="System">

      <DESCRIPTION>PW-TEST-45-3</DESCRIPTION>

      <TABLENAME>schneiderville.ARCFM.SupportStructure</TABLENAME>

      <SUBTYPE>3</SUBTYPE>

      <WORK_FUNCTION>0</WORK_FUNCTION>

      <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

       <NAME>HEIGHT</NAME>

       <VALUE>45</VALUE>

      </CUDEF_ATTRIBUTE>

      <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

       <NAME>CLASS</NAME>

       <VALUE>3</VALUE>

      </CUDEF_ATTRIBUTE>

      <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

       <NAME>MATERIAL</NAME>

       <VALUE>W</VALUE>

      </CUDEF_ATTRIBUTE>

      <CU ProgID="mmDesktop.MMCompatibleUnit.1">

       <CUNAME>PW-TEST-45-3</CUNAME>

       <DESCRIPTION>PW-TEST-45-3</DESCRIPTION>

       <WMS_CODE>PW-TEST-45-3</WMS_CODE>

       <TABLENAME>schneiderville.ARCFM.SupportStructure</TABLENAME>

       <SUBTYPE>3</SUBTYPE>

       <AVAILABLEWORKFUNCTIONS>8243</AVAILABLEWORKFUNCTIONS>

       <WORK_FUNCTION>0</WORK_FUNCTION>

       <WF_STATUS>0</WF_STATUS>

       <QUANTITY>1</QUANTITY>

       <UNIT_OF_MEASURE>0</UNIT_OF_MEASURE>

       <EDM>

        <EDMPROP Name="LABOR_TYPE" Type="1">0</EDMPROP>

        <EDMPROP Name="SOIL_CONDITION" Type="1">0</EDMPROP>

        <EDMPROP Name="TRAFFIC_CONDITION" Type="1">0</EDMPROP>

        <EDMPROP Name="NETWORK_STATUS" Type="1">0</EDMPROP>

        <EDMPROP Name="JOINT_TRENCH" Type="888888">0</EDMPROP>

        <EDMPROP Name="EDM_DISTANCE" Type="888888">0</EDMPROP>

        <EDMPROP Name="EDM_DIVISION" Type="888888">0</EDMPROP>

        <EDMPROP Name="EDM_CONDUIT" Type="888888">1</EDMPROP>

       </EDM>

       <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

        <NAME>MATERIAL</NAME>

        <VALUE>W</VALUE>

       </CUDEF_ATTRIBUTE>

       <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

        <NAME>CLASS</NAME>

        <VALUE>3</VALUE>

       </CUDEF_ATTRIBUTE>

       <CUDEF_ATTRIBUTE ProgID="mmFramework.D8CuDefAttrib.1" AttributeType="Defining">

        <NAME>HEIGHT</NAME>

        <VALUE>45</VALUE>

       </CUDEF_ATTRIBUTE>

      </CU>

    </GISUNIT>

     

    Note that AVAILABLEWORKFUNCTIONS gets set to the sum of the codes for the work functions chosen when the CU was created in the Compatible Units Administration tool. Also note that both GU and CU have CUDEF_ATTRIBUTEs set corresponding to those set for the CU in the CU Admin Tool. The CUDEF_ATTRIBUTEs set on the CU will drive what is shown in the Work Function Tool when the filter is used.

     

    If the Work Function Tool is used to do a Remove on a 45' class 3 wood power pole, the PW-TEST-45-3 favorite shows up with Show all unchecked since the Filter will have the same Height, Class and Material set (its CU Defining Attributes), and this favorite is the same subtype, and has Remove in available work functions. If Show all is checked, CU Defining Attributes will be ignored and it will search for CUs with the selected subtype and available work function. (Remove in this case).

     

     

    With Show all checked. Note that 55' and 50' height poles are now shown in the list.