Cancel
Showing results for 
Search instead for 
Did you mean: 

Part Family Update

Pioneer
Pioneer

I am attempting to replicate the Assembly Part Family Update functionality (Assemblies -> Components -> Part Family Update) through VB.Net and I have found the the NXOpen.UF.UFAssem.InstanceIntent object in the Visual Studio Object Browser but have yet to find any examples showing how to use it. Does anyone have any suggestions?

 

Regards,

Scott

8 REPLIES

Re: Part Family Update

Honored Contributor
Honored Contributor

What version of NX?

Re: Part Family Update

Pioneer
Pioneer

Sorry about that. We are using NX 8.5.3.3

Re: Part Family Update

Honored Contributor
Honored Contributor

So, you are looking to update the part family members?

 

If so, I'm not sure NXOpen.UF.UFAssem.InstanceIntent is what you need. NXOpen.UF.Part.UpdateFamilyInstance seems more appropriate...

 

If the family members do not exist yet, the .GetPartFamilyManager.EstablishMember method might come in handy.

Re: Part Family Update

Pioneer
Pioneer

It seems confusing but the instances are already created and I am replacing one with another in an assembly. The assembly then needs to be updated to reflect the new component. In an NX assembly this would be done by selecting Assemblies -> Components -> Part Family Update but I am wanting to do this programmatically.

 

asm.jpg

Re: Part Family Update

Esteemed Contributor
Esteemed Contributor

Have you already tried to record a journal from the manual action?

Recording a journal is the easiest way to get the methods involved to do it programmatically.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Part Family Update

Pioneer
Pioneer

Yes I tried that first and unfortunately it appears that this function is not recordable. Cat Sad

Re: Part Family Update

Valued Contributor
Valued Contributor

Just a quick response.

 

I'm not sure if I got the topic.

You try to update a component wich is a family member and has instance intents to a matching member?

 

You can use

 

NXOpen.UF.UFSession.GetUFSession().Assem.EvalInstanceIntent(
 ref Instance,
 false,
 out Status);

 

 to obtain informations and for an update if you set parameter 2 TRUE.

(see documentation for details)

 

Attached you will find a static method I use for this.

Unfortunatelly it's commented in german and has a lot of our company specific stuff in it.
But it should give an idea.

 

Greetings

Herbert Macho
EBNER Industrieofenbau
AUSTRIA

NX10.0.3.5 (TeamCenter10 and Native)

Re: Part Family Update

Experimenter
Experimenter
Hi Herbert,
I also need to launch part family update in vb.
I have converted the code to vb, but I was unable to use it because it seems that your are using a specific class Smiley Sad
Could you help me ?
Thanks in advance.
Regards
Didier