Showing results for 
Search instead for 
Did you mean: 

NX Open how to get a list of open documents(Parts)

Valued Contributor
Valued Contributor

Hello! How can I get the list of all open documents?

The lines below give me the list of all parts in all loaded documents:

foreach (Part pa in theSession.Parts)

However I just need a list of all open documents, not all parts in them.


Open in nx assembly C:\Full.prt containing parts(C:\part1.prt, C:\part2.prt, C:\part3.prt) and part : C:\part2.prt

Now I have the follows: C:\Full.prt, C:\part1.prt, C:\part2.prt, C:\part3.prt
How can I get the following list: C:\Full.prt, C:\part2.prt?