if that does not work, there's a newer method to export to svg that has a responsive property, see the threads below
https://community.adobe.com/t5/illustrator-discussions/scripting-svg-export-quot-object-ids-quot-and-quot-responsive-quot-settings/m-p/12660514#M306069
https://community.adobe.com/t5/illustrator-discussions/new-export-to-svg-illustrator-19-2-2015-1/m-p/7863742#M219435
Thank you CarlosCanto.
Thanks to you, the problem has been solved.
The bottom line is that the functions used inside the script were outdated, not the application preferences.
I have already found the location of the configuration file you provided.
However, after changing the settings in this file, restarting the PC did not solve the problem. illustrator may not have read this preference file correctly.
Then I referred to the other agenda reports you presented. There was a correct answer in the first report.
The settings I was using to export SVG are↓
// Save as SVG
sourceDoc.exportFile(targetFile, ExportType.SVG, this.getMyOptionsSVG());
//***SVG Option
function getMyOptionsSVG(){
var options = new ExportOptionsSVG();
options.DTD = SVGDTDVersion.SVG1_1;
…
options.cssProperties = SVGCSSPropertyLocation.PRESENTATIONATTRIBUTES;
return options;
}
However, this function has been available since the days of CS4.
A new function was implemented. In order to correspond to that function, the following modifications have been made.↓
// Save as SVG
sourceDoc.exportFile(targetFile, ExportType.WOSVG, this.getMyOptionsSVG());
//***SVG Option
function getMyOptionsSVG(){
var options = new ExportOptionsWebOptimizedSVG();
options.DTD = SVGDTDVersion.SVG1_1;
…
options.cssProperties = SVGCSSPropertyLocation.PRESENTATIONATTRIBUTES;
options.svgResponsive = false;
return options;
}
I woke up from this nightmare.
Thank you for your cooperation.