Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

material string

leo

New member
I want to creat a material string that will work for a family table.


this is how i am writing it, ofcoarse it dosen't work though


MATERIAL STRING == d0 "X" d1 "ANGLE IRON X" d2


were d0= to thickness relation


were d1 = angl iron leg


were d2 = length of angle iron


i am loking for a result like this 1/4 X 2.0 angle iron X 20


Thank you very much.
 
rewrite your eqn as
MATERIAL STRING = itos(d0) + "X" + itos(d1) + "ANGLE IRON X" + itos(d2)

Note:- In this dimension gets rounded off.
If you want to avoid then use

sva1 = itos(floor(va1)) + "." + itos(floor((va1 - floor(va1))*10)) + itos((va1*10 - floor(va1*10))*10)

where sva1 is string & va1 is dimension, in this 2 dec places is the precision, you can increase precision if you want.
 

Sponsor

Articles From 3DCAD World

Back
Top