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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

UDF conundrum...

ptc-356958
1-Visitor

UDF conundrum...

Hi all,

I am having an issue with some UDF's I recently made and don't understand the what the issue is. We have hole udf's that contain relations for 1) being able to change the size once placed and 2) placing notes as to the operations tomachine the hole in the part. My issue is: there are several relations (NT and NT3 and GT and GT2 specifically) that mysteriously vanish from the UDF when it is placed. I have redone them twice now and I thought I would pose the question her before resuming to beat my head against the wall.

Specifically: the relations in a point for a hole:

IF SIZE=="GOOD_SIZE"

NT=DS+DRILL_STRING+" THRU; "

NT2=TAP+TAP_TYPE+" THRU "

GT="|"+TT+"|"+DS+" "+GTOL+" "

NT3=DS+EDRILL_STRING+" THRU; "

NT4=TAP+TAP_TYPE+" THRU "

GT2="|"+TT+"|"+DS+" "+ETOL+" "+RFS

ENDIF

IF SIZE=="BAD_SIZE"

NT="SIZE NOT VALID"

NT2=", PLEASE MODIFY"

GT="|"+TT+"|"+DS+" "+"0,0"+" "

ENDIF

are reduced to:

IF SIZE=="GOOD_SIZE"

NT2=TAP+TAP_TYPE+" THRU "

NT4=TAP+TAP_TYPE+" THRU "

ENDIF

IF SIZE=="BAD_SIZE"

NT="SIZE NOT VALID"

NT2=", PLEASE MODIFY"

GT="|"+TT+"|"+DS+" "+"0,0"+" "

ENDIF

in the UDF.

The relations are all good in the root part so I'm unsure why they would dissappear in the UDF.

Any Clues?

Note the files comtain the complete set of parameters and relations attached


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.
3 REPLIES 3

The UDF cannot have references to parameters or dimensions that are not
defined as elements of the features included within. Those relations and
parameters need to be defined at the features level, instead of the part
root level.

To create feature based relations, open the relations dialog, look for the
pull down that says "part" (assuming this is a part model), then change it
to feature, you will be prompted to select the feature the relations will be
assigned to. You may need to split your relations between the features that
will be in the UDF, in order to get them to regenerate at the correct moment
during regeneration.

--Glenn

Interestingly enough, there are no relations or parameters tied to the part, only the included features.

This ain't my first rodeo...

Thanks to Robert Hill, who saw that the actual hole in the udf did not match any of the default family table values driven by the UDF. After reseting the hole in the part to a matching value, all of the parameters and relations showed up.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags