ArcFM Desktop Overview > ArcFM Overview > Edit Tasks |
In ArcFM, you can assign an edit task to a feature class so that when the feature is added, the edit task will execute. This allows you to customize the process of adding a certain feature. Use an edit task anytime you want the user to interact with the map while adding a feature. Edit tasks are also useful when you create a geometry feature based on another type of geometry entered by the user. For example, an edit task could prompt the user to click several service points. When the user is finished selecting the service points, the edit task could construct a line feature that connects them. Edit tasks should not be confused with autoupdaters, which can be set to execute after a feature is created. Autoupdate strategies do not allow a user to interact with the feature sketch process. For example, a special AU can be written to relate a newly added device to an existing feature. An example of this would be the ArcFM Structure Relate special AU provided with ArcFM. This autoupdater searches the space around the new device for an existing structure. If one is found within its search tolerance, it will relate the new device to the structure it found. The user cannot control this process. Imagine that you wanted the user to manually select a support structure for the new device. You would then require the user to place the device, then select a structure to form the relationship. In this case, an edit task would make the procedure more flexible. |
|
You’ll need to register your edit task into the appropriate component categories: Esri Edit Tasks, and Schneider Electric Edit Tasks. Registering your component into Esri Edit Tasks will allow ArcMap to load the edit task. The ArcFM Properties Manager tool in ArcCatalog will load whatever edit tasks are registered in the Schneider Electric Edit Tasks component category. To ensure your edit task is registered in the correct component category, you will need the following in the class.
[ComponentCategory(ComCategory.EsriEditTask)] [ComponentCategory(ComCategory.MMEditTasks)]
When you use RegX.exe to register the compiled DLL, the edit task will be added to the correct component categories.