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 and numbers please help

leo

New member
I am trying to figure out a good way of entering a material into the material field in the title block of a drawing. The way that I am currently doing it is just attaching a material string to my part in the Pro-Program window, and my title block would have the
 
This is what we use to solve the description problem just put this into the relations and have it link to the correct dimensions replace the bold items.





A1 =d7
B1 = FLOOR(A1)
C1 = (A1-B1)*100
IF C1 == 0
LENGTH = ITOS(B1) +".00"
ELSE
LENGTH = ITOS(B1) +"."+ ITOS(C1)
ENDIF


E1=d1
F1 = FLOOR(E1)
H1 = (E1-F1)*100
IF H1 == 0
WIDTH = ITOS(F1) + ".00"


ELSE
WIDTH = ITOS(F1) +"."+ ITOS(H1)
ENDIF


I1=d2
J1 = FLOOR(I1)
K1 = (I1-J1)*100
IF K1 == 0
HEIGHT = ITOS(J1) + ".00"
ELSE
HEIGHT = ITOS(J1) +"."+ ITOS(K1)
ENDIF


L1=d4
M1 = FLOOR(L1)
N1 = (L1-M1)*100
IF N1 == 0
THICKNESS = ITOS(M1) + ".00"
ELSE
THICKNESS = ITOS(M1) +"."+ ITOS(N1)
ENDIF


DESCRIPTION="TUBING - "+THICKNESS+" X "+WIDTH+" X "+HEIGHT+" X "+LENGTH
 
Your relation program works well, it looks like I will have to tweak it a lttle for what Ineed, but it will get me going. I would have been working on this for weeks. I really appreciate it.<?:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" />


Thank you.


Leo
 
Depending on your preferences you can also do this creating a note feature and setting your material parameter to the note number.
 

Sponsor

Back
Top