Submitted by ankum16 on Tue, 10/01/2013 - 22:46
Forums:
Hi all,
I am trying to read a wavelink coordinateSystem.
UFWave.LinkedFeatureInfo info;
theUfSession.Wave.AskLinkedFeatureInfo(waveLinkCoordinateSystem1.Tag, out info);
I am using below method to read LinkedFeatureInfo. but it just tells about source_part_name and I am looking for the Component instead of name. Somehow I am able to find OwningPart but Owning component is NULL.
My requirement is to SetWorkComponent(), after finding this owningComponent. If I use just SetWork( PART) then it does not make correct component as workComponent and picks up some other component with same instance.

re: reading wave link
You are working in an assembly and you have a reference to a wave-linked coordinate system, now you want to find the component that owns the source csys and set that as the work part. Is this correct?
re: wave link
Can you provide a small example file? Email it to: info@nxjournaling.com.
re: wave links
Here's my first stab at it. There MUST be an easier way; let me know how it goes...
Reading a wavelink which is already created
I had already tried something like - theUfSession.Assem.AskOccsOfPart(Tag.Null, partTag, occTags); but occTags is coming as Null.
This issue got solved using two methods and I think that is the only way to solve this.
theUFSession.Wave.AskLinkXform(theFeature.Tag, out xform);
theUFSession.So.AskAssyCtxtPartOcc()
This way I got the component instead of part.
Thanks all.
Regards,
Ankita
~ Ankita
Life is beautiful. :)
re: reading wave link
That sounds like a better solution than what I posted.
Thanks for posting back with the info!
Re: Wavelink
Can you post your code?
NX 8.5
NX 9.0
Trying to accomplish something similar
I believe I'm trying to do the same thing. I have some components that contains many features, some linked, some not linked. For the linked features I'd like to get the owning component of the other side of the link. So for example, I have a component with some drilled false bodies, these false bodies are wave linked to bodies within another component, this is the component that I want to eventually get.
Let me know if that was a confusing description.
Here's where I am now:
This is the error I'm receiving:
So from what I can tell, it's breaking because I am not passing in a linked_feature. I tried the method UF_GDT_is_linked_feature but that returned a similar error.
NX 8.5
NX 9.0
re: find linked features
You should only pass wave linked features to those functions.
The following code shows one way to find linked features:
Thanks you!
Really appreciate the help. Thanks.
NX 8.5
NX 9.0
Arguments to AskAssyCtxtPartOcc
Hi,
I have an idealized part with wavelink bodies that were created from components in the master part. I'm trying to find the components used to create the wavelinks, but I can only find the part prototype. I'm trying to use the solution in this post, using methods: theUFSession.Wave.AskLinkXform(theFeature.Tag, out xform) and theUFSession.So.AskAssyCtxtPartOcc(), but I don't understand the 2nd argument to pass to AskAssyCtxtPartOcc. Can someone explain what the to_part_occ should be and how to retrieve it?
Thanks
re: AskAssyCtxtPartOcc
The second argument, "to_part_occ", should be the tag of the component that owns the linked feature.
Below is a short journal illustrating the use of AskAssyCtxtPartOcc.
To use it, create a small assembly: add a part as a component - specify a number of duplicates (spread them out - use the "scatter" option). Add a new empty part as a component and create a wave linked mirror body feature in the new part; pick any component instance you like to be the parent of the mirror body. Give the "parent component" a unique name, this will help when testing the journal (RMB the component, properties, general, enter name, OK). Run the journal with the assembly as the displayed/work part. The journal will process all the components and report the parent component of the linked mirror body. Parts must be fully loaded for the journal to work, journal only reports the first linked mirror body found in each component. The same strategy will work for other linked features, this journal only looks specifically for linked mirror bodies.
Many thanks.
Many thanks.
Finding the Parent Part of a feature
Hello,
I'm attempting to find the parent part name of a feature on the current work part. This feature is wavelinked to a part file that is not present in this sub-assembly. I'm wondering how to obtain this parent part name string, I believe this is possible because NX can pull up the information while we try to edit the feature.
Please reference this photo to help understand what we're trying to do.
http://imgur.com/wPLaExH
Thank you
NX 8.5
NX 9.0
re: parent of wave link feature
The code below should do what you want. I was working on it for an article on wave features, but got pulled away. The code could use a bit more testing and polish; post back or email me (info@nxjournaling.com) if you run into any issues. The code was written/tested on NX 9, but I don't think it uses any functionality exclusive to NX 9; it should work on 8.5.
Thanks
Thanks, the Journal worked great!
NX 8.5
NX 9.0