Skip to main content

An NXOpen helper package to reuse code in scripts, in order to avoid having all the underlying code in the journals itself.

Project description

nxopentse (by theScriptingEngineer)

This package contains functions which you can use in your own scripts, so you don't have to write everything from scratch. pip install nxopentse

Then in your script add import nxopentse

Simple example:

import NXOpen
import nxopentse as tse


# next line not required for nxopen, but every NXOpen journal needs an NXOpen.Session object
the_session: NXOpen.Session = NXOpen.Session.GetSession()


def main():
    tse.tools.hello()


if __name__ == '__main__':
    main()

nxopen.cad

CAD functionality

nxopan.cae

CAE functionality

nxopen.tools

General tools which can be used in different NX applications.

NX versions

SC2212:

development

There is a build pipeline in Github which automatically publishes to test.pypi and pypi (the latter only on tagged commits) So there is no need to manually build an upload to either test.pypi or pypi

tagging

git tag -a v0.0.1a1 -m "pre-release - can be used. Partially tested. Will still contain lots of bugs"

NOTE: Tags don't get pushed automatically. Use git push origin --tags

build the package manually (for reference only)

install locally by navigating to folder and then pip install .

uninstall: pip uninstall nxopentse

update: uninstall and reinstall

required installations:

python -m pip install --upgrade twine
pip install build

Building the package:

python -m build

manually publish to test.pypi:

py -m twine upload --repository testpypi dist/*

manually publish to pypi:

py -m twine upload dist/*

tag

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nxopentse-0.0.1a3.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

nxopentse-0.0.1a3-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file nxopentse-0.0.1a3.tar.gz.

File metadata

  • Download URL: nxopentse-0.0.1a3.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for nxopentse-0.0.1a3.tar.gz
Algorithm Hash digest
SHA256 948745935aa9f15dc8fdd1aacd1b3316b99d492e57acd062b3f92fa45a7d87e3
MD5 4cbad8ed913d4cb9f74c675d91047f99
BLAKE2b-256 893e3d2994f6b2e97165d43e75ac1b584dea8af22614a52fd79d08bc2b1e1199

See more details on using hashes here.

File details

Details for the file nxopentse-0.0.1a3-py3-none-any.whl.

File metadata

  • Download URL: nxopentse-0.0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 35.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.6

File hashes

Hashes for nxopentse-0.0.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c9c33f4724da246a8597095474a9dae64cd85962946f31b85dbe772c6709423
MD5 c9f8f832db3e9aa9f1dd073077ce4243
BLAKE2b-256 f1d80eed479b6b83613429fa84999faf774e8ebfd6fa402f02f05cef993e9a1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page