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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Add a relation to an assembly feature

sharon.barber
1-Newbie

Add a relation to an assembly feature

I am trying to add a relation to a datum feature on an assembly (the coordinate system). The same algorithm works when adding the relation to a feature on a part (also the coordinate system). The function ProRelsetRelationsSet returns a general error. I am opened to any suggestions. The code segment is shown below with additional comments added.

Sharon

/*******************************************************
comment 1 - this code is written to add a relation to a part, and assembly or a feature on either. The part and assembly directly translate to a modelitem, but the feature is initialized as a modelitem using the ID which was stored earlier in the code.


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.
0 REPLIES 0
Top Tags