Thank you @Keet for your suggestion.Note the location of the SweetHome3D start script. This is the script you edited before.
Right click on a .sh3d file
Click "Open With Other Application"
Navigate to the SweetHome3D script and select to open with that script.
Don't forget to mark "Remember this applicatpon for sh3d documents".
From now on double clicking on a sh3d file should start SweetHome3D with the clicked file.
(This is on Debian but it's probably the same on Elementary.)
I tried it, but unfortunately i haven't seen any option like "open with that script" or "navigate to folder".
In the Files program, i make a right-click on my .sh3d file, then "open with > other application". There is no further option like "open with -> navigate to folder" or "navigate to script".

Would you know how to solve this?
I tried also Option 3. Set default apps via MIME type (Universal) (Link https://fostips.com/default-apps-opening-files-ubuntu)
with these commands
Try 1
Code: Select all
otto@ROBERT:~$ gio mime application/zip sweethome3d-7.1.desktop
Set sweethome3d-7.1.desktop as the default for application/zipCode: Select all
otto@ROBERT:~$ xdg-mime default sweethome3d-7.1.desktop application/zip
<