I found this bit of code which i use from the top level assembly file (as an external rule) to add total Qty for the project to each part. It puts the value in the iProperties "Authority" cell and i then call that cell up on my drawing in a note
I did a copy and paste of the code into a new rule, named QTY, and received an error. Attached is the error dialog box that pops up when I save the rule
Hmm... I'm not quite sure what is happening here. Is it possible for you to attach your assembly so I can take a closer look? I would need to see exactly what is going on in your specific assembly to even begin to sleuth out the cause of this error.
Sometimes when you copy/paste from this forum you get little "turds" that find their way into your code. Try a copy/paste from the attached text file, instead (it's the same code as posted by cwhetton).
Just out of curiosity - what, an old fashion way of collecting quantity of parts used in assembly doesn't work any more? Here is a picture of how it has been done before.
A lot of fabrication houses (like mine) have assembly specific details, where the detail has assembly specific information on it such as quantity. It's not up to a CAD guy to completely change the way a long established business conducts its business. I believe this is the problem that the original poster has: how do you get the part file to know assembly specific information?
A parts list is the way to go for a manufacturing environment, but AutoDesk (and other CAD packages, too) have always left us fab guys to fend for ourselves with backdoor workarounds like the previously posted BOM code.
Frankly, Mike, I don't understand a meaning of your response. I reply to the OP with the intention to show, that there is no need to dive in the deep end of the pool before investigating at least some of the options available to the software users. And that's it. To the extend - this particular topic (and some others) remind me of the days of AutoCAD. People were way to keen to customise the soft before looking into the depth of the software itself.
You have been marked on this forum as a Pro (given the amount of your posts, of course). But I guess - it is not good enough. The original question was - how to indicate on the drawing how many parts are used in the assembly, related to that drawing? Didn't I answer that question deep enough?
Many years ago we were mostly a job shop. And to this day a lot of what we do, repair of rotating equipment, means we make one or two of something for a specific job. I believe this is why the quantity was originally placed on the individual part detail drawings. However, now we also make custom reducers and putting a quantity on the individual drawing really doesn't make much sense to me since an assembly may have multiples of that part AND there may be multiple quantities of that assembly on an order. Since they (the powers that be) wouldn't let me leave off the quantity we compromised and the quanitity I call out on the part drawings is the quanitity of that part in ONE assembly since one order may have multiples of the assembly and later orders may have different quantities. Occasionally this ends up causing some confusion but the inertia to change how things are done is immense and I've mostly given up.
We were a small family company that has grown to be part of a large (2 billion/yr) company and a lot of our procedures are still the small family company way. I'm sure if the professional drafters and engineers on this board saw how some of our drawings look you'd just shake your head and turn away.
I'm not sure how I offended you. This is the original question:
Our individual part drawings reference the quantity of that part used in an assembly. Is there any way to get the quantity number for a part from an assembly and insert it in the individual part drawing? Currently I manually put this in but sometimes I forget to do this or I enter an incorrect number.
I haven't been able to find anyway to do this but any ideas on how to do this to keep my opportunites to make a mistake to a minimum?
The original question was - how to indicate on the drawing how many parts are used in the assembly, related to that drawing?
These are not the same questions. While your answer was correct for what you appear to have believed was the answer, it is not an acceptable answer to the question posed.
Now, I've reread my post a couple times here and I fail to see what it is that I said about the difference between fabrication needs and manufacturing needs that has upset you so much. Could you please explain to me how I've upset you?
The way my shop does it is we have an "order info" block on every detail. So we have a job number, order number, and order quantity in that block and then the quantity per assembly in the regular title block.
I really feel your pain here, it was horribly backwards to me when I started here. I'm going to guess that your shop is just like mine in that every tiny change in protocol causes a riot on the shop floor, too.