Home Search

DriveWorks Pro 22
Define Constants

Send Feedback

Define Constants

The Constants task provides the ability to create named values which do not change, or change infrequently, such as mathematical or engineering constants.

The Constants list can be be filtered by using the filter at the top of the list.

Please see the topic How To Use Filters for more advanced filtering information.

To Create a Constant

  1. Click the "Add Constant" button on the command bar.
  2. Type a name for the constant.
  3. Press Enter or Return to finish.

To Edit a Constant

  1. Double click the "Value" column in the constants list on the constant you want to edit.
  2. Type a new value for the constant.
  3. Press Enter or Return to finish.

To Rename a Constant

  1. Select the constant to rename in the constant list.
  2. Click the "Rename" button on the command bar.
  3. Type a new name for the constant.
  4. Press Enter or Return to finish.

Renaming a constant will scan all rules and replace any occurrence of the old name with the new name.

If DriveWorks detects that this could cause a delay, then the following message will be displayed.

To Delete a Constant

  1. Select the constant to delete in the constant list.
  2. Click the "Delete" button on the command bar.

To Create a Category

  • Click the "Add Category" button the command bar.
  • Give the category a name.
  • Click "OK" - the category is created as a child of the currently selected category.

To Assign a Constant to a Category

  • Find the constant in the category tree
  • Click and drag it into the category you want to assign it to.

To Move a Category

  • Find the category in the category tree.
  • Click and drag it to the new parent category.

To Delete a Category

  • Select the category to delete in the category tree.
  • Click "Delete" on the command bar - the category is deleted, and all of its constants are moved into the deleted category's parent category.
If you delete a category which has child categories, you will be asked whether you want to delete them as well.

To Apply an Image to a Category

Assigning images to category can be a great way of documenting the purpose of a group of constants.

  1. Select the category to which to apply an image.
  2. Click "Set Category Image..." to browse for an image to apply.

Set the Size Mode for the Image

Once an image has been applied to the category the display size can be set by:

  1. Select the category that has an image applied.
  2. Right click on the image and choose:
    • Zoom to Fit

      Will scale the image to fit centrally in the available space.

    • Original

      Will keep the original size of the image positioned at the top left of the available space.

To Remove an Image from a Category

  • Select the category from which to remove an image.
  • Click "Remove Category Image..." to remove the image.

A static value (text or numeric) that never changes.