This section describes how to use the attribute enabled to
create conditional steps. In the first line of a step definition, the attribute
enabled defines the initial state of the
step:
<step name="Mechanical" caption="Mechanical" enabled="true" version="1" HelpFile="help/mechanical.html"><description>Create a mechanical component.</description>
When enabled="true" is the setting (default), the step
initially displays in the wizard. However, in the IronPython script, you can
programmatically change the state of the attribute enabled to
create branches where certain steps are executed in only specific circumstances:
step.Enabled = True or step.Enabled =
False. Consequently, when running the wizard, the choices that the user
makes in the step can determine which subsequent steps display.