cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How to add floating license by Toolkit or Object Toolkit?

NT_10507751
6-Contributor

How to add floating license by Toolkit or Object Toolkit?

I need to add a floating license during the running of the TOOLKIT program, because this license must be used during the running process, and the addition of this floating license will be canceled at the end of the running. Does anyone know how to do this? MACRO cannot be used. PTC does not seem to provide such a method or function in the toolkit and object toolkit. If anyone knows, please let me know, thank you.
If there is really no such method, ask PTC to add the function of adding and canceling floating licenses to the API

 

license.png

 

 

1 REPLY 1
RPN
17-Peridot
17-Peridot
(To:NT_10507751)

You can do it the other round, by validate that the option is available.

 

extern ProError ProOptionOrderedVerify ( ProCharName option,
                                         ProBoolean* p_option_exist );
/*
   Purpose:  Determines whether the specified option is available, such as 
             Pro/MESH.

   Input Arguments:
      option - The option name.

   Output Arguments:
      p_option_exist - This is PRO_B_TRUE if the option is available.
                       Otherwise, this is PRO_B_FALSE. 

   Return Values:

      PRO_TK_NO_ERROR    - The function successfully returned the 
                           information.
      PRO_TK_BAD_INPUTS  - The specified option is invalid.
      PRO_TK_E_NOT_FOUND - The specified option was not found.
*/
Top Tags