Hide Table of Contents

Dimension Examples

To subtract a value from a form input value:

  1. Create a form with an input field called ShaftLength.

  1. Open the Rules tab.

  2. For Action, select Edit Dimension Rules and click Next.

  1. Double-click the dimension for which you want to build the rule.

  2. In the rule window, select ShaftLength from the Inputs list and enter - 285, the value to be subtracted.

  3. Click Next.

The formula shown in the rules list:

ShaftLength - 285

To calculate a pitch from an input value and a preferred hole quantity.

  1. Create a form with an input field called InputValue.

  1. Open the Rules tab.

  2. For Action, select Edit Dimension Rules and click Next.

  1. Double-click the dimension for which you want to build the rule.

  2. In the build window, enter an open bracket ( ( ) and select InputValue from the Inputs list.

  3. Subtract 300, the total of the start (150) and end (150) distances of the pattern and select a closed bracket ( ) ) from the Math list.

  4. Select the divide operator ( / ) from the Math list, enter 10 (the number of holes preferred).

  5. Click Next.

The formula shown in the rules list:

( InputValue - 300 ) / 10

To calculate a hole quantity for a pattern from an input value and a preferred pitch.

  1. Create a form with an input field called InputValue.

  2. Open the Rules tab.

  3. For Action, select Edit Dimension Rules and click Next.

  1. Double-click the dimension for which you want to build the rule.

  2. In the build window, enter an open bracket ( ( ) and select InputValue from the Inputs list.

  3. Subtract 300 (the total of the start (150) and end (150) distance of the pattern) and select a closed bracket ( ) ) from the Math list..

  4. Select the divide operator ( / ) from the Math list, enter 175 (the pitch preferred).

  5. Before the open bracket, type ROUNDDOWN and after the entered pitch, type ,0) to round the result down to the nearest whole number.

  6. After the last close bracket, type + 1 to calculate the hole quantity.

  7. Click Next.

The formula shown in the rules list:

ROUNDDOWN (( InputValue - 300 ) / 175 , 0 ) + 1



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Dimension Example
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS 2010 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.