Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 783

How can I reference a child in an assembly?

$
0
0

If I want to reference a child of an assembly as an object so that I can save it specifically instead of the top level component how would I do that.

This is how I would do it with a non assembly.

Public dispPart as NXOpen.Part = theSession.Parts.Display
dispPart = thesession.parts.display
part1 = dispPart <code>
 
But I want to reference a child in the assembly specifically so I can save that child as a new part.
 
<code> For Each child As Component In comp.GetChildren()
            '*** insert code to process component or subassembly
				fileNameNoExt = Child.DisplayName<code>
 
This wont be the correct code but I want something like
 
<code> part1 = child<code>
 
Thanks for all the help i know i've been asking a lot of questions lately.

Viewing all articles
Browse latest Browse all 783

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>