formula in pattern - how to ??

Does anyone kow how to enter a formula in the data places in a pattern, either distances or quantities?

SolidworksParts And Features
Answers 3
TP
TP 2010-08-04 Best Answer

From Help File;

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

    Create a form with an input field called InputValue.

    Open the Rules tab.

    For Action, select Edit Dimension Rules and click Next.

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

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

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

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

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

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

    Click Next.

The formula shown in the rules list:

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

To suppress a pattern feature when the number of holes is 0 or 1:

    Create a form with an input field for HoleQuantity.

    Open the Rules tab.

    For Action, select Edit Feature Rules and click Next.

    Double-click the feature in the rules list.

    Select If from the Logic tab and construct the expression to suppress or unsuppress the feature based on the value of HoleQuantity:

      In the If field, select HoleQuantity from the Inputs tab.

      In the Then field, enter the action, in quotes, to perform on the feature when this condition is True.

      In the Otherwise field, type the action, in quotes, to perform on the feature when this condition is False.

      Click Next.

    The formula shown in the rules list:

    IF ( HoleQuantity <= 1 , "Suppress" , "Unsuppress" )

    JF
    JF 2010-08-04

    that sounds like driveworks express, or something similar.

    in genereal to add an equation to a dimension that is not in a sketch, you first create the feature - in this case the pattern - with any value and then double click on the dimension and select "add equation" fromthe drop down menu.

    Jeremy

    TP
    TP 2010-08-04

    Jeremy,

    You are correct. I wasn't paying attetion that is help section for drive works.