Precision...
code: (only one line)
var fs=moi.filesystem, fl=fs.getTempDir()+'tmp.stp', gd = moi.geometryDatabase; gd.fileExport(fl); gd.removeObjects(gd.getSelectedObjects()); gd.fileImport(fl); fs.deleteFile(fl);
Copy the Max's code in a .js file, and save it the "scripts" directory. (with any name you want without space )
Also the "commands" folder is ok.
To use it, simply select the curves you want to elaborate and run the command.
Load the file and put it in the scripts folder of Me (if this folder does not exist, create it)
Make a shortcut, or press TAB and write the name of the script
Select curves and call the plugin.
|