Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Relations for alt part number

Status
Not open for further replies.

Caper1

Mechanical
Jul 29, 2003
20
0
0
US
Hi All:

I'm looking to use both the file name and a different name in my BOM. I know I need to set a relations but just do not know how to word it.
here are my parameters:
alt_prt_no (yes/no)
alt_part_number (new part number)

if alt_prt_no=yes then alt_part_number(help)

-Caper-
 
Replies continue below

Recommended for you

Hello,

Do you mean the BOM on the drawing or the one on the model?

If the one on the drawing then this is how we have overcome this.

We have a model name e.g. abcd.prt

We use the one generic model to create an infinite number of sizes, so we need to create a unique drawing number, which we have done by using dimensions that will change.

e.g. if abcd.prt is a cube you would enter the three dimensions e.g. length, width and depth.

we convert these to text so if length=10, width=15 and depth=20

a relation is required

real_len=itos(length)
real_wid=itos(width)
real_dep=itos(depth)

real_name=real_len + " " + real_wid + " " + real_dep

On the drawing BOM either add a column showing asm.mbr.real_name.

For your solution,
the realtion would be
if alt_part_no=="YES"
real_name=name:2
else
real_name=name:1
endif

I haven't tested this, but it is a start, hope this is understandable and some help, let me know how you get on or if you have any problems. I'm about to go home, so will have to wait until the morning.




Hope this helps.

----------------------------------

maybe only a drafter
but the best user at this company!
 
Status
Not open for further replies.
Back
Top