Can the ObjectARX acedGetFileD() prompt for directory only?

By Gopinath Taget

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().


Comments

2 responses to “Can the ObjectARX acedGetFileD() prompt for directory only?”

  1. 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

  2. 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 to Gopinath TagetCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading