Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SolidWorks Pattern Equation Help

Status
Not open for further replies.

JEREMER

Mechanical
Nov 29, 2005
9
I am trying to make an equation to drive a quantity of a pattern so I can just adjust a qty and then the height will modify accordingly. Is there any way to use an equation for a qty of a pattern? Help is appriciated.

Thanks,
Jr-
 
Replies continue below

Recommended for you

Do you mean the "height" of the part or ????

What type of pattern? (Linear Sketch Step & Repeat, Feature Pattern or Component Pattern)

MERRY CHRISTMAS
(Unabashedly Politically Incorrect)
 
Just a linear pattern. I basically just want want to set the pattern qty value with an equation.
 
Here is what a basic one could look like:
Double-click the pattern in the assembly tree, and rename the quantity to Pattern Quantity, and rename the distance value to Vertical Quantity (this is assuming the pattern axis is horizontal)

"VQ"= 16 ' Vertical Quantity
"PD"= 4 ' Pattern Distance
"Pattern Distance@LocalLPattern1" = "PD"
"Pattern Quantity@LocalLPattern1" = "VQ" + 1
"Length@Extrude-Thin1@Vertical Tube.Part" = "VQ"*"PD"+1

The last equation is the dimension entity of the part.

Note the last number "1" on the last equation is the width of the part being patterned, in this case a 1" square tube.

The fun part is when you start using the "IF" and Integer functions.

Flores
SW06 SP2.0
 
Hmm... Well, I can't change the quantity or distance values of the pattern to anything other then a number. So unfortunately that seems to be limiting me to what I can do. Please let me know if I am doing something wrong or what else I can do.

Thanks,
Jr-
 
Double click the pattern in the Feature Manager.
RMB click on the QTY value, select Properties.
Type a name in the Name box & click OK.

Obviously all other dimensions can also be named the same way.

MERRY CHRISTMAS
(Unabashedly Politically Incorrect)
 
CorBlimeyLimey,

MERRY CHRISTMAS to you too! And, to all others also!

Will

 
Is it a sketch pattern or feature pattern?

If it's a sketch pattern you cannot control it because the dimensions will not show up - been like this since SW04, SW05 and SW06

Turn it into a feature pattern then you can control it.

Regards,

Scott Baugh, CSWP [pc2]
faq731-376
 
Got it to work. Thanks again everyone.

Jr-
 
Not exactly sure if you were talking about a pattern in a part file or an assembly file. You got it working whatever it was, but here is what I was talking about. Mooload didn't like my file, not sure if it was because it was zipped or what, so here is a different location:

(pattern_driven_assembly.zip)

In the assembly equation change the value of VQ to change the length of the horizontal tube.

Code:
"VQ"= 12 ' Vertical Quantity
"PD"= 5 ' Pattern Distance
"Pattern Distance@LocalLPattern1" = "PD"
"Pattern Quantity@LocalLPattern1" = "VQ"
"Length@Extrude-Thin1@Horizontal Tube.Part" = "VQ"*"PD"-"PD"+1

Flores
SW06 SP2.0
 
Would not this have been easier with a DESIGN TABLE?


Windows 2000 Professional / Microsoft Intellimouse Explorer
SolidWorks 2006 SP02.0 / SpaceBall 4000 FLX
Diet Coke with Lime / Dark Chocolate
Lava Lamp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor