ArcFM Desktop Overview > ArcFM Desktop Developer Samples > Display Namers |
Version: C# version added at 10.0.1
Product Availability: ArcFM Desktop, ArcFM Engine
Custom display name objects allow users to include multiple attributes in the display name for features within a particular feature class.
Figure 1, Minerville Transformer Display Namer shows facility ID, rated KVA, and phase designation. |
Figure 2, Minerville Valve Display Namer shows facility ID, valve diameter, and material. |
Developer Sample: Developer Samples\Display Namers\C# - Display Namers\Misc Display Namers
How to Implement:
How to Use:
Additional Information:
Requires:
All of the files shown below are required for the solution to build successfully. Download these files from the ArcFM Solution Resource Center here.
File
Description
CustomDisplayNamers.csproj
C# project containing the code to generate a custom display name object.
ClassicDesigner.cs
(view code)If the design, work location, or work request are stored in the database, this Display Name Object replicates the pre-832 Designer names. This display namer is available on features with one of the following class model names assigned: DESIGN, WORKLOCATION, WORK REQUEST.
This display namer also uses the following field model names: DESCRIPTION, DESIGNID, WORKLOCATIONID, WORKREQUESTID.
This display namer appears in the Display Name Object field as Sample Classic Designer Namer.
CPSystemNamer.cs
(view code)Displays the feature ID and its cathodic proection type code for a cathodic proection system. This display namer is available on features with the CPSYSTEM class model name assigned.
This display namer appears in the Display Name Object field as Minerville CP System Display Namer.
DistMainNamer.cs
(view code)Displays the operating pressure, diameter, and material of a distribution main. This display namer is available on features with the DISTRIBUTIONMAIN class model name assigned.
This display namer appears in the Display Name Object field as Minerville Distribution Main Display Namer.
ValveNamer.cs
(view code)Displays the facility ID, size, and material of a valve. This display namer is available on features with the VALVE class model name assigned.
This display namer appears in the Display Name Object field as Minerville Valve Display Namer.
XFRNamer.cs
(view code)Displays the facility ID, rated KVA, and phase designation of a transformer. This display namer is available on features with the TRANSFORMER class model name assigned.
This display namer appears in the Display Name Object field as Minerville Transformer Display Namer.
XFRUnitNamer.cs
(view code)Displays the facility ID, rated KVA and phase designation of a transformer unit. This display namer is available on features with the TRANSFORMERUNIT class model name assigned.
This display namer appears in the Display Name Object field as Minerville Transformer Unit Display Namer.
The following reference files are required for the solution to build successfully.
Esri.ArcGIS.Geodatabase
Esri.ArcGIS.System
Miner.Geodatabase
Miner.Interop.Geodatabase
Miner.System