Here at Ideate, one of the common issues we hear about while on tech support is that a customer is not able to use a dialog box to select files for opening. In these cases, rather than seeing the dialog box, they are prompted to manually enter the full file path and name of the drawing or file they want to open at the command line.
The solution for this is almost always the same, and is relatively easy. Set the FILEDIA system variable to “1” instead of “0.” This system variable controls whether or not the application uses the dialog box function for file selection.
What do “0” and “1” mean? (Courtesy of AutoCAD Help file)
0 - Does not display dialog boxes. You can still request a file dialog box to appear by entering a tilde (~) in response to the Command prompt.
1 - Displays dialog boxes. However, if a script is active, an ordinary prompt is displayed. Prompts are also displayed if an AutoLISP or ObjectARX™ program is active. (Not applicable to AutoCAD LT.)
So what causes the value to change to 0?
In most cases, we’ve noticed that the system variable tends to reset when a file crashes during closing, or when the application runs into an error during shut down or saving. When that happens, FILEDIA changes back to “0,” and the next time you try to open a file, you’re prompted to enter a file name and path rather than select. To fix the problem, either launch a new drawing, or double click on an existing drawing to get to the command line and type in FILEDIA to set it back to “1.”
Why do we need a “0” option?
Some of you may be asking why do we even need a “0” option to begin with? Well, most of the time, you really don’t need to use the “0” option. But there are instances where you may want to be able to manually specify a file name and path rather than select it from a dialog box. Take for example, a SCRIPT file that automatically loads and add-on or resource file that you need to use in AutoCAD. To fully automate the process, the script would need to be able to locate and open a file from a specified location without any user input. Otherwise, it would pause and wait for the user to navigate to and select the file before completing the process. In that case, FILEDIA would be set to “0” as part of the script so that the author can include the full file path for the resource file in the script.
So there you have it, if you ever encounter a problem where your file dialog box is missing and you’re prompted to enter the file path at the command line, change your FILEDIA system variable to “1” instead of “0” and everything should be back to normal.
For more information on the software solutions, training and consulting Ideate provides, please visit the Ideate, Inc. homepage.
ENI Manager & Senior Application Specialist
Matt is an ENI Manager and Senior Application Specialist in Ideate, Inc.’s Seattle office. He has a B.S. in Mechanical Engineering and is a licensed Civil Engineer. Prior to joining Ideate, Matt worked as a civil engineer, using Civil 3D on a variety of projects including site development, roadway improvements and infrastructure design. With over 10 years of experience in the civil engineering industry, Matt now provides training, consulting, technical support, and implementation strategies for organizations transitioning to Civil 3D. Matt is an Autodesk Certified Instructor (ACI), as well as an Autodesk Certified BIM Specialist: Roads and Highway Solutions. Additionally, Matt is and Autodesk Certified Professional for AutoCAD, and AutoCAD Civil 3D. Find Matt on Twitter.