I'm having trouble with my sketch pattern

Here we have answers to common questions about SolidWorks. If you want to request or contribute answers, just flag down a moderator.
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1632
x 2044

I'm having trouble with my sketch pattern

Unread post by Glenn Schroeder »

My best advice regarding sketch patterns is to not use them. Create one instance in the sketch, then pattern the feature or body. There may be cases where this isn't good advice, but I've been using SW for 30+ hours per week since 2009 and I've never run into one.

Patterning features instead of sketch entities is easier to edit, easier to control with configurations, more stable, . . . you get the idea.

Mirroring sketch entities, on the other hand, works very well, and I do it often.

Edit: Just because I haven't run into a case in my work doesn't mean there aren't any. See the responses below, especially the ones from @josh.

I will change my advice to say that in most cases patterning the feature or body is a better choice. It's like using a 3d sketch. They're more difficult to deal with than 2d sketches, especially for someone new to the software, but they have their uses. However, all too often people try to use them when two simpler 2d sketches (or sometimes even one) would be a better choice.

It boils down to don't use one unless you really need one. In most cases (but not all), you don't.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
Frank_Oostendorp
Posts: 211
Joined: Tue Mar 09, 2021 7:25 am
Answers: 2
Location: Netherlands
x 176
x 214

Re: I'm having trouble with my sketch pattern

Unread post by Frank_Oostendorp »

I use them all the time, but in a wise controlled manner. What issues do you have with sketch patterns?
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: I'm having trouble with my sketch pattern

Unread post by bnemec »

Glenn Schroeder wrote: Thu Dec 15, 2022 8:52 am My best advice regarding sketch patterns is to not use them. Create one instance in the sketch, then pattern the feature or body. There may be cases where this isn't good advice, but I've been using SW for 30+ hours per week since 2009 and I've never run into one.

Patterning features instead of sketch entities is easier to edit, easier to control with configurations, more stable, . . . you get the idea.

Mirroring sketch entities, on the other hand, works very well, and I do it often.
How about one instance in the sketch, extrude/revolve/loft/sweep as a new body, pattern the body, then Boolean back to the base body or add to a more complicated tool body that will then be cut or union with base body. I have found this method to be one of the most robust when it comes to editing future revisions. It was also no worse than other methods at dropping geometry IDs so edits done carefully were less apt to break mates and dangle drawing annotations; that was in edge, haven't been in SW long enough to figure out what things cause geometry IDs to change. I swear looking at a sketch will change them sometimes.
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1632
x 2044

Re: I'm having trouble with my sketch pattern

Unread post by Glenn Schroeder »

Frank_Oostendorp wrote: Thu Dec 15, 2022 9:05 am I use them all the time, but in a wise controlled manner. What issues do you have with sketch patterns?
It was so long ago that I don't remember, and judging from the number of posts I've seen on various forums through the years I have no desire to re-visit them. I wrote this blog post so I'd have something to link to in response to those posts in the future.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
josh
Posts: 253
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 444

Re: I'm having trouble with my sketch pattern

Unread post by josh »

If you're going to be pointing people to this advice, then there should be a tempering voice here . You should work to understand both and how they work, and use them when appropriate. I do agree that feature patterns are better most of the time, but sketch patterns have their use. Understanding both tools is objectively superior to ignoring one and using the other exclusively. You said you've never encountered a situation where sketch patterns are better... But you also said that you've never used them and don't really understand how they work. Considering that, it's unlikely that you would recognize such a situation should it occur.

If your advice is, "Step back and consider if a feature pattern would work better here" I can agree. I cannot agree with "Ignore the fact that sketch patterns exist".
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1632
x 2044

Re: I'm having trouble with my sketch pattern

Unread post by Glenn Schroeder »

josh wrote: Thu Dec 15, 2022 1:35 pm If you're going to be pointing people to this advice, then there should be a tempering voice here . You should work to understand both and how they work, and use them when appropriate. I do agree that feature patterns are better most of the time, but sketch patterns have their use. Understanding both tools is objectively superior to ignoring one and using the other exclusively. You said you've never encountered a situation where sketch patterns are better... But you also said that you've never used them and don't really understand how they work. Considering that, it's unlikely that you would recognize such a situation should it occur.

If your advice is, "Step back and consider if a feature pattern would work better here" I can agree. I cannot agree with "Ignore the fact that sketch patterns exist".
That's fair, and I will try to be more open-minded, but I still contend that most of the problems with them I see people posting about could be solved by patterning the feature instead.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: I'm having trouble with my sketch pattern

