Home > Misc., Note to Remember > Linear Patterns & Equations

Linear Patterns & Equations

I was driving a linear pattern with an equation and found that SW was rounding the result up or down to the nearest whole number. Therefore when I had a spacing of 2.5, a pattern of 3 was inserted. Not what I wanted. Anyways, the solution:

"D1@Pattern1" = int("D1@Sketch1"/1200)+1

int() rounds down to the nearest whole number.

Kudos to forums.solidworks.com

Misc., Note to Remember

  1. Jamie
    June 25th, 2011 at 06:07 | #1

    Thats wild. Cheers

  1. No trackbacks yet.