total qty callout based on stock number and length instead of part number

total qty callout based on stock number and length instead of part number

Scott.Hallmark
Advocate Advocate
334 Views
1 Reply
Message 1 of 2

total qty callout based on stock number and length instead of part number

Scott.Hallmark
Advocate
Advocate

As the title says, I am needing code to give a total qty based on stock number & length instead of part number.  We generate a cut list sheet of extruded metal parts, that may or may not have different fab (holes, notches, etc) and different part numbers, but the stock number and length are the same.  Looking for code to drop a "Total <Stock Numbers> at <Length>: <Total Qty>" callout on the DWG and will repeat for each Length that is different.

** If my reply resolves this issue, please choose Accept Solution **
Scott Hallmark, Design Specialist | Fluor Corporation
Inventor and AutoCAD Certified Professional, Autodesk Certified Instructor | My Plant3D Notes | AU Speaker | ROLL TIDE!
0 Likes
335 Views
1 Reply
Reply (1)
Message 2 of 2

JamieVJohnson2
Collaborator
Collaborator

Inventor part files hold the key to this question.

Open a part file, go to Tools \ Document Settings \ Bill of Materials \ Base Quantity

Here you set the quantity to a parameter value and it can sum up a length with other like parts.  (example look at structural steel (I-beam, channel, tube steel, angle) parts from the content center, it uses 'G_L').

Once you have that setup, it is a matter of using the correct quantity field in the table, there are actually 2.

"Item QTY", will always give a total count based on part number.

"QTY", will give count based on settings from part (as selected above), it could be 'each' to be same as Item QTY or set to parameter such as G_L to sum up length.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes