Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I'm bringing in a value from a text file. I'm pretty sure Prime wants to display the value in radians. But the value is really 84.11 degrees. How can I make Prime display this as 84.11 degrees?
Solved! Go to Solution.
Yes, of course Prime works with angles in radians, and that makes perfect sense.
Why not define your angle with the correct unit from the outset, then there won't be any problems with the display:
A unitless numerical value is, of course, interpreted as a value with the (pseudo) unit radiant if it is to be interpreted as an angle.
If you absolutely want to represent it as an angle in degrees, you must multiply the value by pi/180. As you can see this is exactly what the unit "deg" does when its applied to a numeric value
If a numerical value should be seen as quantity in kiloNewton, then simply multiply it by Unit kN. The same applies to angles and degree. Exception to this rule are temperature units because the conversion between Kelvin and °C or °F include not only scaling (multiplication), but also scale shifting (addition).
But if your calculations have yielded a value of 84.11 and it should actually be 84.11°, then this only shows that you forgot to consistently use one of Prime's advantages, namely its ability to handle units.
So instead of retroactively changing the value to degrees, you should check where the negligence occurred beforehand.
Of course if the value simply was read in from a data file like an Excel sheet where no units are supported, you have to multiply the data by the appropriate unit.
Thank you for your continued help.
I try your suggestion, and I get 1.465 deg. see attached.
Again, without seeing the value in Z1ANG11 we can only speculate.
But if the value in Z1ANG11 is 84.11, the Prime is doing nothing wrong!
After all 84.11 rad = 4819.148 deg.
BTW, having to open pdf's just for a one lines is a bit tedious. Maybe you could post screenshots embedded in the text which makes it easier to read.
Furthermore you will have to clearly say what you want to achieve.
If Z1ANG.11 contains the naked value 84.11 and you want to define a variable Z1ANG with 84.11 deg, then you do it that way
Can't comment on this as I don't see the value of Z1ANG.
Obviously it is 1.465
I shared some files.
Fixed!
11 pages (!!!) just to show one variable?
11 pages and a huge number of errors.
11 pages and no clue what you actually want to achieve
Furthermore it seems that the sheet won't allow me to add calculations - they appear like disabled regions. Have no idea, why.
Attach a three line worksheet just with the necessary definitions but please at least CLEARLY say what you really want to achieve, whyt you expect to see.
I have guessed a couple of times above in my various answers and I think I have nothing more to add.
So I am repeating myself again here:
So again - if you read in a number(!) from Excel and want to be a resistance in kiloohm, multiply it by kohm. And if you want it to be an angle in degree, multiply it by deg. That's all it takes.
Yeah.... I was missing the underscore 11
