We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

How to realise the folder dialog?

Anonymous
Not applicable
Hi.
I would like to filter the “files of type” to only folders, not seeing any other types of files.

DG::FileDialog dlg(DG::FileDialog::OpenFolder);
	OpenFolderDialogObserver dialogObserver(&dlg);
	if (!dlg.Invoke()) {
		return;
	}
I implement the IncludeFile function in The OpenFolderDialogObserver .But the method is invalid.
Thanks.
4 REPLIES 4
Ralph Wessel
Mentor
Does this thread help?
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Ralph wrote:
Does this thread help?
I have tried the method mentioned above, but it didn't work.
akomporday
Graphisoft Alumni
Graphisoft Alumni
Hey Jerry,
What exactly was the problem with the solution in the above thread?
Anonymous
Not applicable
Hi akomporday.

I implement the IncludeFile function in The OpenFolderDialogObserver.

But when the dialog is opened, I can still choose other types of files.

Actually I want to filter the “files of type” to only folders, not seeing any other types of files