A new candidate for an update to the OpenSCAD workbench is available at https://www.dropbox.com/scl/fo/3lwah4w7 ... o58lus2t7z
Suggest you make copy of a FreeCAD installation and use the contents of the Dropbox directory to replace ...Mod/OpenSCAD
You need to add a Text parameter of 'externalEditor' value 'Path to editor'
via Tools | Edit Parameters to the Mod | OpenSCAD section.
Only tested on MacOS so far. Would really value feedback if changes are required for using an external editor with other OS's
Looking for some icon designs
If you click on the first X this will create a SCADObject If you toggle the edit property to True - It will fire up the external editor
When happy with source use editor file option.
If you then toggle the execute property to True it will send the source to OpenSCAD and create the SCADObjects Shape.
Each SCADObject can have its own maxfn property. ( Controls when to create circles, cylinders versus polygons etc)
If you set the mode property to 'Mesh' then rather than get a CSG file back from OpenSCAD it will get an STL file that it converts into the SCADObjects Shape. i.e. If you know the SCAD code contains Hulls and Minkowski operations, this will probably be quicker than trying to create a CSG and the importer has to do the Meshing for the Hulls & Minkowski's
Further work to be done.
Happy Testing
- [*} Add externalEditor option to Workbench Preference
- SCADModules
- Import SCAD Source
- Export SCAD Source