So in NX 12 (and I guess later releases) sys.argv[0] is the filename and sys.argv[1] is the argument string, and in earlier versions sys.argv[0] is the argument string.
Thanks @gelsonnicoletto. For me sys.argv[0] is the filename, but works perfectly with sys.argv[1].
import sys
import NXOpen
import NXOpen.UF
def main(arg):
"""Takes a string argument, and shows it in a message box."""
uf_session = NXOpen.UF.UFSession.GetUFSession()
message = "The...
A Pattern Geometry will only include the copies and not the original object (and it does not make a copy of the original bodies). At least from NX 11 this is the standard behavior.
If you would like to use all bodies for some new feature (so the 1 original, and 3 patterned copies, in total 4)...
In the journal manager of NX it is possible enter arguments, which in principle can be passed to the journal.
In a Python journal typically a main function is called. Since the function call is part of the script, I am not sure how NX can pass anything to it. Is there any special variable for...