change Spaceclaim options

Options
Gabriel Messager
Gabriel Messager Member, Employee Posts: 51
5 Likes Name Dropper First Anniversary Ansys Employee
edited June 2023 in 3D Design

How to change the Spaceclaim options (for instance, Autosave, Rendering quality and Language) ?

Tagged:

Comments

  • Gabriel Messager
    Gabriel Messager Member, Employee Posts: 51
    5 Likes Name Dropper First Anniversary Ansys Employee
    Options
    #Autosave:
    
    from SpaceClaim.Api.V22 import Application
    options = Application.UserOptions
    options.AutomaticBackup = False
    Application.UserOptions = options
    
    #Rendering quality
    
    from SpaceClaim.Api.V22 import Application
    options = Application.UserOptions
    options.RenderingQuality = 6
    Application.UserOptions = options
    
    #Language
    
    cur_options=Application.UserOptions
    cur_culture=cur_options.Culture # if blank it is "Default" based on system culture
    new_options=cur_options
    new_options.Culture="en"
    Application.UserOptions=new_options