@honoluludesktop said:
Someone previously showed me that it works this way.
chosen_file=UI.openpanel("Select DXF File","", "*.Dxf")
And also like:
chosen_file=UI.openpanel("Select DXF File","*.Dxf")
However... Windows will use it's own directory paths it automatically saves into the Registry, for each file extension.
(1) If the openpanel has never before selected a *.dxf file, then the openpanel will (likely) open in the user's My Documents folder.
(2) If the User did previously select a *.dxf file, with the openpanel, Windows will open in the Most Recently Used (MRU) path Windows saved for the *.dxf extention.
Setting the working directory via Dir.chdir has no effect on what directory the openpanel starts in.