How to set the axis?

Options
Mr.G
Mr.G Member Posts: 4
First Comment
**

I want to set the rotor axis by named selection,but it failed:![](https://us.v-

analysis = DataModel.AnalysisByName('Static Structural')
rotor_speed = analysis.AddRotationalVelocity()
rotor_speed.Magnitude.Output.SetDiscreteValue(0,Quantity(30000,'rev min^-1'))
ns = DataModel.GetObjectsByName('axis')[0]
cs = ExtAPI.SelectionManager.AddSelection(ns)
rotor_speed.Axis = ns

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 379
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @Mr.G which product is this in? I am afraid I don't recognise it well enough myself! If I can tag this post properly we can get it answered :)