Convert unit based on unit system

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 444
250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
✭✭✭✭
edited June 2023 in Structures

Convert unit based on unit system

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 444
    250 Likes Solution Developer Community of Practice Member Ansys Employee First Anniversary
    ✭✭✭✭
    Answer ✓

    ConvertToUnitSystem(self: Quantity, unitSystem: str, quantityName: str)

    Example:

    my_quantity.ConvertToUnitSystem("SI", "Length")
    

    The following unit-system names can be used: “SI”, “CGS”, “British Technical”, “US Engineering”