Create a coordinate system using ACT on the linux operating system

Options
Erubus
Erubus Member Posts: 7
Name Dropper First Comment
edited May 6 in Structures

The following works on windows workbench, but not on linux, where cs is None,code is

cs = Model.CoordinateSystems
cs_obj = cs.AddCoordinateSystem()
cs_obj.Name = "xz"
cs_obj.OriginDefineBy = Ansys.Mechanical.DataModel.Enums.CoordinateSystemAlignmentType.Associative
selection = ExtAPI.SelectionManager.CreateSelectionInfo(SelectionTypeEnum.GeometryEntities)
selection.Ids = id_list
cs_obj.OriginLocation = selection

the error is NoneType' object has no attribute 'AddCoordinateSystem'"

I output the tree structure after creating the application as follows

Model
|- Geometry Imports
|  |- Geometry Import
|- Geometry
|- Materials
|- Remote Points
|- Mesh

Now I want to add my own coordinate system. How can I add it? Thank you.

Tagged:

Answers