When writing code, it is very common to make use of code that someone else has written. Assuming that I have an NX .net author license, I can open my code project and add a reference to other code such as Excel or windows media player and make use of the functionality it provides. After I add a reference, I can add an "imports" statement to my code to make those external objects easier to access. For instance, I often make use of
List objects in my code. The list object is provided by the .net framework; in the .net library hierarchy, it is a
System.Collections.Generic.List object. If my code imports the System namespace, I would declare a new list like so:
Code:
Imports System
dim myList as New Collections.Generic.List(of String)
However, I can shorten that if I import the System.Collections.Generic namespace:
Code:
Imports System
Imports System.Collections.Generic
dim myList as New List(of String)
The imports statement does not create the reference, it simply gives you an alias to make the code easier to read and write. If you do not have an NX author license and you are writing journals, NX will automatically link you to some of the .net libraries. You will be limited to those libraries and cannot add references to others. The ones you have access to can be found
here (near the bottom of the page).
If you are looking specifically for NXOpen functionality, check out the .net reference guide. It lists all the objects and functions that the NXOpen API gives you access to. However, there is no single, comprehensive list of ALL other code that you could possibly link to (it would be huge, and much would not be relevant to use with NX).
Here is a few links about references and the imports statement:
www.nxjournaling.com