Help anyone,
I am trying to create a relation to drive the title's of instances. I have the following and this is not working. Any help would be apprecitated.
1st attempt
/* This if statement relation determines which title to apply to the part, a rectangular tube description or a square tube description.
HEIGHT = D2
WIDTH = D3
WALL_THICKNESS = D5
OAL = D6
If HEIGHT == WIDTH
TITLE = TB SQ height X wall_thickness X oal
else
TITLE = "RECT TB D2 x D3 x D5 x D6"
endif
2nd attempt
/* This if statement relation determines which title to apply to the part, a rectangular tube description or a square tube description.
If HEIGHT == WIDTH
TITLE = "TB SQ" + height + "X" + wall_thickness + "X" + oal
else
TITLE = "RECT TB" + itos(height) + "X" + itos(width) + "X" + itos(wall_thickness) + "X" + itos(oal)
endif
I forgot to mention my title is currently set to a string. I have tried to floor the height, width and mat_thickness parameter and for the material thickness it resorts to nothing. Which makes sense as most of my instances are less than 1/2" thick. I have also tried the ins with the same results.
Jason