Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello all,
(Image is attached for clarification)
I am having a problem in using creo relations, I want to display overall dimension of a part in a specific way, that if lets say Length(Lg) is greater than Width(Wi) then it shoudl be display like this in drawing when the dimension display parameter is called; Ti x Wi x Lg and if width is greater than length then; Ti x Lg x Wi. In short greater value should be in the last. For that purpose I am using if statement and applying greater than and less than symbol. Can someone please help me understand what am i doing wrong?
Please refer to the image for clarification.
also please let me know how can i call current date into drawing? and its format too. My parameter defined for date in title block table is &BEARB_DAT, for now I am manually inputting date in the table, but I want to enter it automatically.
PLEASE HELP!
Solved! Go to Solution.
Lg = itos(L)
Wi = itos(W)
Ti = itos(T)
IF L >= W
ABMESSUNG = "BI " + Ti + "x" + Wi + "x" + Lg
ELSE
ABMESSUNG = "BI " + Ti + "x" + Lg + "x" + Wi
ENDIF
Keep in mind that the ITOS function automatically rounds fractional values. If you need to keep the decimal place, see Converting Real Numbers to Strings.
These comparison operators do not works for strings. You need to evaluate them before you use the ITOS function (and convert them to strings.)
and how to do that? I am sorry i am quite new in relations
Lg = itos(L)
Wi = itos(W)
Ti = itos(T)
IF L >= W
ABMESSUNG = "BI " + Ti + "x" + Wi + "x" + Lg
ELSE
ABMESSUNG = "BI " + Ti + "x" + Lg + "x" + Wi
ENDIF
Keep in mind that the ITOS function automatically rounds fractional values. If you need to keep the decimal place, see Converting Real Numbers to Strings.
ok thanks alot,that seemed to work fine...:)
can u also tel me about the date question i asked at the end?
Date is trickier. There is currently no method that will allow you to pull the current date into a parameter in Creo. There are only three options that I know of:
ok that helped alot..thank you so very much Tom...:)