Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Settig specific values

Discussion in 'Programming Questions and Suggestions' started by a2457, Jan 31, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. a2457 Senior Engineer

    Messages:
    1,366
    Eighter i was not skilled enough/missed something,
    or is it still only possible to set say.. a rotor's velocity in increnementals , or has this been fixed, and there is a way to set a velocity of say.. 3.14 RPM from code?

    I failed to find if it is possible, or still not possible.
    if it is, an example would be handy.

    hmm...
    if not, then make this a suggestion :D
     
  2. Phoera Senior Engineer

    Messages:
    1,713
    Code:
    rotor.SetValue<Single>("Velocity",3.14);
    
    http://steamcommunity.com/sharedfiles/filedetails/?id=360966557
     
  3. Cuber Apprentice Engineer

    Messages:
    262
    If the value is a float (in C#, float is an alias for Single), you can use .SetValueFloat("Velocity", 3.14)
     
  4. a2457 Senior Engineer

    Messages:
    1,366
    u, tanks :D
     
  5. a2457 Senior Engineer

    Messages:
    1,366
    thank you.
     
Thread Status:
This last post in this thread was made more than 31 days old.