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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

ProFileOpen a Directory

hdomi
1-Newbie

ProFileOpen a Directory

Hi Everybody!

I'm programming a pro toolkit dll in wf 3.

I am trying to get a directory path through a ProFileOpen Dialog, similar to the function of the ProE Dialog for Setting up the Working Directory.

There is the ProLine filter_string as the second argument that filters the file type.
The idea would be adding a filter string that only allows the selection of a directory.

My question now:

Does anyone know the file type filter for a directory? Or is this actually possible with the ProFile Object?

If its not possible .. what would be a simple alternative?

thx in advance

Kind Regards

Domi


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
vinaym
1-Newbie
(To:hdomi)

I would use ProDirectoryChoose()

Description
Prompts the standard file browser interface of Pro/ENGINEER, set upfor the
purpose of allowing the user to select a directory.

Regards,

Vinay


2009/7/23 Dominik Hartinger <dominik.hartinger@cads.at>

> Hi Everybody!
>
> I'm programming a pro toolkit dll in wf 3.
>
> I am trying to get a directory path through a ProFileOpen Dialog, similar
> to the function of the ProE Dialog for Setting up the Working Directory.
>
> There is the ProLine *filter_string as the second argument that filters
> the file type.*
> The idea would be adding a filter string that only allows the selection of
> a directory.
>
> My question now:
>
> Does anyone know the file type filter for a directory? Or is this actually
> possible with the ProFile Object?
>
> If its not possible .. what would be a simple alternative?
>
> thx in advance
>
> Kind Regards
>
> Domi
>
>

Dominik,
Try using the API ProDirectoryChoose().

Function ProDirectoryChoose

Description



Prompts the standard file browser interface of Pro/ENGINEER, set upfor the purpose of allowing the user to select a directory.



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

[cid:image001.jpg@01CA0E94.9F58DC30]
Top Tags