How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. 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.
- Open the solution file and build the project. Note that this step automatically registers the components.
- Start ArcCatalog.
- Browse to any geodatabase that contains a schematic dataset.
- Right-click this schematic dataset entry and select Edit. The Schematic Dataset Editor starts.
- Select any diagram template entry that works with the Standard builder or create a diagram template that works with the Standard builder.
- Click the Rules tab.
- Click Add Rule on the Rules tab toolbar.
- Select the new custom node reduction rule from the Type drop-down list (that is, select Node Reduction Rule C# or Node Reduction Rule VBNet).
- Click Rule Properties on the Rules tab toolbar. The custom rule properties page appears.
- Select the node schematic feature class (that implements the nodes reduced during the rule execution) in the Select the schematic class to reduce drop-down list.
- In the Target superspan link section, select the link schematic feature class (that automatically implements the schematic links created to preserve the topology during the rule execution) in the Select the schematic class drop-down list .
- Add the name of the attribute that needs to be computed during the rule execution in the Cumulative attribute name text box. This attribute must exist with the same name on the schematic feature classes related to the links that connect the reduced nodes (that is, it must exist for each "reduced" link) and on the superspan link schematic feature class.
- Select the Keep vertices check box if you want to report the original path of the reduced links to the superspan link.
- Click Save to save the schematic dataset's new parameters.
- Start ArcMap and generate or update a schematic diagram from the diagram template (which the definition has just been modified). The custom rule will be executed.
NodeReductionRule.vb | Implementation for the custom node reduction rule. |
NodeReductionRuleVBNet2010.vbproj | Project file for the custom node reduction code. |
NodeReductionRulePropertyPage.vb | Implementation for the custom rule's property page. |
FrmNodeReductionRule.vb | Custom rule's property page. |
FrmNodeReductionRule.Designer.vb | Custom rule's property page. |
NodeReductionRulePageVBNet2010.vbproj | Project file for the custom node reduction rule's property page code. |
NodeReductionRule.cs | Implementation for the custom node reduction rule. |
NodeReductionRuleCS2010.csproj | Project file for the custom node reduction code. |
NodeReductionRulePropertyPage.cs | Implementation for the custom rule's property page. |
FrmNodeReductionRule.cs | Custom rule's property page. |
FrmNodeReductionRule.Designer.cs | Custom rule's property page. |
NodeReductionRulePageCS2010.csproj | Project file for the custom node reduction rule's property page code. |
Download the files for all languages
See Also:
ISchematicRule interfaceISchematicRuleDesign 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 |