-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update filedialog file extension filter #146
Comments
It would be nice if this feature was documented in the Developer docs. |
I'm confused. Are you talking about |
Looks like you're right. :( I think I lean toward dropping the default filename until the API is improved. At least for SketchUp versions that support file filters. |
Except that the API issue was supposedly fixed (on the PC,) 10 months before this issue was posted (when SU 2014 M0 was released.) In reality, the So the API docs are again wrong, as the stlpath = UI.savepanel(
"Save STL File",
File::dirname(prevstl),
"#{File::basename(prevstl)}|#{File::basename(prevstl)};|STL Files|*.stl;||"
) That almost works, but it makes the user actually click on the stl file in the folder. (It doesn't appear in the filename textbox until the user does this.) You could ask the user to use the default filename, or use a inputbox to get it, then use |
There appear to not be any STL file extension in the file dialog drop down list.
The text was updated successfully, but these errors were encountered: