How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.
Data has been provided for your use with this sample. It can be found at
<Your ArcGIS Developer Kit Install directory>/Samples/data/Schematics/ExtendedCriteriaSamples.gdb.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders.
However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Building the component
- Start Visual Studio, open the solution file, and build the project.
Copying the sample database in a working folder
- Navigate to <ArcGIS DeveloperKit install location>\Samples\data\Schematics
- Copy the ExtendedCriteriaSamples.gdb geodatabase in a folder for which you have full rights.
Configuring a Node Reduction By Priority rule using the Reduce if connected cable diameters are 8 custom reduce extended criteria
- Start ArcCatalog, browse to the copied ExtendedCriteriaSamples geodatabase, right-click the ExtendedCriteriaSamples_Schematic schematic dataset, then click Edit.
- From the Schematic Dataset Editor tree, click the DiagramsFromSampleFeatureDataset diagram template.
- Click the Rules tab.
- If there are rule items on the Rules tab, uncheck their related Active box.
- Click Add Rule on the Rules tab toolbar.
- Select Node Reduction By Priority from the Type drop-down list .
- Click Rule Properties on the Rules tab toolbar. The Node Reduction By Priority rule properties page displays.
- Type a description for the newly created rule; for example, type Reduce plants whose connected cables diameters are 8.
- Select plants for the Select node element class to reduce.
- Keep the default reduction options, then check Use extended criteria.
- The two custom reduction extended criteria that were automatically registered when the solution was built are available from the drop-down list under the Use extended criteria check box. Click Reduce if connected cable diameters are 8 (VBNet) or Reduce if connected cable diameters are 8 (C#) from the drop-down list and click OK.
- Save and exit the Schematic Dataset Editor.
- Start ArcMap with an empty map.
- Click Open Schematic Diagrams on the Schematic toolbar and open the TestReduction_Diameter schematic diagram stored in the ExtendedCriteriaSamples_Schematic schematic dataset in the copied ExtendedCriteriaSamples.gdb geodatabase.
- Click Update Diagram on the Schematic toolbar. The Update Diagram dialog box opens.
- Keep the Synchronize against original selection/trace/query option checked and click OK. At the end of the update process, all plants' connecting links whose diameters are 8 are reduced.
Configuring a Node Reduction By Priority rule using the Reduce plants without equipments custom reduce extended criteria
- Start ArcCatalog, browse to the copied ExtendedCriteriaSamples geodatabase, right-click the ExtendedCriteriaSamples_Schematic schematic dataset, then click Edit.
- From the Schematic Dataset Editor tree, click the DiagramsFromSampleFeatureDataset diagram template.
- Click the Rules tab.
- If there are rule items on the Rules tab, uncheck their related Active box.
- Click Add Rule on the Rules tab toolbar.
- Select Node Reduction By Priority from the Type drop-down list .
- Click Rule Properties on the Rules tab toolbar. The Node Reduction By Priority rule properties page displays.
- Type a description for the newly created rule; for example, type Reduce plants without equipments.
- Select plants for the Select node element class to reduce.
- Keep the default reduction options, then check Use extended criteria.
- The two custom reduction extended criteria that were automatically registered when the solution was built are available from the drop-down list under the Use extended criteria check box. Click Reduce plant without equipments (VBNet) or Reduce plant without equipments (C#) from the drop-down list and click OK.
- Save and exit the Schematic Dataset Editor.
- Start ArcMap with an empty map.
- Click Open Schematic Diagrams on the Schematic toolbar and open the TestReduction_Equipments schematic diagram stored in the ExtendedCriteriaSamples_Schematic schematic dataset in the copied ExtendedCriteriaSamples.gdb geodatabase.
- Click Update Diagram on the Schematic toolbar. The Update Diagram dialog box opens.
- Keep the Synchronize against original selection/trace/query option checked and click OK. At the end of the update process, the plants without equipments are reduced.
Configuring a Feature Removal rule using the Remove cables with particular ID custom reduce extended criteria
- Start ArcCatalog, browse to the copied ExtendedCriteriaSamples geodatabase, right-click the ExtendedCriteriaSamples_Schematic schematic dataset, then click Edit.
- From the Schematic Dataset Editor tree, click the DiagramsFromSampleFeatureDataset diagram template.
- Click the Rules tab.
- If there are rule items on the Rules tab, uncheck their related Active box.
- Click Add Rule on the Rules tab toolbar.
- Select Feature Removal from the Type drop-down list .
- Click Rule Properties on the Rules tab toolbar. The Feature Removal rule properties page displays.
- Type a description for the newly created rule; for example, type Remove cables with particular ID.
- Select cables for the Select the schematic feature class to remove.
- Keep the default removal options, then check Use extended criteria.
- Click Remove cables with particular ID (VBNet) or Remove cables with particular ID (C#) from the drop-down list under this check box, and click OK.
- Save and exit the Schematic Dataset Editor.
- Start ArcMap with an empty map.
- Click Open Schematic Diagrams on the Schematic toolbar and open the TestRemoval_ParticularCables schematic diagram stored in the ExtendedCriteriaSamples_Schematic schematic dataset in the copied ExtendedCriteriaSamples.gdb geodatabase.
- Click Update Diagram on the Schematic toolbar. The Update Diagram dialog box opens.
- Keep the Synchronize against original selection/trace/query option checked and click OK. At the end of the update process, two cables are removed.
Configuring an Expand Links rule using the Use origin plant's MaxOutLines value custom reduce extended criteria
- Start ArcCatalog, browse to the copied ExtendedCriteriaSamples geodatabase, right-click the ExtendedCriteriaSamples_Schematic schematic dataset, then click Edit.
- From the Schematic Dataset Editor tree, click the DiagramsFromSampleFeatureDataset diagram template.
- Click the Rules tab.
- If there are rule items on the Rules tab, uncheck their related Active box.
- Click Add Rule on the Rules tab toolbar.
- Select Expand Links from the Type drop-down list.
- Click Rule Properties on the Rules tab toolbar. The Expand Links rule properties page displays.
- Type a description for the newly created rule; for example, type Expand cables based on its origin plant's MaxOutLines value.
- Select cables for the Select the link schematic feature class to expand.
- Check Use extended criteria on the Select value source section.
- Choose Use origin plant's MaxOutLines value (VBNet) or Use origin plant's MaxOutLines value (C#) from the drop-down list under this check box, and click OK.
- Check the Integer value option on the Value format section.
- Save and exit the Schematic Dataset Editor.
- Start ArcMap with an empty map.
- Click Open Schematic Diagrams on the Schematic toolbar and open the TestExpandLinks_FromOriginPlant schematic diagram stored in the ExtendedCriteriaSamples_Schematic schematic dataset in the copied ExtendedCriteriaSamples.gdb geodatabase.
- Click Update Diagram on the Schematic toolbar. The Update Diagram dialog box opens.
- Keep the Synchronize against original selection/trace/query option checked and click OK.
- Click Start Editing Diagram on the Schematic Editor toolbar.
- Choose Separate Overlapping Links in the Layout Task drop-down list.
- Click Apply Layout Task. Several links now connect the same plant nodes. The number of links between two plant nodes correspond to the MaxOutLines value on the initial cable's plant origin node.
PlantWithoutEquipment.vb | Implements a node reduction criterion based on the nonexistence of equipment related to a plant feature candidate to the reduction. |
PlantOnCableDiameter.vb | Implements a node reduction criterion based on the diameter value of the cable links incident to a plant feature candidate to the reduction. |
FeatureRemovalExt.vb | Implements a feature removal criterion based on the name of the cable schematic links candidate to the removal. |
ExpandLinks.vb | Implements an expand links criterion based on attribute values on the origin node of the cable schematic links candidate to the expansion. |
CollapseRelatedElts.vb | Implements a basic code to develop a collapse related elements criterion. |
EnumCollapsedElts.vb | Used by the CollapseRelatedElts class. |
PlantWithoutEquipment.cs | Implements a node reduction criterion based on the nonexistence of equipment related to a plant feature candidate to the reduction. |
PlantOnCableDiameter.cs | Implements a node reduction criterion based on the diameter value of the cable links incident to a plant feature candidate to the reduction. |
FeatureRemovalExt.cs | Implements a feature removal criterion based on the name of the cable schematic links candidate to the removal. |
ExpandLinks.cs | Implements an expand links criterion based on attribute values on the origin node of the cable schematic links candidate to the expansion. |
CollapseRelatedElts.cs | Implements a basic code to help you to develop a collapse related elements criterion. |
EnumCollapsedElts.cs | Used by the CollapseRelatedElts class. |
Download the files for all languages
See Also:
ISchematicCollapseRelatedElementsExtended interfaceISchematicNodeReductionExtended interface
ISchematicFeatureRemovalExtended interface
ISchematicExpandLinksByAttributeExtended interface
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Basic: Schematics | ArcGIS for Desktop Basic: Schematics |
ArcGIS for Desktop Standard: Schematics | ArcGIS for Desktop Standard: Schematics |
ArcGIS for Desktop Advanced: Schematics | ArcGIS for Desktop Advanced: Schematics |