Unread post by bnemec »

josh wrote: Thu Dec 15, 2022 1:35 pm If you're going to be pointing people to this advice, then there should be a tempering voice here . You should work to understand both and how they work, and use them when appropriate. I do agree that feature patterns are better most of the time, but sketch patterns have their use. Understanding both tools is objectively superior to ignoring one and using the other exclusively. You said you've never encountered a situation where sketch patterns are better... But you also said that you've never used them and don't really understand how they work. Considering that, it's unlikely that you would recognize such a situation should it occur.

If your advice is, "Step back and consider if a feature pattern would work better here" I can agree. I cannot agree with "Ignore the fact that sketch patterns exist".
Not to help pick Glenn's point apart, because frankly I'm in the "Don't bother using sketch patterns" camp too, but do you happen to have any good examples of sketch patterns handy? Or does anyone has a link to a >good< application of sketch pattern. Not some VAR blog of "look how to use a sketch pattern" but rather, here's a case where you're better off using a pattern in the sketch than trying to pattern a feature or body and here's why" type of blog.
That probably sounds like a challenge trying to prove that there are none, but that is truly not the case. I'm assuming there are good scenarios like I described, I just can't think of any. But that's probably just because I don't know that much and my experience is mostly in one type of use case. Which would lead to this kind of a conclusion, because we all know my perception >is< reality, right?
User avatar
AlexLachance
Posts: 1994
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2157
x 1847

Re: I'm having trouble with my sketch pattern

Unread post by AlexLachance »

bnemec wrote: Thu Dec 15, 2022 2:15 pm Not to help pick Glenn's point apart, because frankly I'm in the "Don't bother using sketch patterns" camp too, but do you happen to have any good examples of sketch patterns handy? Or does anyone has a link to a >good< application of sketch pattern. Not some VAR blog of "look how to use a sketch pattern" but rather, here's a case where you're better off using a pattern in the sketch than trying to pattern a feature or body and here's why" type of blog.
That probably sounds like a challenge trying to prove that there are none, but that is truly not the case. I'm assuming there are good scenarios like I described, I just can't think of any. But that's probably just because I don't know that much and my experience is mostly in one type of use case. Which would lead to this kind of a conclusion, because we all know my perception >is< reality, right?
Here's a simple one. Switching quickly axle configurations on our trailers is done by controlling a sketch pattern from our skeleton part.
image.png
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: I'm having trouble with my sketch pattern

Unread post by bnemec »

AlexLachance wrote: Thu Dec 15, 2022 2:26 pm Here's a simple one. Switching quickly axle configurations on our trailers is done by controlling a sketch pattern from our skeleton part.

image.png
Oh yeah, SSP method. Have only used in hands on demo/training long ago.

So if I understand correctly the sketch will never be used to directly make a solid, but rather control other parts in the master assembly. Those other part files with the solids will have their own sketches (driven by this one) from which the solids are extruded, revolved, etc.? Or is this sketch with pattern only used by mates at the assembly level?
User avatar
AlexLachance
Posts: 1994
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2157
x 1847

Re: I'm having trouble with my sketch pattern

Unread post by AlexLachance »

bnemec wrote: Thu Dec 15, 2022 3:08 pm Oh yeah, SSP method. Have only used in hands on demo/training long ago.

So if I understand correctly the sketch will never be used to directly make a solid, but rather control other parts in the master assembly. Those other part files with the solids will have their own sketches (driven by this one) from which the solids are extruded, revolved, etc.? Or is this sketch with pattern only used by mates at the assembly level?
The sketch pattern is then used to do a sketch driven pattern feature in a part that will drive more pattern features later up the tree.

Another example is using the hole feature. Why would you create one hole and then pattern it rather then have a sketch pattern inside the hole feature?

I think the best reason to realize why sketch patterns have their use is that people often use sketch driven patterns and at times you can include certain patterns inside that specific sketch.

We use sketch driven patterns all the time and the biggest mistake people make is they forget that the feature that is being patterned cannot be placed over a sketch point, it needs to be placed on a line endpoint or something along that line or else the sketch point counts as an occurence. Then, they end up with a pattern that adds an extra occurence and do not understand why.

