Script language question

In order to be used for different language, do we need change “"” to “_"”, Thanks a lot!

var script = “_-Export _all _Enter " + “"” + filePath + “"” + exportTypeStr+ unitsStr+ IgesStringStr+ toleranceStr+ " _Enter _Enter”;

Hi @Robin3,

In Python, this might look like this:

import os
import Rhino
import scriptcontext as sc

def add_quote(a):
    return '"{0}"'.format(a)

def test_export_iges():
    path = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop')
    fn = add_quote(os.path.join(path, 'test.iges'))
    et = add_quote('CATIA surfaces')
    us = sc.doc.ModelUnitSystem
    st = 'Unicode'
    tol = sc.doc.ModelAbsoluteTolerance
    scr = '_-Export _All _Enter {0} {1} _UnitSystem=_{2} _StringType=_{3} _Tolerance={4} _Enter'.format(fn, et, us, st, tol)
    Rhino.RhinoApp.RunScript(scr, True)

if __name__ == "__main__":

– Dale

Got it, Thanks Dale!