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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Pro/TOOLKIT: Activate foating modules via toolkit

LarsZiegler
5-Regular Member

Pro/TOOLKIT: Activate foating modules via toolkit

Hello!

Is there a possibility to activate a foating network module via Pro/TOOLKIT?

In my application I need the NC-COMPLETE_SET for a short time. After the use I want to free the license.

Can anybody help me?

Many thanks!

Lars


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

Lars,
That would be a great piece of functionality but sadly it does not exist. Here is a macro that I execute within my Pro/TOOLKIT application to acquire a floating module.

ProError MfgRegenJob::AcquireNCOption()
{
char *funcName = "AcquireNCOption";
ProError pro_error = PRO_TK_NO_ERROR;
ProBoolean pro_haveNcAdvanced = PRO_B_FALSE;
ProMacro pro_macro;

//Check if I already have the Pro/NC-ADVANCED option
pro_error = ProOptionOrderedVerify("Pro/NC-ADVANCED", &pro_haveNcAdvanced);
PROUTIL_CALL_REPORT("ProOptionOrderedVerify()", funcName, pro_error, pro_error!=PRO_TK_NO_ERROR);

if(pro_haveNcAdvanced == PRO_B_FALSE)
{
//Add the Pro/NC-ADVANCED option
ProStringToWstring(pro_macro, "~ Select `main_dlg_cur` `MenuBar1`1 `Utilities`;"
"~ Close `main_dlg_cur` `MenuBar1`;"
"~ Activate `main_dlg_cur` `Utilities.psh_util_flt_mod`;"
"~ Activate `check_list` `ck.NC-ADVANCED`1 ;"
"~ Activate `check_list` `OkBtn`;");

//Execute the macro
pro_error = ProMacroLoad(pro_macro);
PROUTIL_CALL_REPORT("ProMacroLoad()", funcName, pro_error, pro_error!=PRO_TK_NO_ERROR);

//Check that the option was successfully added
pro_error = ProOptionOrderedVerify("Pro/NC-ADVANCED", &pro_haveNcAdvanced);
PROUTIL_CALL_REPORT("ProOptionOrderedVerify()", funcName, pro_error, pro_error!=PRO_TK_NO_ERROR);

if(pro_haveNcAdvanced == PRO_B_FALSE)
return PRO_TK_GENERAL_ERROR;
}

return PRO_TK_NO_ERROR;
}

Patrick Williams | Sr. Applications Engineer | Engineering Systems | Steelcase Inc. | 616.698.4078 | My Site<">http://my.steelcase.com/Person.aspx?accountname=NA\PWILLIA3>

[cid:image003.jpg@01CA0527.52F56DC0]
LarsZiegler
5-Regular Member
(To:LarsZiegler)

Hello Patrick!

Thanks for the solution!

It works fine!

Greetings Lars

Top Tags