Skip to main content
1-Visitor
August 1, 2014
Solved

Pattern relation question

  • August 1, 2014
  • 8 replies
  • 5640 views

Trying to create my first patern relation and having a bit of a problem. I want to pattern a hole so that there are 12 instances total. The pattern will only be in one direction which is an angle. The first hole patterned I want it to be 25 degrees away from the first hole. The next 9 holes I want to be 30 degrees away from the 1st patterned hole. Then the last hole I want it to be 25 degrees away from the last hole. Please see the picture attached.

Now I know I could define each hole at a certain angle but I was wanting to do it a little more simpler. Below is what I have. But I don't think I fully understand how creo evaulates the relation which is why it isn't working.

increment1 = 0

if idx1 == 1 (first patterned hole, 25 degrees away from original hole)

memb_v = 25

endif

if idx1 >= 2 | idx1 <= 10 (patterned holes 2 through 10, 30 degress from each other)

memb_v = 30 + increment1

increment1 = 30 + increment1

endif

if idx1 == 11 (last hole patterened, 25 degrees away from last hole patterened)

memb_v = 25 - 30 + increment1

endif

So what I'm trying to do is use the "increment1" to keep increasing the angle by 30 degrees for patterened holes 2 though 10. And then the last hole only moves 25 degrees from the 2nd to last patterned hole.

"increment1" isn't defined as a paramenter. Not sure if this is necessary or not.

Any help is greatly appreciated!


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by psobejko

pattern_relation_example.jpg

Hi Wayne,

The relation above does what you are asking.

In the above example, the dimension that drives the pattern is d4 (20°). The pattern relation for it specifies that for the 1st and 11th instance, the increment (memb_i) should be 25°, and 30° for the others.

You were using the right logic but the system does not allow you to implement it - because it will not keep track of your increment1 variable. So use the prescribed memb_i variable OR expressions such as memb_v = lead_v + idx1*30 to achieve the kind of automation you seek.

Regards,

Paul

8 replies

17-Peridot
August 1, 2014

Atb this point, I settle for point patterns. I can sketch my desired results and let the datum points in the sketch drive the pattern. The only problem is trying to get a bolt circle display on the drawing. For that, I have to add in what -is- common in 2 separate patterns. There is no easy way to force a P.D. axis set in the drawing (circular axis).

1-Visitor
August 2, 2014

Using datum points does make sense in this instance. Still would be nice to know how to make a complicated relation for this though.

17-Peridot
August 2, 2014

The alternative is a pattern table. I am hoping this will solve the circular P.D. axis in the drawing.

I'll see what I can come up with.