Although you can set flags to disable default file selection or to enter a new file name, the acedGetFileD() function is designed to return a qualified file name, not just a directory. If you need to deal with paths only, you may want to use acedGetFileNavDialog().
Can the ObjectARX acedGetFileD() prompt for directory only?
Comments
2 responses to “Can the ObjectARX acedGetFileD() prompt for directory only?”
-
Hi, Gopinath,
I’ve tried to adopt this function in C#
but with no chance
Can you provide an appropriate code example on C#?
Kind regards,
Oleg -
Hi Oleg,
You dont really have to rely on the ARX functions I mentioned above for .NET. You can use the Autodesk.AutoCAD.Windows.OpenFileDialog for a file dialog and control how it behaves using the Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags enumeration. Please look up the AutoCAD .NET documentation for more information.
Cheers
Gopinath

Leave a Reply