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

Change Family Member Instancename

bmortensen
2-Guest

Change Family Member Instancename

Is there any way to change the instance name of family table member using Jlink?


This is easy in the GUI, but I cannot find a way with JLink.


I have tried to use the SetCell on the FamilyMember class. It just doesn't have a column for the instance name


I use the GetInstanceName of the ModelDescriptor to get the instance name. And I can actually set it on the ModelDesctiptor, but I cannot/don't know howto apply the Descripter to the Model.



\Bjarne


2 REPLIES 2
bfrandsen
6-Contributor
(To:bmortensen)

Take a look at pfcModel.Rename() .
Interactively you must also use Rename and not just editing the family table. This can bring you in deep trouble when working with any PDM solution.

Best Regards,
Bjarne Frandsen

Ah, the Rename did the trick.


For some reason i thought it only worked for files/generic models


thanks,


\Bjarne

Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration