cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

UDF with Pro/program on different features based on same UDF

SOLVED
Participant

UDF with Pro/program on different features based on same UDF

Hello everybody,

I have created an UDF for the DIN 6885 key way. I have also through the pro/program added the possibility to have a prompt with as a question to select one of different length for the key way.
'Each diameter of shaft has different standardized length of key ways.'

I have created a shaft with multiple shaft segments with different diameters. I want to add the UDF of the keyway on different shaft segments with different diameters.How can I add a second and a third, etc. UDF on a shaft segment with a different diameter then the first shaft segment where I already put an UDF.

If I do this and regenerate the model,and fill in the prompt that is given for the key way length, all the key ways based on the same UDF change dimensions to the last value.

 

In order to be able to use pro/program I needed to use Subordinate instead of Standalone.

Greetings
Mathieu 

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: UDF with Pro/program on different features based on same UDF

Hi @jbob,

I just managed to make it work without family table. It is giving me a unique name for each new UDF instance, and when I need to enter the length of the Key way, I need to fill in the value of the first Key way, press enter and fill in the value for the length of the second Key Way. Here attached I have added the part for in the Relations, and the part for in the pro/program.

9 REPLIES 9

Re: UDF with Pro/program on different features based on same UDF

After the placement of each UDF is completed try this. I think that subordinate UDF are dependent when placed, if you change them to independent then the dims should not update when placing the next UDF in the same model.

 

To Change the Group Type
Select a dependent UDF group in the Model Tree, right-click, and choose Disassociate from the shortcut menu. The UDF group becomes independent of changes to the UDF file.
 
Obviously once independent it is no longer a child of the UDF source model in the library.  Independent UDF groups cannot be made dependent.

Re: UDF with Pro/program on different features based on same UDF

Hi @tbraxton ,

When I right click on the Group, I don't see Disassociate. But even still, I don't think it will work.
In order to make the recognizing of the diameter work, I had to make, in a sketch, a  reference dimension on an line that was constraint by the edge of the circle forming the cylinder. That dimension I gave it a name, and that name was used to check if the diameter was between 2 given values.
What I think could work, but I don't know if it is possible (I tried to search for it, but didn't find it), is to be able in the same pro/program: (2 possible way of working)
1. To verify if items are existing with dimensions that have the same name, and rename those dimensions with a name based on the diameter where it sit.
2. When the prompts to fill in the length of key ways are passed, that new prompts appear to rename the dimensions that were just used. 

Re: UDF with Pro/program on different features based on same UDF

Try using the command pick from the UI.

 

Model->Operations->UDF Operations->Disassociate

Re: UDF with Pro/program on different features based on same UDF

Hi @tbraxton,

Thank you for the reply, however that option is greyed out. I have tried selecting the group, and still it is greyed out. So I cannot use it.

Re: UDF with Pro/program on different features based on same UDF

Have you tried creating a family table UDF? I have had better luck creating UDF'S this way. In your case the user would just need to select what diameter shaft they had and the keyway size and length would be built into that instance of the UDF.

Re: UDF with Pro/program on different features based on same UDF

Hi @jbob ,

 

Thank you for replying, however the problem that I face is: For each range of diameter, the key way has different length, (see following link http://www.gsmachining.com.img.800cdn.com/UploadFiles/2014-04/admin365/2014040417132264537.jpg).
And what I want to achieve is, instead of each time searching up the standard value of key ways for a certain diameter, that I can automatically add the shape, and I only need to choose from a selection of length, specific for that diameter. I am able to do this with UDF and Pro/program, but the problem occurs when adding multiple key ways on different diameters. Creo does not recognise the second UDF as a separate feature, and updates the dimensions of the previously added key way according to the newly added UDF feature.

Re: UDF with Pro/program on different features based on same UDF

A family table UDF can handle what you are trying to do. The table you create would just be of the variables required for this feature. Variables would be shaft size, key size, key length and position on the shaft. Name the instance so the user can see the range of shaft diameters along with key length. Once you add the first instance into the UDF you can make an excel spreadsheet and create as many instance as needed, then read this back into the UDF. Much easier to create in excel than the UDF table. The table may be long but creating in excel is quick. The other nice feature with family table UDF's is you can swap on instance for another just like it was a real family table. This way is the design changes or they select the wrong size they can swap it out as long as the UDF remains grouped.

Re: UDF with Pro/program on different features based on same UDF

Take a look at this article. If you have placed a UDF and Make features dependent on dimension of UDF then you should be able to disassociate it. If you have done all of these and the UDF ops items are still greyed out then you should give open a call with PTC tech support.

 

https://www.ptc.com/en/support/article/cs185939

Highlighted

Re: UDF with Pro/program on different features based on same UDF

Hi @jbob,

I just managed to make it work without family table. It is giving me a unique name for each new UDF instance, and when I need to enter the length of the Key way, I need to fill in the value of the first Key way, press enter and fill in the value for the length of the second Key Way. Here attached I have added the part for in the Relations, and the part for in the pro/program.