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 is automatically registering 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 rule from the Type drop-down list (that is, select Reduction Link Rule VBNet or Reduction Link Rule C#).
- Click Rule Properties on the Rules tab toolbar. The custom rule properties page appears.
- Select the link schematic feature class (that implements the schematic links that will be automatically reduced during the rule execution) in the Link to reduce drop-down list.
- Select the Use Port check box if your schematic links connect to a specific port at their extremity nodes and you want the rule to take these port connections into account during its execution.
- Click Save to save the schematic dataset's new parameters.
- Start ArcMap and generate or update a schematic diagram from the diagram template (which definition has been just modified); the custom rule will be executed.
ReductionLinkRule.vb | Implementation for the custom rule. |
CustomRulesVBNet2010.vbproj | Project file for the custom rule code. |
ReductionLinkPropertyPage.vb | Implementation for the custom rule's property page. |
frmReductionLink.vb | Custom rule's property page. |
frmReductionLink.Designer.vb | Custom rule's property page. |
CustomRulesPageVBNet2010.vbproj | Project file for the custom rule's property page code. |
ReductionLinkRule.cs | Implementation for the custom rule. |
CustomRulesCS2010.csproj | Project file for the custom rule code. |
ReductionLinkPropertyPage.cs | Implementation for the custom rule's property page. |
frmReductionLink.cs | Custom rule's property page. |
frmReductionLink.Designer.cs | Custom rule's property page. |
CustomRulesPageCS2010.csproj | Project file for the custom 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 |