To Use Rule Wizards

iLogic wizards help you create sophisticated rules for certain tasks.

Control Dialog Box Based on Model Parameters

  1. Click Create Rule for a Dialog on the Wizards tab of the Edit Rule dialog box.

    The Open DLL File dialog box displays the contents of the iLogicAdd folder, which contains previously created DLL files.

    Note: You may need to create the iLogicAdd folder as C:\Program Files\Autodesk\Inventor {version}\Bin\iLogicAdd.
  2. Select a DLL to populate the Rule for External DLL dialog box with the appropriate class and variable names.
  3. Click OK to generate the code.

Capture Current Display View

  1. Click Capture Current View on the Wizards tab of the Edit Rule dialog box.
  2. Select a Size Option from the Capture View dialog box.
    • Save and Restore current view extents - Restores the view to the orientation and zoom settings from when the rule captured the view.
    • Don’t change view size on restore - Moves the model to the center of the display and sets the orientation, but does not change the zoom.
    • Fit to model extents on restore - Moves the model to the middle of the display and fills the display (same as Zoom All).
  3. Click OK to generate the code.

Generate Message Box

Use this wizard to create a rule that generates a message box.

  1. Click Message Box on the Wizards tab of the Edit Rule dialog box.
  2. Enter the Title to appear at the top of the message box.
  3. Select the combination of buttons to appear on the message box.
  4. Indicate the default button by selecting the number that corresponds to its relative placement in the order, based on the Buttons selection.

    For example, if you have chosen YesNoCancel as your button scheme, and your default button is No, select 2.

  5. Select a status Icon to be displayed in the message box.
  6. Enter the text to be displayed in the message box, surrounded by quotes.
  7. Click Preview to display the message box using your selections.
  8. Click OK to generate the code.

Display Diagnostic Information When Parameter Values Fall Outside Range

  1. Click Parameter Limits on the Wizards tab of the Edit Rule dialog box.
  2. Enter the Name of the parameter.
  3. Specify the maximum and minimum values.
  4. Enter the message Title and message text to display for violations of the maximum and minimum values.
  5. Click Apply to generate the code, or click Default Message to reset the messages to their default text.