but then save panel opens and the user needs to navigate to the appropriate folder and input the model name manually which is not nice. Is there a way to incorporate the filename in this send_action command so the save panel opens in a given folder and uses a default filename?
That is strange. It should work same since version 6. Could be that the installation of the SketchUp 8 is somehow corrupted.
However the version 8 is very old. Is there a specific reason to use this more than 10 years old software?
well this is part of a plug-in I am working on, It would be great if SketchUp 8 is supported.
I tried adding the second argument with the sketchup version, this time the bug splat message is not happening but it just crashes after the saving order.
I am using savepanel in newer versions to get the filename from the user. It is very useful because I can input a default folder and filename. But it doesn’t save the model by itself, one has to save the model afterwards
Extremely few users use such an ancient SU versions. Personally I never on purpose support anything older than SU 2017, which was the last free version for hobbyists. Supporting older versions adds a bunch of extra work.
My shot-in-the-dark guess (I don’t have a running copy of SU 8 to try) is that the backslash in the file path is causing an issue. In Ruby it acts as an escape character so the effective path is “MyPathMyFilename.skp”, which probably doesn’t exist or runs into a permissions issue that trips a bug in SU 8. Try either using a forward slash or doubling up the backslash and see if that helps.
Besides the problems with Ruby, and the OS quirks, the SketchUp API has undergone so many bugs fixes it makes it next to impossible to write workarounds and have an extension code that works in all SketchUp versions, with all Ruby versions, on all OS platforms and versions. (Unless the extension is the simplest of tasks.)
I can see this generates a new .skp file with the desired name at the desired location but the current model is still untittled.skp. This is different for later versions of SU where the current model gets the name when you save it.
a work around could be just open the saved file immediately after saving