Is it possible to make Solidworks show the total number of a particular part i have in an assembly in the drawing stamp of that part?
Please try "Add Quantity Property" task from #TASK library.
It will count the number of components in particular assembly and add a property to each part. You will still need to modify your drawing sheet template. For existing drawings you can quickly replace all sheet templates with another task in the library.
Hope this can help.
Yes, it's possible.
Would a macro which adds a custom property with qty help you? Added custom property could be linked to your drawing.
Hi Viktor, macro works fine. Great job! Just one warning for users: close target assembly before running the macro.
All you need is to add the link in a Drawing to Part Custom Property "QTY":
Thank you for advice. I modified and reuploaded the script.
Now the task will warn if any of the components were opened as read only mode.
Very nice Macro, Vicktor Bovzdarenko, thank you! I did some testing, it seems to work well with one concern: I use some items (or just some instances of items) that have the component property "Exclude from bill of material" selected. The macro ignores this, and includes them in the QTY count, so the macro-reported QTY does not match the desired BOM-reported property. Is it possible to not include all instances/items that are "excluded from bill of material"?
Thanks - Scott
Thank you for your great idea. I will apply this change shortly.
It worked just really fine, perfect.
Just for asking, do you have any idea on how much will the pro version cost? Will it be monthly, yearly or One-time-only buy? And any prevision on the day of release?
One more thing,
I have lots of sub-assemblies inside the main assembly, how can i make the quantity property show the total number of parts, not in the sub-assembly, in the main one?
Thank you for your interest.
Regarding showing the quantity of the components relatively to main model:
At the moment when you run the task for particular assembly then task will calculate for this assembly total instances of components (including all components in subassemblies). Therefore, if you run the task for main assembly then the QTY property will be calculated as a total number of components in this assembly and subassemblies. If you run the task only for subassembly, then the components will be calculated only in scope of current assembly.
Another option is to run the task for several subassemblies and select an option to 'Append' QTY. But be carefull with this option as there already could be some values from previous projects in document properties which you do not want to append.
Please find below the details related to the subscription packages that were are planning to introduce in future.
Thank you, do you happen to know when will it be released?
And another thing, when the task is running, i always get "Failed to extract script results", is it normal?
Thank you again for your contribution.
Requested change was applied. Task does not count excluded from BOM components (and their dependencies). Task will show a message with a list of all ignored components so that you can double check that macro worked as it supposed to work. Also an option was added (not selected by default) to count those components even if they were excluded from BOM.
Hi Viktor, after a quick test-drive it appears to work as one would want it to. Great work - thanks!!!
I did think of one possible pitfall with implementing this, I need to consider it a bit more and will reply separately.
Thanks again - great tool.
Hi Viktor, there is one situation that may prevent the effective use of the QTY property.
For symmetry items (100% symmetrical, that is), a drawing is made for the “shown” hand but not for the “opposite” hand. Previous practice is for the shop personnel to hand-mark all drawings with the qty to make, maybe 1, or 2, or “1/1” which is shorthand for 1 shown and 1 symmetrically opposite.
With the opportunity to automate the QTY on the drawings (great improvement!) the symmetry items will not be captured on any drawings with the “QTY” property, which is not good of course. Here’s a thought, not sure if it is practical or not.
For file naming of mirrored parts within SW, there is the options to specify a custom prefix or suffix to name the mirrored parts. For example the shown part could be 1234-003 block, and the mirror 1234-003 blockmirror, or mirror1234-003 block, or 1234-003 blocksymmetry, 1234-003 block%, etc…
Is it possible to make a “QTYOPP” property which is applied to the shown hand of the part, with the number being the quantity of usages of the opposite handed part? This would apply to any mirrored parts which have the same base file name as the shown hand, but with either a prefix or suffix that matches a user-specified argument. The key is that this QTYOPP property counts the opposites, but is applied to the shown version of the component.
Of course the same handling of suppressed and “excluded from BOM” components would still be needed for the mirrored items.
Sometimes it’s difficult to convey with words, let me know if this is not clear and I can try to explain/show differently.
Thanks for considering - Scott
Retrieving data ...