The Autodesk network installation has several methods to determine the Autodesk License Manager. These are the
- ADSKFLEX_LICENSE_FILE environment variable
- ADSKFLEX_LICENSE_FILE registry key
- LM_LICENSE_FILE variable
- licpath.lic file and
- License Finder dialog box configuration.
This document notes these methods, and clarifies their respective precedence:
1. ADSKFLEX_LICENSE_FILE environment variable
When running an Autodesk software product that uses the FLEXlm based version of the Autodesk License Manager (AdLM), it first reads the environment variable ADSKFLEX_LICENSE_FILE to determine where to look for its network license.
2. ADSKFLEX_LICENSE_FILE registry key
If the servers specified by ADSKFLEX_LICENSE_FILE are not available, or are out of concurrent licenses, the client reads a registry key to determine where to look next.
According to this article, the registry key is:
HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager\ADSKFLEX_LICENSE_FILE
From our experience, the registry key is:
HKEY_CURRENT_USER\Software\FLEXlm License Manager\ADSKFLEX_LICENSE_FILE
3. LM_LICENSE_FILE environment variable
Similar to the ADSKFLEX_LICENSE_FILE environment variable, the LM_LICENSE_FILE environment variable also points to a specific FlexLM license server. This variable It is common to all Flex enabled applications, so it is not recommended for use on a multi vendor environment.
4. licpath.lic file
The network installation creates a licpath.lic file. It is created on the client workstation for a client installation, and created in the run-tree folder on the server for a network heavy installation. The licpath.lic file must contain the following lines:
SERVER <Server name> <MAC address>
5. License Finder dialog box
If upon application bring-up all the above methods have failed to determine the location of the Autodesk license manager, The “FLEXlm License Finder” dialog box appears and states that:
“Your application was not able to obtain a license because the FLEXnet license server manager could not determine where to find the licensing data it needs”
Autodesk requires the user to either “Specify the License Server System” or “Specify the License File”. Select “Specify the License Server System” and click Next. The UI will prompt you to type in the Autodesk license manager location.
1. The dialog box configuration changes the ADSKFLEX_LICENSE_FILE registry key, so it will take precedence over licpath.lic and LM_LICENSE_FILE. In order to return to those methods the ADSKFLEX_LICENSE_FILE key would have to be deleted from the registry.
2. OpenLM interfaces the Autodesk FlexLM based license manager to provide real-time application usage metering and license usage statistics. It automatically optimizes license utilization for the benefit of users and license administrators alike.