Hello,
it worked fine in 18.0.0, but there's a bug in updated version 18.1.1
After I export any file to SVG with script, next time export fails with PARM error. Whatever you do - close the file, open another one, even try to export from UI, not from script.
Only restarting AI helps - 'till next SVG export
any ideas welcome