CNSZU
Mechanical
- Sep 2, 2005
- 318
Hi,
I'm writing a program to allow the user to select a new source assembly which will automatically re-link all wave links in a part to the new source assembly. That way the user doesn't have to manually re-link every wave link feature when parts/assemblies are copied, renamed etc.
To get the current source part of a wave link feature, I use this:
but out_part is the prototype part. What if there are many instances of the same prototype part, how can I find out which part instance the wave link feature is linking to?
I've tried this:
but it returns null.
NX10.0 Win8.1 64bit i7-3770K 16GB Quadro2000
I'm writing a program to allow the user to select a new source assembly which will automatically re-link all wave links in a part to the new source assembly. That way the user doesn't have to manually re-link every wave link feature when parts/assemblies are copied, renamed etc.
To get the current source part of a wave link feature, I use this:
Code:
ufs.Wave.AskLinkSource(in_linkedfeature, in_allowload, out_sourceentity)
Dim outObject As NXObject = NXObjectManager.Get(out_sourceentity)
out_part = outObject.OwningPart
but out_part is the prototype part. What if there are many instances of the same prototype part, how can I find out which part instance the wave link feature is linking to?
I've tried this:
Code:
Dim partocc As Tag = ufs.Assem.AskPartOccurrence(out_sourceentity)
but it returns null.
NX10.0 Win8.1 64bit i7-3770K 16GB Quadro2000