Capture is detecting the wrong capture.ini file when I invoke Allegro Design Entry CIS or OrCad Capture (Capture). How can I verify the correct location of the capture.ini file? How does Capture determine which capture.ini file to reference when there are more than one?
When Capture starts up, it uses a pre-defined set of default values for the application settings. These default values are defined in the Capture configuration (capture.ini) file.
If Capture is launched from the program menu shortcut or a shortcut created by the user, then capture.ini is read/written from the location specified in the 'Start in' field of the shortcut.
By default, Capture reads/writes the capture.ini file from the %HOME% location.
However, you can invoke Capture with a different INI file that is present at another location. Capture uses the following order of preference to pick up the capture.ini file present at a location.
Preference 1: -i switch option: With the -i switch, you can force a specific capture.ini file to be used when the application launches. If you use this option while invoking Capture, the tool gives it the highest priority.
capture [-i <capture.ini location>] [dsn name] [tcl script name]
-i <capture.ini location>
The location of the capture.ini file to be used with the current instance of Capture.
Name and location of the dsn to be opened in the current instance of Capture.
tcl script name
Name and location of the tcl file to be executed at startup.
Preference 2: %HOME% [Default Location]
If the HOME variable is defined in the environment variables.
If capture.ini is not present at the %HOME% location, Capture will create a new capture.ini file at this location with the folder structure %HOME%/cdssetup/OrCAD_Capture/version.
Preference 3: %USERPROFILE%
If the %Home% variable is not defined, Capture will read/write the capture.ini file from the
If the 'cdssetup' folder is not present at %USERPROFILE%, Capture will create a new capture.ini file at this location with the folder structure %USERPROFILE%/cdssetup/OrCAD_Capture/version.
Preference 4: %CDS_SITE%
If the %Home% variable is not defined and if capture.ini is not present at
%USERPROFILE%/cdssetup/OrCAD_Capture/version and if capture.ini is present at %CDS_SITE%.
Default installation location If capture.ini is not present under any of the above four locations, Capture picks the capture.ini file from <cadence installation folder>\tools\bin in 17.2 and from <cadence installation folder>\tools\capture in 16.6.
Identifying the path Capture uses to reference capture.ini
When Capture is invoked, you can open the session log to see the path of the capture.ini file that is used by Capture.You can also get this location by using Command Window. Invoke Capture and open Command Window (View > Command Window). Type the GetIniPath (case sensitive) command in Command Window and press Enter. This will show you the location from where the capture.ini file is picked.