Skip to main content

optiSLang C API of FMOPSolver Library 2025 R1

License Handling

Last update: 10.02.2025

License handling

API handling licenes requests

DYNARDO_FMOP_API fmop_error_t FMOP_appendLicenseSearchPath (const char *abs_path)
 Appends another license search path to the default ones. More...
 
DYNARDO_FMOP_API fmop_error_t FMOP_acquireLicense ()
 Acquires an optiSLang enterprise license. More...
 
DYNARDO_FMOP_API bool FMOP_licenseLocked ()
 Check whether any license feature was acquired. More...
 
DYNARDO_FMOP_API fmop_error_t FMOP_releaseLicense ()
 Release the acquired license. More...
 

Detailed Description

Function Documentation

◆ FMOP_acquireLicense()

DYNARDO_FMOP_API fmop_error_t FMOP_acquireLicense ( )

Acquires an optiSLang enterprise license.

Returns
Call FMOP_getErrnoString() to get a human readable representation

◆ FMOP_appendLicenseSearchPath()

DYNARDO_FMOP_API fmop_error_t FMOP_appendLicenseSearchPath ( const char *  abs_path)

Appends another license search path to the default ones.

Deprecated:
Since 2022 R2. Will be removed in 2023 R1

By default the following license search paths will be checked in the order given:

  • @localhost
  • the current working directory
  • the path pointed to by the environment variable 'LM_LICENSE_FILE'
  • the path pointed to by the environment variable 'DYNARDO_LICENSE_FILE'
Parameters
[in]abs_pathAn absolute file system path, e.g. '/opt/DYNARDO/licensing', 'D:\Licenses', ...
Returns
Call FMOP_getErrnoString() to get a human readable representation

◆ FMOP_licenseLocked()

DYNARDO_FMOP_API bool FMOP_licenseLocked ( )

Check whether any license feature was acquired.

Returns
True if any license feature is locked, false otherwise

◆ FMOP_releaseLicense()

DYNARDO_FMOP_API fmop_error_t FMOP_releaseLicense ( )

Release the acquired license.

Note, that no previously acquired license is released if not all loaded Database and FMOP objects are already released

Returns
Call FMOP_getErrnoString() to get a human readable representation

Connect with Ansys