Product Availability: ArcFM Desktop, ArcFM Engine
Custom class extensions allow you to define custom behavior for a feature or object class. This implementation of IMMCompliantClassExtension retains the relationship between the DistributionMain and the CPSystem features when the DistributionMain feature is split.
Because each feature or object class may have only one class extension it is critical that you call the ArcFM autoupdater framework for all autoupdaters within your custom class extension. This ensures that all autoupdaters are executed as appropriate. The code to integrate AUs into your custom class extension is shown below.
How to Implement:
- You may modify the code sample. This step is not required.
- Compile the code sample.
- Open ComplexEdgeFeatureClass.cs and view the GUID in the class. You may want to copy this GUID for the next step.
- Locate the target feature class (e.g., DistributionMain, Service) in the GDB_ObjectClasses table.
- Replace the ExtCLSID with the GUID from the custom class extension.
All of the files shown below are required for the project to compile successfully.
|FeatureClassExtension.csproj||C# project containing the code to generate a custom class extension.|
|ComplexEdgeFeatureClass.cs||This class module provides an example of a custom class extension.|