A C# interface to QisMLib via it's scripting system
QisMCmdCS (.NET Standard 2.0)QisMCmd C# API interface QisMCmdGet_extension_reportAdd_varGet_varRemove_varRun_scriptRun_commandList_commandsLog_msgLog_msg_lnGet_cmd_logGet_error_msgGet_error_tagGet_error_contextAdd_handleGet_handleRemove_handlestatic class QisMCmdAPIInit OptionsOPT_CFG_S OPT_LOG_S OPT_LOGA_S OPT_ACSV_S OPT_ACSP_S OPT_STDLOG Get_versionGet_error_msg (QisMCmdAPI)Get_error_tag (QisMCmdAPI)Get_error_context (QisMCmdAPI)Set_errorGet_script_usageInitialize_onceClose_onceQisMCmd (.NET Standard 2.0) LicensingQisMCmd (.NET Standard 2.0) Version Historyqismcmd_cs_s20 dll v1.1 03-2025qismcmd_cs_s20 dll v1.0 03-2024
Namespace : Artwork.QisMLib
Represents the interface to execute QisMLib commands and script
public interface QisMCmd { ... };Get a report of all the extensions loaded in the system
Returns the report as a multi-line string
xxxxxxxxxxstring Get_extension_report();Add a string variable to the scripting system
name is the name to be associated with the variable
value is the value to be assigned to that variable
This variable can be referenced in subsequent commands using ((<name>))
xxxxxxxxxxvoid Add_var(string name, string value);Get the value associated with a string variable
name is the name to be associated with the variable
Returns the value assigned to that variable OR an empty string
xxxxxxxxxxstring Get_var(string name);Remove a variable from the scripting system if it exists
name is the name to be associated with the variable
xxxxxxxxxxvoid Remove_var(string name);Run a script defined in a text file
script_file is the path of a valid QisMLib script
Use List_commands to get a full list of commands and arguments
See qismlib webpage for detailed reference
Returns 0 on success. Otherwise use Get_error.. for more information with the returned code
xxxxxxxxxxint Run_script(string script_file);Run a single QisMLib command
command is the full command (command-name + args) to be executed
The command-name and args are each separated by spaces. Args with spaces in them should be enclosed in double-quotes
Order of args is not important. Commands names and args are case-sensitive
Use List_commands to get a full list of commands and arguments
See qismlib webpage for detailed reference
Returns 0 on success. Otherwise use Get_error.. for more information with the returned code
xxxxxxxxxxint Run_command(string command);Get a list of commands currently available
search_str can be used to filter the list. Only commands that contain the specified string token will be returned
Returns the list as a single multi-line string
See qismlib webpage for detailed reference
xxxxxxxxxxstring List_commands(string search_str);Send a message to the system log
A newline is not added
xxxxxxxxxxvoid Log_msg(string msg);Send a message to the system log
A newline will be added at the end of the message
xxxxxxxxxxvoid Log_msg_ln(string msg);Get the log for the last command as a multi-line string
xxxxxxxxxxstring Get_cmd_log();Get a human-readable description for an error condition represented by
ecode
xxxxxxxxxxstring Get_error_msg(int ecode);Get a program-friendly string-code for the error condition represented by
ecode
xxxxxxxxxxstring Get_error_tag(int ecode);Reserved for future/internal use
xxxxxxxxxxstring Get_error_context(int ecode);Add an object handle to the scripting system
type is the handle type
name is the name to be associated with the variable
value is the value to be assigned to that variable
This object can be referenced in subsequent commands using name wherever it's type is allowed as a parameter
xxxxxxxxxxvoid Add_handle(string type, string name, IntPtr value);Get the handle associated with a string variable
type is the handle type
name is the name to be associated with the variable
Returns the handle assigned to that variable OR IntPtr.Zero
xxxxxxxxxxIntPtr Get_handle(string type, string name);Remove a handle from the scripting system if it exists
type is the handle type
name is the name to be associated with the variable
xxxxxxxxxxvoid Remove_handle(string type, string name);xxxxxxxxxxpublic static class QisMCmdAPI { ... };Represents the primary interface to use QisMLib from the C#/.NET environment
Various optional parameters to be used during initialization
Specified as a single string of options separated by spaces. Options containing spaces MUST be enclosed in double-quotes
Specify the config. file to be used
A config. file contains a list of extensions to be loaded during initialization
Default: qismlib.cfg in the same location as qismlib64.dll
Add config={config_file_path} to your string of options
xxxxxxxxxxpublic static string OPT_CFG_S = "config=";Generate a new log file using QisMLib's logging API
Add log={log_file_path} to your string of options
xxxxxxxxxxpublic static string OPT_LOG_S = "log=";Append to an existing log (or create a new one) using QisMLib's logging API
Add log+={log_file_path} to your string of options
xxxxxxxxxxpublic static string OPT_LOGA_S = "log+=";Specify a vendor string to use trusted (OEM) licensing
Add acsv={vendor_string} AND acsp={oem_key_file_path} to your string of options
xxxxxxxxxxpublic static string OPT_ACSV_S = "acsv=";Specify the key file to use trusted (OEM) licensing
Add acsv={vendor_string} AND acsp={oem_key_file_path} to your string of options
xxxxxxxxxxpublic static string OPT_ACSP_S = "acsp=";Enable logging to stdout from within QisMLib
xxxxxxxxxxpublic static string OPT_STDLOG = "stdlog";Get version information for QisMLib as a multi-line string
xxxxxxxxxxpublic static string Get_version()Get a human-readable description for an error condition represented by
ecode
xxxxxxxxxxpublic static string Get_error_msg(int ecode)Get a program-friendly string-code for the error condition represented by
ecode
xxxxxxxxxxpublic static string Get_error_tag(int ecode)Reserved for future/internal use
xxxxxxxxxxpublic static string Get_error_context(int ecode)Register an error condition with the QisMLib error system
tag is the error tag (a string based error code)
context is reserved for internal use
msg is a human-readable error message
Returns an interger that identifies this particular error condition
Get usage information from a script file
script_file is the path of a script that makes use of usage.* commands to provide information
Returns a multi-line or empty string
Initialize the QisMLib ONCE during the life of an application
dll_path is the fully qualified path to qismlib64.dll
options is a set of optional arguments to be used during initialization
Returns a handle to the QisMCmd interface on success. In case of error, return is null and ecode is set to the error condition. Use Get_error... for more information about the error
xxxxxxxxxxpublic static QisMCmd Initialize_once(string dll_path, string options, ref int ecode)Close QisMLib ONCE during the life of an application
handle is the handle returned during initialization
xxxxxxxxxxpublic static void Close_once(QisMCmd handle)Product name :
QisMLibLicense code :11003
Requires ONE license of QisMLib that will be held from initlialization until closing
Inidividual commands MAY require their own licenses
See qismlib webpage for detailed reference
New API functions to get access to object handles and setting error message
First cut
Last Updated -- Mon Mar 10 17:54:45 UTC 2025