How can I create a coordinate system and modify its type through scripting?

Pernelle Marone-Hitz
Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
100 Answers 500 Comments 250 Likes First Anniversary
✭✭✭✭
edited June 2023 in Structures

How can I create a coordinate system and modify its type through scripting?

Tagged:

Answers

  • Pernelle Marone-Hitz
    Pernelle Marone-Hitz Member, Moderator, Employee Posts: 871
    100 Answers 500 Comments 250 Likes First Anniversary
    ✭✭✭✭
    Answer ✓

    Below is an example of creating a cylindrical coordinate system:

        # create coordinate system:
        CS = ExtAPI.DataModel.Project.Model.CoordinateSystems.AddCoordinateSystem() 
        # modify CS name
        CS.Name="New CS"
        # change CS type
        CS.CoordinateSystemType=CoordinateSystemTypeEnum.Cylindrical