Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Can someone explain me why i can't get the value in right unit? The final unit should be obtained in kPa, instead i get sth far different
Which result are looking for as your sheet is hard to follow.
Also why are you redefining the following units?
a.f and b.f should be of dimension "length" but they are unitless because you have defined m:=6 somewhere above and so you have overwritten the unit meter. Defining a.f:=3*m make a.f=18 and not 3 meter. Use a different name or at least a different style for your variable m.
<confusing discovery>
Please note that what follows is not an answer to this problem (although somehow related).
I checked what would happen if this happened in MP3, and I found out something a little bit disturbing.
First, the good news is that it doesn't seem possible to redefine a unit accidentally. Defining a variable with the same name as a unit changes the default label that is associated to this label, but it is still possible to force it as a unit. It is bad practice, and confusing, but you can get away with it if you pay attention to the colors associated to the labels.
It becomes a bit strange (would I dare to say "creepy" ?) when you try to redefine the unit by forcing the unit label (which is very very bad practice !).
I have attached a sheet, it is hard to explain what I saw, but unless I missed something essential, it seems that the unit is both redefined, and not redefined, at the same time. PTC invented quantum calculus !
</confusing discovery>
Spooky, indeed!
I like this one most:
especially when you delete the m on the RHS and replace it by a manually typed m (which this time is your redefined unit). You get this:
So never say again that PTC would have no sense of humor!
Omg, you're right ! I wouldn't come up wth that myself