Skip to content

Commit 3e3507f

Browse files
authored
Add files via upload
1 parent e69d1eb commit 3e3507f

3 files changed

Lines changed: 135 additions & 0 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Fix: `ModuleNotFoundError: No module named NXOpen`
2+
3+
## Cause
4+
5+
The journal was started with ordinary Windows Python, VS Code, IDLE, or another external interpreter. `NXOpen` is loaded by Siemens NX; it is not a normal pip dependency.
6+
7+
## Recommended fix
8+
9+
1. Extract the package to a short local path such as `C:\ASTERION\native-builder`.
10+
2. Double-click `RUN_ASTERION_BUILDER.bat`.
11+
3. The launcher searches for Siemens NX and executes the journal using `run_journal.exe`.
12+
4. Review `native_output\NX_NATIVE\ASTERION_NX_BUILD_LOG.csv`.
13+
14+
## When NX is not detected
15+
16+
Open Command Prompt in the package folder and provide your actual NXBIN folder:
17+
18+
```bat
19+
RUN_ASTERION_BUILDER.bat -NxBin "C:\Program Files\Siemens\NX2306\NXBIN"
20+
```
21+
22+
Change `NX2306` to your installed release. The folder must contain `run_journal.exe` and normally `ugraf.exe`.
23+
24+
## GUI fallback
25+
26+
```powershell
27+
powershell -ExecutionPolicy Bypass -File .\nxopen\run_asterion_builder.ps1 `
28+
-NxBin "C:\Program Files\Siemens\NX2306\NXBIN" -Gui
29+
```
30+
31+
Then, inside NX, choose **Developer/Tools > Journal > Play** and select:
32+
33+
```text
34+
nxopen\asterion_nx_native_builder.py
35+
```
36+
37+
## Do not do this
38+
39+
- Do not run `python asterion_nx_native_builder.py` directly.
40+
- Do not use VS Code's **Run Python File** button.
41+
- Do not install the unrelated PyPI package called `nxopen`; it is not Siemens NXOpen.
42+
43+
## If batch mode still fails
44+
45+
Run the same command from the **Siemens NX Command Prompt**, which initializes the NX environment before invoking `run_journal.exe`. The GUI fallback is also valid.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# NX native output review checklist
2+
3+
## Parts
4+
5+
- [ ] Every `.prt` opens without a missing-reference warning.
6+
- [ ] Units are millimetres.
7+
- [ ] Imported facet/convergent bodies are visible.
8+
- [ ] Geometry extents match the source model.
9+
- [ ] No component is accidentally scaled by 1,000 or 0.001.
10+
- [ ] Critical bodies pass Examine Geometry or the appropriate facet-body check.
11+
12+
## Assembly
13+
14+
- [ ] `AST-0000-ASTERION-FCTA-1-ASSY.prt` opens all components.
15+
- [ ] Eleven subsystem components appear in the Assembly Navigator.
16+
- [ ] All components are placed at the absolute origin.
17+
- [ ] The full vehicle matches the Version 0.4/1.0 reference renders.
18+
- [ ] Solar span, ring diameter and vehicle centreline are consistent.
19+
- [ ] Reference sets and component names are suitable for your NX release.
20+
21+
## Drawings
22+
23+
- [ ] Drawing files use the `-DRW.prt` suffix.
24+
- [ ] Each drawing contains its linked master-model component.
25+
- [ ] A3 sheet exists.
26+
- [ ] Front, top and right views are present.
27+
- [ ] View scale is appropriate.
28+
- [ ] Add title block, border, projection symbol, units, revision and author.
29+
- [ ] Add dimensions and GD&T only from controlled engineering definitions—not by measuring a coarse STL blindly.
30+
31+
## Portfolio evidence
32+
33+
- [ ] Capture NX Part Navigator screenshots.
34+
- [ ] Capture Assembly Navigator screenshot.
35+
- [ ] Capture drawing sheets.
36+
- [ ] Record NX version and licence configuration.
37+
- [ ] Commit only files that your licence permits you to distribute.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Run the ASTERION native-file builder in Siemens NX
2+
3+
## Recommended one-click method
4+
5+
1. Extract the package to a short Windows path, for example `C:\ASTERION\native-builder`.
6+
2. Double-click `RUN_ASTERION_BUILDER.bat`.
7+
3. The launcher discovers `NXBIN`, sets the ASTERION environment variables and invokes Siemens `run_journal.exe`.
8+
4. Review `native_output\NX_NATIVE\ASTERION_NX_BUILD_LOG.csv`.
9+
10+
When NX is not found automatically, open Command Prompt in the package folder and run:
11+
12+
```bat
13+
RUN_ASTERION_BUILDER.bat -NxBin "C:\Program Files\Siemens\NX2306\NXBIN"
14+
```
15+
16+
Use the actual folder containing `run_journal.exe`.
17+
18+
## GUI method
19+
20+
```powershell
21+
powershell -ExecutionPolicy Bypass -File .\nxopen\run_asterion_builder.ps1 `
22+
-NxBin "C:\Program Files\Siemens\NX2306\NXBIN" -Gui
23+
```
24+
25+
In NX, choose **Developer/Tools → Journal → Play** and select `nxopen\asterion_nx_native_builder.py`.
26+
27+
## Why normal Python fails
28+
29+
`NXOpen` belongs to the Siemens NX runtime. Running the file with `python.exe`, Python 3.13, VS Code, IDLE or PyCharm outside NX produces `ModuleNotFoundError`. The revised journal now attempts to relaunch itself through NX and otherwise exits with instructions rather than a misleading traceback.
30+
31+
## Overwrite an earlier build
32+
33+
```bat
34+
RUN_ASTERION_BUILDER.bat -Overwrite
35+
```
36+
37+
Or combine options:
38+
39+
```bat
40+
RUN_ASTERION_BUILDER.bat -NxBin "C:\Program Files\Siemens\NX2306\NXBIN" -Overwrite
41+
```
42+
43+
## Outputs
44+
45+
NX uses `.prt` for component parts, assemblies and separate master-model drawings. The output is written under `native_output\NX_NATIVE`.
46+
47+
## Geometry limitation
48+
49+
The source models are STL meshes. NX saves genuine native `.prt` files containing facet/convergent bodies, but does not reconstruct sketches, parametric features, dimensions, WAVE links or assembly constraints.
50+
51+
## Drawing behaviour
52+
53+
The builder attempts A3 sheets with front, top, right and isometric views. If your NX release or licence does not support a drafting call, the linked drawing part is saved and the build log marks the item `PARTIAL` for manual completion.

0 commit comments

Comments
 (0)