Create a custom GeometricEffect that produces a sine wave effect for linear features
The Layer Properties dialog box with highlighted tabs and buttons used in this sample.
Development licensing
Deployment licensing
ArcView
ArcInfo
ArcEditor
ArcEditor
ArcInfo
ArcView
How to use
See Using the samples for help on compiling, setting up the debugger, and running the sample (either an exe or dll).
Open the Visual Studio 2005 solution file and build the project. This adds the custom object into the ESRI Representation Geometric Effect component category as SineWaveGE.SineWave.
Click the Add Data button to add a line or polygon feature class with representations to the ArcMap document.
In the Layer Properties dialog box, change the Feature Renderer to Representation Renderer on the Symbology tab.
Select any Representation Rule (for example, RuleA) within the Representation Renderer for which you want to add this custom geometric effect to.
Select a symbol layer (for example, LayerA) within this representation rule or add a new symbol layer.
Click + next to the selected symbol layer to open the Geometric Effects dialog box, which lists all geometric effects. The custom class will be listed under the Line Input and Polygon Input options. Select the SineWave_GeometricEffect custom effect to produce a sine wave effect on the linear geometries.
Change the values for the step and height graphic attributes or accept the default values.
Start an edit session to interactively modify these attributes.
Select a feature representation that uses the rule applied with the custom effect using the Select tool in the Representation toolbar.
Click the Representation Properties tool in the toolbar to open a dialog box. Be sure that the Tool tab is also selected.
Select the Resize tool in the Representation toolbar. All attributes that can be modified interactively using the Resize tool appears in a list under the layer (LayerA). You will see both attributes of sine wave (step and height) listed here.
Select the check boxes for the attributes and use the Resize tool to interactively modify the attributes.
Clear the check boxes, if you do not want to modify these attributes interactively.