Skip to main content
16-Pearl
March 7, 2020
Question

UDF for holes, with reference pattern

  • March 7, 2020
  • 9 replies
  • 4957 views

I want to make an UDF, but i’m not finding a way to do it.

 

I have two parts, one in the top, other in the bottom. In the top the part has a hole feature created, and propagated with pattern. In the bottom part, i have created an axis system centered in one of the holes, patterned (with reference), and then created a hole centered in the previous axis system and patterned as well with reference.

 

 

Now I want to make an UDF, to generate all the holes in the bottom part. But as this holes were created with reference with top part, I’m unable to create it.

 

When I’m in the step to select the features, that belong to UDF, it appears the following message:

 

“Including pattern (feat id 6420) by reference must include its reference (feat id 6061, model 3330005-102-001) or entire reference model.”

 

My question is, how can i select this features, and at the same time, includ its reference?

 

At the end in the UDF, I only want to select the cylindrical surface of one hole of the top part, select the top surface of the top plane, and the result, os 4 holes generated.

 

Any tips?

9 replies

tbraxton
22-Sapphire II
March 7, 2020

Your approach has issues with parent child relationships as you have discovered. Is a UDF the only acceptable method for you to manage this?

 

I would suggest the use of reference patterns and an external copy geometry feature. Pattern the hole centers of the top part using an array of datum points. Use this pattern to place the holes in both the top and bottom parts.

 

You can use a copy geometry of the pattern leader (only copy the pattern leader and nothing else in the copy geom feature) from the top part to the bottom part and then you can pattern by reference the hole in the bottom and they will stay aligned to the top. You would then add the hole to the bottom and pattern by reference.

T_F16-PearlAuthor
16-Pearl
March 7, 2020
I would like to create the udf withe the reference pattern inside, because this will be used several times per hour. So if this udf can have inside the pattern, I will be a lot more productive, I won't have the need to make the pattern manually.
tbraxton
22-Sapphire II
March 7, 2020

I would benefit from understanding your design intent completely to narrow done some options. Do you need a stand alone or subordinate UDF? Does the hole spacing change each time you place it? What method would you use to copy the location of the pattern leader from the top plate to the bottom plate? Would it be done in assembly mode or part mode?

 

You can not include a copy geom in UDF creation so that is out. You have to establish a method of mapping the leader of the pattern in the top to the bottom plate in a manner that can be used in a UDF creation. The only thing that comes to mind for this is to use relations to control the position in the bottom plate based on values set in the top plate. 

I would use a layout to do this if using relations. You would set the values in the layout and then use the layout to drive the position and spacing of both hole sets in top and bottom parts.

 

Have you considered creating a reference part with the pattern and then use copy paste to place the hole pattern in a given part. I use paste special to do similar operations quickly without UDF creation.