Skip to main content
1-Visitor
Jan 30, 2012 2:38 PM UTC
Question

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

10-Marble
Jan 31, 2012 7:40 AM UTC
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
Translate
1-Visitor
Feb 23, 2012 11:48 AM UTC

Ah, the Rename did the trick.


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


thanks,


\Bjarne

Translate