A picture is worth a thousand words I guess. Here's an example of a co-worker that created a sketch driven pattern but used a sketch point to drive the original occurence. Which is why everything shown are occurences and the parts that are patterned are hidden and excluded from the BOM. Second picture shows a sketch driven pattern done correctly.
Picture 1: Sketch driven pattern done wrong
image.png
Picture 2: Sketch driven pattern done right
image.png
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: I'm having trouble with my sketch pattern

Unread post by bnemec »

AlexLachance wrote: Thu Dec 15, 2022 3:24 pm The sketch pattern is then used to do a sketch driven pattern feature in a part that will drive more pattern features later up the tree.

Another example is using the hole feature. Why would you create one hole and then pattern it rather then have a sketch pattern inside the hole feature?

I think the best reason to realize why sketch patterns have their use is that people often use sketch driven patterns and at times you can include certain patterns inside that specific sketch.
It sounds like the patterned sketch elements are used to position features and not to define profiles or regions to extrude/revolve/etc?
Also, these sound like products that are highly configurable vs highly customized?
User avatar
AlexLachance
Posts: 1994
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2157
x 1847

Re: I'm having trouble with my sketch pattern

Unread post by AlexLachance »

bnemec wrote: Thu Dec 15, 2022 3:29 pm It sounds like the patterned sketch elements are used to position features and not to define profiles or regions to extrude/revolve/etc?
Also, these sound like products that are highly configurable vs highly customized?
Indeed. They are used to position features and sometimes the sketch contains shapes such as the circle shown that represent the size of the tire. I've added a bit more context in my previous post.
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1632
x 2044

Re: I'm having trouble with my sketch pattern

Unread post by Glenn Schroeder »

AlexLachance wrote: Thu Dec 15, 2022 3:24 pm . . . Why would you create one hole and then pattern it rather then have a sketch pattern inside the hole feature?
Can you use a sketch pattern to drive a Pattern Driven Component Pattern in an assembly? If not, that's one reason. (In the interest of full disclosure I usually use Hole Wizard features to drive those instead of a linear pattern, but not always.)
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
AlexLachance
Posts: 1994
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2157
x 1847

Re: I'm having trouble with my sketch pattern

Unread post by AlexLachance »

Glenn Schroeder wrote: Thu Dec 15, 2022 3:46 pm Can you use a sketch pattern to drive a Pattern Driven Component Pattern in an assembly? If not, that's one reason. (In the interest of full disclosure I usually use Hole Wizard features to drive those instead of a linear pattern, but not always.)
Yes, that is a derived sketch driven pattern in the images above, which means it's a sketch pattern that created a feature pattern and that has another pattern feature that uses it as a a reference.
User avatar
josh
Posts: 253
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 444

Re: I'm having trouble with my sketch pattern

Unread post by josh »

I think one struggle point of sketch patterns vs feature patterns is the fact that sketch patterns aren’t always fully locked in by default. When you make a feature pattern, and you check that box, the yellow preview immediately turns into hard, fully defined geometry. Ain’t nothing moving around. With sketch patterns, depending on which boxes you check in the property manager, the resulting sketch geometry may or may not be fully defined. As long as you know what to expect, this flexibility can be pretty powerful

Here’s a quickie example of something that I think is easier to do with a sketch pattern vs a feature pattern. Granted, it’s not a real life part, but bear with me. The design concept is four rectangular holes on a diagonal, with the outer holes always 10mm away from the edge no matter what size the plate becomes and no matter what size the holes are. I did it by making a sketch pattern and leaving all of the “constraining” boxes un-checked in the pattern property manager. The pattern direction was unconstrained. The spacing was unconstrained. The only constraint was that there are four of them, and they’re in a line. I got to add the rest of the constraints I wanted.

I’d be interested to see how one would achieve this with a feature pattern. I played around with the “up to reference” for a bit, but didn’t really see how it would be done without adding a bunch of construction geometry or something. It’s quite possible that I just missed the easy button on it. I hope you don’t see this as being argumentative… I just want everyone to have as many tools in their arsenal as possible.
Attachments
SketchPtn.SLDPRT
(79.94 KiB) Downloaded 50 times
User avatar
DanPihlaja
Posts: 748
Joined: Thu Mar 11, 2021 9:33 am
Answers: 24
Location: Traverse City, MI
x 738
x 893

Re: I'm having trouble with my sketch pattern

Unread post by DanPihlaja »

