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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

ProFileOpen and the mnu-file

LarsZiegler
8-Gravel

ProFileOpen and the mnu-file

Hello!

I want to open a *.gph file with the ProFileOpen dialog.
It works fine, but is it possible to use the defined "mnu" file in the directory
so thatI got the same dialog like "Insert" "User-Defined Feature..."

Thanks!

Lars

ProPath TheFile;
ProPath DefaultPath = L";
/* No default dirs */
ProPath *path_arr = NULL;
ProName *path_lab_arr = NULL;
err = ProArrayAlloc(0, sizeof(ProPath), 1, (ProArray*)&path_arr);
err = ProArrayAlloc(0, sizeof(ProPath), 1, (ProArray*)&path_lab_arr);
ProName Option = L"pro_group_dir";
ProPath *wValues = NULL;
int nValues;
err = ProConfigoptArrayGet(Option, &wValues);
err = ProArraySizeGet(wValues, &nValues);
if (nValues > 0)
ProWstringCopy(wValues[0], DefaultPath, PRO_VALUE_UNUSED);
err = ProFileOpen(L"Open", L"*.gph", path_arr, path_lab_arr,
DefaultPath, NULL, TheFile);

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.
0 REPLIES 0
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags