How to count only visible identical items in assembly
How to count only visible identical items in assembly
All
I wish to get an item count, limited to the subset that shows in the active Display-State. Seems there ought to be an easy way, but I have not found it.
I am doing a multiple sheet drawing of a complex weldment. I have created a number of Display-States to show a suggested progression of assembly. I show a Display-State per sheet. It would be helpful to get an item count for a type of thing shown in that sheet.
I can go to the assembly model, select one of the items, filter for identical items, and isolate those. That gives me a screen showing just the items I want to count. How do I find how many? I can copy them, paste them in a new assembly, and then get a count. This method seems a bit over the top.
What am I missing?
Thanks
Dwight
I wish to get an item count, limited to the subset that shows in the active Display-State. Seems there ought to be an easy way, but I have not found it.
I am doing a multiple sheet drawing of a complex weldment. I have created a number of Display-States to show a suggested progression of assembly. I show a Display-State per sheet. It would be helpful to get an item count for a type of thing shown in that sheet.
I can go to the assembly model, select one of the items, filter for identical items, and isolate those. That gives me a screen showing just the items I want to count. How do I find how many? I can copy them, paste them in a new assembly, and then get a count. This method seems a bit over the top.
What am I missing?
Thanks
Dwight
I stumbled onto a good solution. Save a selection set. The count is then shown in the selection set folder list:
Dwight
Go to full postDwight
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: How to count only visible identical items in assembly
Hello Dwight,
The best way would be to add configs and use a "delete body" feature to "create" the steps IMO. If you'd like I could go into further details if required.
Edit: The reason I say to use delete body feature rather then display states is that there are no way to get BOM's according to display states. So using the deletebody feature a multitude of times will allow you to create the desired number of steps to show how it is assembled once your multibody weldment has been created.
The best way would be to add configs and use a "delete body" feature to "create" the steps IMO. If you'd like I could go into further details if required.
Edit: The reason I say to use delete body feature rather then display states is that there are no way to get BOM's according to display states. So using the deletebody feature a multitude of times will allow you to create the desired number of steps to show how it is assembled once your multibody weldment has been created.
Re: How to count only visible identical items in assembly
Alex
Yes, that would be a good approach. Another way is to break up the assembly into subassemblies and create drawings for each. I am thinking of bailing out and doing that. Doing the sub-assemblies probably will work better in our collaborative design situation, with a lot engineers who like it simple.
Thanks
Dwight
Yes, that would be a good approach. Another way is to break up the assembly into subassemblies and create drawings for each. I am thinking of bailing out and doing that. Doing the sub-assemblies probably will work better in our collaborative design situation, with a lot engineers who like it simple.
Thanks
Dwight
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: How to count only visible identical items in assembly
Don't forget, splitting it in sub-assemblies creates new part/assembly numbers and is somewhat "harder" to manage for a company.Dwight wrote: ↑Tue Sep 21, 2021 9:42 am Alex
Yes, that would be a good approach. Another way is to break up the assembly into subassemblies and create drawings for each. I am thinking of bailing out and doing that. Doing the sub-assemblies probably will work better in our collaborative design situation, with a lot engineers who like it simple.
Thanks
Dwight
Re: How to count only visible identical items in assembly
Yes indeed. That's what I was trying to avoid. It does cost money. On the other hand, we know how to do it.AlexLachance wrote: ↑Tue Sep 21, 2021 9:44 am Don't forget, splitting it in sub-assemblies creates new part/assembly numbers and is somewhat "harder" to manage for a company.
-
- Posts: 47
- Joined: Fri Mar 12, 2021 10:46 am
- x 5
- x 57
Re: How to count only visible identical items in assembly
You're not using an assembly for a weldment, are you?
Use the weldments feature, and you can create sub-weldments.
Use the weldments feature, and you can create sub-weldments.
Re: How to count only visible identical items in assembly
Never tried but macro might be useful to count the visible parts/components.
Deepak Gupta
SOLIDWORKS Consultant/Blogger
SOLIDWORKS Consultant/Blogger
Re: How to count only visible identical items in assembly
I stumbled onto a good solution. Save a selection set. The count is then shown in the selection set folder list:
Dwight
Dwight
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: How to count only visible identical items in assembly
AlexAlexLachance wrote: ↑Thu Aug 11, 2022 8:13 am Good idea, just be careful, the selection set does not update itself to count new instances as far as I'm aware.
Good point. Probably best to delete the set once you get the number.
Dwight
Re: How to count only visible identical items in assembly
I now find that the count shown for a Selection Set is wrong if you box select items. A box select adds one to the count, where individual selects give a correct count.
I'm on SW2022.
If someone would confirm this, I'll add it to the bug list.
Thanks
Dwight
I'm on SW2022.
If someone would confirm this, I'll add it to the bug list.
Thanks
Dwight
- AlexLachance
- Posts: 2226
- Joined: Thu Mar 11, 2021 8:14 am
- Location: Quebec
- x 2419
- x 2061
Re: How to count only visible identical items in assembly
I'm not quite sure I understand. When you do a "box selection", even though there are X instances selected, it will only show a count of 1? (X being >1)
I'm on 2023 SP4 and that behavior is not occuring. The box selection shows the correct count.
Re: How to count only visible identical items in assembly
Alex
Say I have 4 inserts in a plate, I have the assembly open, and I filter so only the inserts show. If I box-select all the inserts and create a Selection Set, the count is 5. If I select all the inserts individually, the count is 4.
Note that I am certain there are no duplicate inserts at any location.
Dwight
Say I have 4 inserts in a plate, I have the assembly open, and I filter so only the inserts show. If I box-select all the inserts and create a Selection Set, the count is 5. If I select all the inserts individually, the count is 4.
Note that I am certain there are no duplicate inserts at any location.
Dwight