Fix NX version: DesigncenterNX2512 (was looking for NX2412)
- Add DesigncenterNX{version} to install path search
- Update default version to 2512
- Root cause of 'Part file is from a newer version' error
This commit is contained in:
@@ -90,6 +90,7 @@ class NXSolver:
|
|||||||
"""Auto-detect NX installation directory."""
|
"""Auto-detect NX installation directory."""
|
||||||
# Common installation paths
|
# Common installation paths
|
||||||
possible_paths = [
|
possible_paths = [
|
||||||
|
Path(f"C:/Program Files/Siemens/DesigncenterNX{self.nastran_version}"),
|
||||||
Path(f"C:/Program Files/Siemens/NX{self.nastran_version}"),
|
Path(f"C:/Program Files/Siemens/NX{self.nastran_version}"),
|
||||||
Path(f"C:/Program Files/Siemens/Simcenter3D_{self.nastran_version}"),
|
Path(f"C:/Program Files/Siemens/Simcenter3D_{self.nastran_version}"),
|
||||||
Path(f"C:/Program Files (x86)/Siemens/NX{self.nastran_version}"),
|
Path(f"C:/Program Files (x86)/Siemens/NX{self.nastran_version}"),
|
||||||
@@ -115,6 +116,7 @@ class NXSolver:
|
|||||||
|
|
||||||
# Fallback: check common installation paths
|
# Fallback: check common installation paths
|
||||||
possible_exes = [
|
possible_exes = [
|
||||||
|
Path(f"C:/Program Files/Siemens/DesigncenterNX{self.nastran_version}/NXBIN/run_journal.exe"),
|
||||||
Path(f"C:/Program Files/Siemens/Simcenter3D_{self.nastran_version}/NXBIN/run_journal.exe"),
|
Path(f"C:/Program Files/Siemens/Simcenter3D_{self.nastran_version}/NXBIN/run_journal.exe"),
|
||||||
Path(f"C:/Program Files/Siemens/NX{self.nastran_version}/NXBIN/run_journal.exe"),
|
Path(f"C:/Program Files/Siemens/NX{self.nastran_version}/NXBIN/run_journal.exe"),
|
||||||
Path(f"C:/Program Files/Siemens/DesigncenterNX{self.nastran_version}/NXBIN/run_journal.exe"),
|
Path(f"C:/Program Files/Siemens/DesigncenterNX{self.nastran_version}/NXBIN/run_journal.exe"),
|
||||||
|
|||||||
1126
projects/.stversions/hydrotech-beam/models/_temp_solve_journal~20260211-154152.py
Executable file
1126
projects/.stversions/hydrotech-beam/models/_temp_solve_journal~20260211-154152.py
Executable file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
# Auto-generated journal for solving Beam_sim1.sim
|
# Auto-generated journal for solving Beam_sim1.sim
|
||||||
import sys
|
import sys
|
||||||
sys.argv = ['', r'C:\Users\antoi\Atomizer\projects\hydrotech-beam\studies\01_doe_landscape\..\..\models\Beam_sim1.sim', None, 'beam_half_core_thickness=25.162', 'beam_face_thickness=21.504', 'holes_diameter=300.0', 'hole_count=10.0'] # Set argv for the main function
|
sys.argv = ['', r'C:\Users\antoi\Atomizer\projects\hydrotech-beam\models\Beam_sim1.sim', None, 'beam_half_core_thickness=25.162', 'beam_face_thickness=21.504', 'holes_diameter=300.0', 'hole_count=10.0'] # Set argv for the main function
|
||||||
"""
|
"""
|
||||||
NX Journal Script to Solve Simulation in Batch Mode
|
NX Journal Script to Solve Simulation in Batch Mode
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class AtomizerNXSolver:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
model_dir: str | Path = ".",
|
model_dir: str | Path = ".",
|
||||||
nx_version: str = "2412",
|
nx_version: str = "2512",
|
||||||
timeout: int = 600,
|
timeout: int = 600,
|
||||||
use_iteration_folders: bool = False, # Disabled: copied NX files break internal references
|
use_iteration_folders: bool = False, # Disabled: copied NX files break internal references
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user