josh wrote: Thu Dec 15, 2022 6:06 pm I think one struggle point of sketch patterns vs feature patterns is the fact that sketch patterns aren’t always fully locked in by default. When you make a feature pattern, and you check that box, the yellow preview immediately turns into hard, fully defined geometry. Ain’t nothing moving around. With sketch patterns, depending on which boxes you check in the property manager, the resulting sketch geometry may or may not be fully defined. As long as you know what to expect, this flexibility can be pretty powerful

Here’s a quickie example of something that I think is easier to do with a sketch pattern vs a feature pattern. Granted, it’s not a real life part, but bear with me. The design concept is four rectangular holes on a diagonal, with the outer holes always 10mm away from the edge no matter what size the plate becomes and no matter what size the holes are. I did it by making a sketch pattern and leaving all of the “constraining” boxes un-checked in the pattern property manager. The pattern direction was unconstrained. The spacing was unconstrained. The only constraint was that there are four of them, and they’re in a line. I got to add the rest of the constraints I wanted.

I’d be interested to see how one would achieve this with a feature pattern. I played around with the “up to reference” for a bit, but didn’t really see how it would be done without adding a bunch of construction geometry or something. It’s quite possible that I just missed the easy button on it. I hope you don’t see this as being argumentative… I just want everyone to have as many tools in their arsenal as possible.

Here is sort of a way. But I agree...sketch pattern may have been better
Attachments
SketchPtn_feature.SLDPRT
(79.77 KiB) Downloaded 42 times
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
Glenn Schroeder
Posts: 1444
Joined: Mon Mar 08, 2021 11:43 am
Answers: 22
Location: southeast Texas
x 1632
x 2044

Re: I'm having trouble with my sketch pattern

Unread post by Glenn Schroeder »

josh wrote: Thu Dec 15, 2022 6:06 pm I think one struggle point of sketch patterns vs feature patterns is the fact that sketch patterns aren’t always fully locked in by default. When you make a feature pattern, and you check that box, the yellow preview immediately turns into hard, fully defined geometry. Ain’t nothing moving around. With sketch patterns, depending on which boxes you check in the property manager, the resulting sketch geometry may or may not be fully defined. As long as you know what to expect, this flexibility can be pretty powerful

Here’s a quickie example of something that I think is easier to do with a sketch pattern vs a feature pattern. Granted, it’s not a real life part, but bear with me. The design concept is four rectangular holes on a diagonal, with the outer holes always 10mm away from the edge no matter what size the plate becomes and no matter what size the holes are. I did it by making a sketch pattern and leaving all of the “constraining” boxes un-checked in the pattern property manager. The pattern direction was unconstrained. The spacing was unconstrained. The only constraint was that there are four of them, and they’re in a line. I got to add the rest of the constraints I wanted.

I’d be interested to see how one would achieve this with a feature pattern. I played around with the “up to reference” for a bit, but didn’t really see how it would be done without adding a bunch of construction geometry or something. It’s quite possible that I just missed the easy button on it. I hope you don’t see this as being argumentative… I just want everyone to have as many tools in their arsenal as possible.
I didn't see your responses as being argumentative. I'd like to think my ego isn't so fragile that it can't take criticism. What do you (and others) think of the edit?
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
josh
Posts: 253
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 444

Re: I'm having trouble with my sketch pattern

Unread post by josh »

DanPihlaja wrote: Fri Dec 16, 2022 8:53 am Here is sort of a way. But I agree...sketch pattern may have been better
I'm not sure this works... Spec is for the edge of the bottom-right and upper-left rectangular holes to be 10mm from the nearest edge, no matter what size the plate is or what size the rectangular holes are.
image.png
image.png
image.png
User avatar
DanPihlaja
Posts: 748
Joined: Thu Mar 11, 2021 9:33 am
Answers: 24
Location: Traverse City, MI
x 738
x 893

Re: I'm having trouble with my sketch pattern

Unread post by DanPihlaja »

josh wrote: Fri Dec 16, 2022 10:37 am I'm not sure this works... Spec is for the edge of the bottom-right and upper-left rectangular holes to be 10mm from the nearest edge, no matter what size the plate is or what size the rectangular holes are. image.png

image.png

image.png
Yeah. There really is no way to get it to 2 references for the 1 direction (which is what you need) as far as I know.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
josh
Posts: 253
Joined: Thu Mar 11, 2021 1:05 pm
Answers: 11
x 19
x 444

Re: I'm having trouble with my sketch pattern

Unread post by josh »

