Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello,
Could somebody help me to set the parameter "ROZMER by relation using part dimensions?
I often use a frame that consists from square profiles and created a template where i just change dimensions as on pic below. The parameter ROZMER appears in BOM and this i would like to be changed automatically.
ROZMER should look like "(real dimension d39:3) x (real dimension d40:3) x DELKA_RAMU" in this case "100x10x2000. (parameter "DELKA_RAMU" is an overal lenght, HLOUBKA_RAMU is overal width.
Thanks in advance.
Solved! Go to Solution.
You say you want to combine "real dimensions", but your dimensions are currently driven by integers. It's super simple to combine multiple integer values into a text string. You just use the "integer to string" function:
ROZMER = ITOS(JEKL_PRUREZ_DELKA) + "x" + ITOS(JEKL_PRUREZ_TLOUSTKA) + "x" + ITOS(DELKA_RAMU/2)
On the other hand, if you want to combine real numbers you will need to first convert each real number to text and then combine the text values. You will have to decide right up front how many decimal places you want to keep. There are other discussions already on the community showing how, so I won't recreate something here.
convert real number into srting with decimals in relation
Finally, no conversion is required if you simply combine the dimensions in a note or table cell. These are built to automatically allow mixed variables. "D39:3 x D40:3" can be entered directly into a note (without the quotes).
You say you want to combine "real dimensions", but your dimensions are currently driven by integers. It's super simple to combine multiple integer values into a text string. You just use the "integer to string" function:
ROZMER = ITOS(JEKL_PRUREZ_DELKA) + "x" + ITOS(JEKL_PRUREZ_TLOUSTKA) + "x" + ITOS(DELKA_RAMU/2)
On the other hand, if you want to combine real numbers you will need to first convert each real number to text and then combine the text values. You will have to decide right up front how many decimal places you want to keep. There are other discussions already on the community showing how, so I won't recreate something here.
convert real number into srting with decimals in relation
Finally, no conversion is required if you simply combine the dimensions in a note or table cell. These are built to automatically allow mixed variables. "D39:3 x D40:3" can be entered directly into a note (without the quotes).
Thanks for your help.