This part is the first cause of blockage. If Back To CAD does not start your CAD software, cannot connect to it, or stops right at the beginning, this is almost always where to look.
Where are the settings?
Settings are saved per user in:
%APPDATA%\BackToCad\settings.json
Before you start
-
Your CAD software must be installed, licensed, and able to start manually with your Windows account. If it does not start without Back To CAD, it will not start with it.
-
Back To CAD and the CAD software must run with the same Windows account and the same privilege level. Do not run one "as administrator" and the other not.
-
Close any open dialog boxes in the CAD software before starting a process.
-
Save your work in the CAD software before starting: Abort closes the CAD software launched by Back To CAD, and a session you opened yourself may be closed as well.
Example configuration
CATIA / SOLIDWORKS
----------------------------------------------------------------------
Connection mode: Auto (attach -> COM -> launch)
ProgIDs: CATIA.Application;CATIA.Application.1
(SolidWorks: SldWorks.Application)
CLSID: (empty)
Remote machine: (empty)
Force a new COM instance (DispatchEx): (unchecked)
Executable / script: (empty)
Arguments: (empty)
Working directory: (empty)
Launch timeout: 90 s
(SolidWorks: 120 s)
Type binding: Auto
(SolidWorks only)
----------------------------------------------------------------------
FREECAD
----------------------------------------------------------------------
Lib folder: (empty = detected automatically)
FreeCADCmd.exe: (empty = detected automatically)
Python.exe: (empty = detected automatically)
FreeCAD.exe: (empty = detected automatically)
Worker startup timeout: 60 s
----------------------------------------------------------------------
What the terms mean
-
ProgID: the name under which a program is registered in Windows, for example CATIA.Application. Back To CAD uses this name to find CATIA.
-
CLSID: the same registration, but as an ID number (a long code in braces) instead of a name.
-
DCOM: COM across the network, to control a program that runs on another computer.
-
DispatchEx: asking Windows to start a program through COM. DispatchEx does the same but always starts a brand-new copy.
-
Arguments: extra options added after the executable when it is launched.
-
Working directory: the folder the program starts from.
-
Timeout: the maximum time Back To CAD waits before giving up.
-
Binding (early / dynamic): how Python reads the SolidWorks API. Early is prepared in advance; dynamic is read on the fly.
-
Worker: a background process that Back To CAD starts to control FreeCAD.
-
UNC path: a network path such as \server\share\file.
-
gen_py: a folder where Python stores the files that describe the CAD software to COM.
How to find the value of each key
Connection mode
No value to look up: choose one of the four modes.
-
Auto (attach -> COM -> launch): connects to an open session, otherwise asks Windows to start the CAD software, otherwise launches the executable you configured.
-
Attach to running session only: connects only to a session that is already open. Nothing is started.
-
Launch executable / script, then attach: connects to an open session if there is one, otherwise launches the executable or script you configured and waits until it is ready. Use it when the CAD software is on a server or started by a script.
-
Create through COM (Dispatch): directly asks Windows to create a session, without looking for an open one.
ProgIDs
Open a Windows command prompt and list the names registered on your machine:
reg query HKCR /f "CATIA.Application" /k
reg query HKCR /f "SldWorks.Application" /k
Copy the names returned (for example CATIA.Application and CATIA.Application.1), separated by ;.
For SolidWorks, the version is in the suffix: SldWorks.Application.32 (2024), .31 (2023), .30 (2022).
If nothing is returned, the CAD software is not registered for COM on this machine. This is an installation issue for your IT team.
CLSID
In a command prompt, run:
reg query "HKCR\CATIA.Application\CLSID"
reg query "HKCR\SldWorks.Application\CLSID"
Copy the value displayed, braces included: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
Remote machine
Enter the name of the computer where the CAD software runs. To get it, run hostname in a command prompt on that computer, or ask your IT team.
Force a new COM instance (DispatchEx)
No value to look up: check the box to force a new instance.
Executable / script
Start the CAD software the way you usually do, then:
-
Open Task Manager (Ctrl+Shift+Esc), "Details" tab.
-
Right-click CNEXT.exe (CATIA) or SLDWORKS.exe (SolidWorks) > "Open file location".
-
Copy the full path of the file.
Or right-click the CAD shortcut > Properties > "Target" field. The path comes before any arguments.
Usual locations:
-
CATIA:
...\Dassault Systemes\<version>\win_b64\code\bin\CNEXT.exe -
SolidWorks:
C:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\SLDWORKS.exe
If your users start the CAD software through a script or a shortcut, enter that path instead. It must then be allowed in launch_policy.json (see "Launch restrictions" below).
Arguments
-
In the CATIA shortcut Properties, "Target" field: everything after CNEXT.exe is the arguments. Example:
-env CATIA.V5-6R2021.B31 -direnv C:\ProgramData\DassaultSystemes\CATEnv -
If CATIA is started by an environment script, open the script in a text editor. The arguments are on the line that launches CNEXT.exe.
Working directory
Use the "Start in" field of the CAD shortcut (Properties > "Start in"), or the folder the script expects to run from.
Launch timeout
Start the CAD software manually and time how long it takes to be ready. Enter that time plus a safety margin. On a server, 180 to 300 s is usual.
Type binding (SolidWorks)
No value to look up: choose Auto, Early only or Dynamic only.
FreeCAD paths
-
Lib folder, FreeCADCmd.exe, Python.exe and FreeCAD.exe are in the FreeCAD installation folder, for example
C:\Program Files\FreeCAD 1.1\. -
lib is in
...\lib. The three executables are in...\bin. -
To confirm the folder: right-click the FreeCAD shortcut > "Open file location".
Equivalent environment variables: FREECADPATH, FREECADCMD, FREECAD_PYTHON, FREECAD_GUI_EXE.
Worker startup timeout
Start FreeCAD manually and time how long it takes to be ready. Enter that time plus a safety margin.
Launch restrictions (launch_policy.json)
Back To CAD only launches a known CAD program (CNEXT.exe, CATSTART.exe, SLDWORKS.exe, FreeCAD.exe, FreeCADCmd.exe), using a full path on a local disk.
Refused by default: scripts (.bat, .cmd, .ps1, .vbs…), shortcuts (.lnk) and network paths (\server\share...).
To allow one, an administrator creates a file named launch_policy.json in the Back To CAD installation folder, next to BackToCad.exe:
{
"allowed_programs": ["D:\\Tools\\start_catia.bat"],
"allowed_names": [],
"allow_unc": false
}
-
allowed_programs: full paths of the programs or scripts that are allowed. -
allowed_names: additional executable names that are allowed. -
allow_unc: set to true to allow network paths.
To find the installation folder: right-click the Back To CAD application > "Open file location". This file is only read from that folder.
Other useful settings
Values shown are the defaults.
General
----------------------------------------------------------------------
Run Headless: checked
Keep CAD open after process: unchecked
Continue after object error: checked
See Original in Output Review: unchecked
gen_py cache folder: (empty)
Retry busy COM server: Disabled (0)
Launch poll interval: 1 s
Design
----------------------------------------------------------------------
Cable Reconstruction: Spline
Legacy Fallback: checked
Validate Cable and Pipe Solids: checked
Warn Above Points per Cable: 2000
Warn Above Cable Count: 500
Warn Below Available Memory: 1024 (MB)
Log/Export
----------------------------------------------------------------------
Log Level: INFO
Report Folder: (empty)
Debug / Logs Folder: (empty)
What each setting does:
-
Run Headless: the CAD software stays hidden during processing. Unchecked, the CAD window is visible.
-
Keep CAD open after process: the CAD software stays open when processing ends.
-
Continue after object error: an object in error is logged and processing continues with the next ones. Unchecked, the first error stops everything.
-
See Original in Output Review: the Output Review screen also shows the original state of each modification, to compare before and after.
-
gen_py cache folder: a local, writable folder where Python stores the COM description files. Empty means the default location.
-
Retry busy COM server: how long (in seconds) Back To CAD retries when the CAD software refuses a command because it is busy. 0 means no retry.
-
Launch poll interval: how often (in seconds) Back To CAD checks whether the CAD software is ready after launching it.
-
Cable Reconstruction: how CATIA rebuilds cables and pipes. Spline builds one smooth curve; Legacy segmented builds straight segments.
-
Legacy Fallback: if the Spline reconstruction fails, the segmented method is tried automatically.
-
Validate Cable and Pipe Solids: checks that each cable or pipe created is a valid solid.
-
Warn Above Points per Cable: shows a warning if a cable has more points than this. 0 means no warning.
-
Warn Above Cable Count: shows a warning if the JSON contains more cables than this. 0 means no warning.
-
Warn Below Available Memory: shows a warning if free memory is below this value, in MB. 0 means no warning.
-
Log Level: the amount of detail in the logs. DEBUG is everything, INFO is the default, then WARNING and ERROR.
-
Report Folder: where the end-of-process reports are written. Empty means a BackToCad_Reports folder next to the input file.
-
Debug / Logs Folder: where the log files are written. Empty means %LOCALAPPDATA%\BackToCad\logs.
Common Errors
-
Call was rejected by callee: your CAD software is already busy with another process (an open dialog box, a long calculation…), so it refuses new commands for now.
-
Launch refused: only .exe files are allowed: the path you entered is a script, a shortcut or a network path. Back To CAD blocks these by default for security reasons, unless they are listed in launch_policy.json.
-
Invalid class string: the ProgID entered is not registered in Windows on this machine. The CAD software is either not installed, or registered under another name.
-
Server execution failed: Windows tried to start the CAD software but the start did not complete. It is usually linked to the CAD environment (license, script, account) and not to Back To CAD itself.
-
Launch timeout / CAD not ready: Back To CAD started the CAD software, but it was not ready before the Launch timeout expired. It is linked to a slow start (license check, server load, network).
-
"makepy" / "gen_py" errors: Python could not read or write the files that describe the CAD software to Windows. They are linked to the gen_py cache folder being unreachable, read-only or corrupted.
-
Cannot connect although the CAD software is open: Back To CAD and the CAD software are not running in the same Windows context (same account, same privilege level), so Windows does not let them talk to each other.
-
FreeCAD not found: Back To CAD cannot find the FreeCAD files at the configured paths or in the standard installation folders.
In all cases, attach your log when you contact us (see the External Process section).