DanPihlaja wrote: Fri Dec 16, 2022 11:31 am Yeah. There really is no way to get it to 2 references for the 1 direction (which is what you need) as far as I know.
One thing I thought of was to use a 2-direction pattern and then select the un-needed instances to skip, since that would allow you two "up to" references. But I still didn't see how to make the patterned instances stay 10mm from the edge, no matter how big the rectangular hole is.
User avatar
bnemec
Posts: 1854
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2439
x 1330

Re: I'm having trouble with my sketch pattern

Unread post by bnemec »

DanPihlaja wrote: Fri Dec 16, 2022 11:31 am Yeah. There really is no way to get it to 2 references for the 1 direction (which is what you need) as far as I know.
Off the top of my head, in the past I would just have a line in the sketch to define the pattern direction. Then still pattern the feature but use the sketch to just define the direction, not all the elements.
User avatar
zxys001
Posts: 1052
Joined: Fri Apr 02, 2021 10:08 am
Answers: 4
Location: Scotts Valley, Ca.
x 2267
x 969
Contact:

Re: I'm having trouble with my sketch pattern

Unread post by zxys001 »

..more pattern! UU
Attachments
2022-12-16 09 41 20.png
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 441
x 235

Re: I'm having trouble with my sketch pattern

Unread post by berg_lauritz »

bnemec wrote: Thu Dec 15, 2022 2:15 pm Not to help pick Glenn's point apart, because frankly I'm in the "Don't bother using sketch patterns" camp too, but do you happen to have any good examples of sketch patterns handy? Or does anyone has a link to a >good< application of sketch pattern. Not some VAR blog of "look how to use a sketch pattern" but rather, here's a case where you're better off using a pattern in the sketch than trying to pattern a feature or body and here's why" type of blog.
That probably sounds like a challenge trying to prove that there are none, but that is truly not the case. I'm assuming there are good scenarios like I described, I just can't think of any. But that's probably just because I don't know that much and my experience is mostly in one type of use case. Which would lead to this kind of a conclusion, because we all know my perception >is< reality, right?
I regularly use sketch patterns obviously with the hole wizard which is amazing!

A while ago @Dwight posted this amazing insight regarding sketch patterns which made me realize how little I knew about them:
How to Use Sketch Arrays Effectively

I think everybody needs to watch this.

Edit: I just saw that his video is not available anymore. That is too bad. I will try to make a .gif and throw it into this thread today.
Edit2:
So here is something really nice I learned from the video:
  • Instead of mirroring it is often beneficial (depending on the design intent) to use a linear pattern instead
  • yes, it is slightly more cumbersome than a feature pattern - but if you want to use hole wizard properly it is very beneficial to know
  • look at the gif: this way it is way easier to change the pattern to uneven numbers & still retain most relations!
  • because it's a linear pattern you can also easily suppress/unsuppress instances while editing it
Click me, I'm a gif!
adjust linear pattern.gif
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 441
x 235

Re: I'm having trouble with my sketch pattern

Unread post by berg_lauritz »

I added a gif. There was way more in that Video from @Dwight . If anybody remembers something, feel free to join in.
User avatar
mp3-250
Posts: 540
Joined: Tue Sep 28, 2021 4:09 am
Answers: 18
Location: Japan
x 601
x 282

Re: I'm having trouble with my sketch pattern

Unread post by mp3-250 »

Just to add, performance wise a sketch pattern is a order of magnitude slower than a feature pattern for a cut.
I had a part file that required 9 seconds rebuild a cut sketch that included a pattern. when simplifief and swapped the sketch for a cut feature pattern it required less than 0.1 seconds. 2d drawing views were also slowed down in a noticeable way.
User avatar
Bryan O
Posts: 82
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 12
x 15

Re: I'm having trouble with my sketch pattern

Unread post by Bryan O »

I know this is an old post but I thought I would share this.
I have common features that I use a lot that I wanted configurable
A co-worker started using Linear Pattern > Up to reference and I have found it very helpful. (Thanks Otto. Hope you see this)
I added to his use of Linear Pattern and added reference geometry to make things symmetrical and configurable.
Attached is an example of features that I made into Library Features that have greatly reduced design times.
Additionally, because I've shared it with others in our organization, these features have become more standardized.
Attachments
CAM AND DOWEL (SINGLE EDGE).SLDPRT
(107.17 KiB) Downloaded 21 times
Post Reply