How do you set the language in SpaceClaim via scripting?

Options
Andrew Stankovich
Andrew Stankovich Member, Employee Posts: 10
Ansys Employee First Comment Photogenic
edited June 2023 in 3D Design

Is it possible to set and/or check the language/region/culture being used in SpaceClaim?

Tagged:

Best Answer

  • Andrew Stankovich
    Andrew Stankovich Member, Employee Posts: 10
    Ansys Employee First Comment Photogenic
    Answer ✓
    Options

    Below is a script to get the current User Options and Culture (language). Additionally, you can change the language and update the user options.

    # Python Script, API Version = 22
    cur_options=SpaceClaim.Api.V22.Application.UserOptions
    cur_culture=cur_options.Culture # if blank it is "Default" based on system culture
    new_options=cur_options
    new_options.Culture="en"
    SpaceClaim.Api.V22.Application.UserOptions=new_options