# Quick Configuration Reference ## Change NX Version (e.g., when NX 2506 is released) **Edit ONE file**: [`config.py`](../config.py) ```python # Line 14-15 NX_VERSION = "2506" # ← Change this NX_INSTALLATION_DIR = Path(f"C:/Program Files/Siemens/NX{NX_VERSION}") ``` **That's it!** All modules automatically use new paths. --- ## Change Python Environment **Edit ONE file**: [`config.py`](../config.py) ```python # Line 49 PYTHON_ENV_NAME = "my_new_env" # ← Change this ``` --- ## Verify Configuration ```bash python config.py ``` Output shows all paths and validates they exist. --- ## Using Config in Your Code ```python from config import ( NX_RUN_JOURNAL, # Path to run_journal.exe NX_MATERIAL_LIBRARY, # Path to material library XML PYTHON_ENV_NAME, # Current environment name get_nx_journal_command, # Helper function ) # Generate journal command cmd = get_nx_journal_command( journal_script, arg1, arg2 ) ``` --- ## What Changed? **OLD** (hardcoded paths in multiple files): - `optimization_engine/nx_updater.py`: Line 66 - `dashboard/api/app.py`: Line 598 - `README.md`: Line 92 - `docs/NXOPEN_INTELLISENSE_SETUP.md`: Line 269 - ...and more **NEW** (all use `config.py`): - Edit `config.py` once - All files automatically updated --- ## Files Using Config - ✅ `optimization_engine/nx_updater.py` - ✅ `dashboard/api/app.py` - Future: All NX-related modules will use config --- **See also**: [SYSTEM_CONFIGURATION.md](SYSTEM_CONFIGURATION.md) for full documentation