Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. onodip

    Passing arguments to NX Open python journal from Journal Manager

    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.
  2. onodip

    Passing arguments to NX Open python journal from Journal Manager

    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...
  3. onodip

    Pattern Geometry

    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)...
  4. onodip

    Passing arguments to NX Open python journal from Journal Manager

    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...

Part and Inventory Search