Skip to main content
1-Visitor
January 30, 2012
Question

Change Family Member Instancename

  • January 30, 2012
  • 2 replies
  • 1152 views

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

10-Marble
January 31, 2012
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
1-Visitor
February 23, 2012

Ah, the Rename did the trick.


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


thanks,


\Bjarne