Filter by Component Reference

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
dave.laban
Posts: 303
Joined: Thu Mar 11, 2021 8:38 am
Answers: 4
x 47
x 372

Filter by Component Reference

Unread post by dave.laban »

Does anyone have a solution for being able to filter the Feature Manager by Component Reference? There is an open SPR for adding the functionality but I'm hoping there's a workaround I haven't found.

I have some PCBs that have come in through CircuitWorks so all the parts have the unique Component Reference set. I'd like to be able to quickly find the parts in the model but the tree isn't in any kind of order.
image.png
I've tried searching for a macro that might act as a search tool with no luck.
User avatar
AlexLachance
Posts: 2014
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2171
x 1859

Re: Filter by Component Reference

Unread post by AlexLachance »

Component reference is the number in parenthesis? If so that's a configuration name and it can be used as a callout, this is how we do our balloons in our air drawings
image.png
Just create your BOM template and callout the property you desire to use as a "part number"
dave.laban
Posts: 303
Joined: Thu Mar 11, 2021 8:38 am
Answers: 4
x 47
x 372

Re: Filter by Component Reference

Unread post by dave.laban »

Hi Alex, the Component Reference is separate to Configurations, it's effectively a Unique ID for each instance of a Component.
image.png
I've got some useful replies on the other place; I'd never used the Go To tool and had basically forgotten it existed. It's a good workaround for this issue (especially paired with Jim's macro to avoid right-click tedium).

https://r1132100503382-eu1-3dswym.3dexp ... QeYvkwqJ4A
User avatar
AlexLachance
Posts: 2014
Joined: Thu Mar 11, 2021 8:14 am
Answers: 17
Location: Quebec
x 2171
x 1859

Re: Filter by Component Reference

Unread post by AlexLachance »

dave.laban wrote: Tue May 07, 2024 8:14 am Hi Alex, the Component Reference is separate to Configurations, it's effectively a Unique ID for each instance of a Component.

image.png

I've got some useful replies on the other place; I'd never used the Go To tool and had basically forgotten it existed. It's a good workaround for this issue (especially paired with Jim's macro to avoid right-click tedium).

https://r1132100503382-eu1-3dswym.3dexp ... QeYvkwqJ4A
Understood, we use configuration descriptions in a similar fashion. Sounds like your need is for a "selection set". Have you tried an advanced selection...? Maybe that would give you exactly what you need?
image.png

There's a few different selection tools such as "select identical components"
User avatar
SPerman
Posts: 1854
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2030
x 1693
Contact:

Re: Filter by Component Reference

Unread post by SPerman »

It looks like the component reference is available through the API. You might be able to write a macro to accomplish what you want to do.

https://help.solidworks.com/2016/englis ... rence.html
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
dave.laban
Posts: 303
Joined: Thu Mar 11, 2021 8:38 am
Answers: 4
x 47
x 372

Re: Filter by Component Reference

Unread post by dave.laban »

AlexLachance wrote: Tue May 07, 2024 8:39 am Understood, we use configuration descriptions in a similar fashion. Sounds like your need is for a "selection set". Have you tried an advanced selection...? Maybe that would give you exactly what you need?

image.png


There's a few different selection tools such as "select identical components"
Thanks - doesn't seem like any of those tools is giving me what I'm after (i.e. to be able to type in J11 somewhere and it show me the Part in the Feature Manager).
dave.laban
Posts: 303
Joined: Thu Mar 11, 2021 8:38 am
Answers: 4
x 47
x 372

Re: Filter by Component Reference

Unread post by dave.laban »

SPerman wrote: Tue May 07, 2024 8:43 am It looks like the component reference is available through the API. You might be able to write a macro to accomplish what you want to do.

https://help.solidworks.com/2016/englis ... rence.html
Cheers. Fortunately the Go To tool gets me where I need to be so further custom macros is probably wasted effort.
User avatar
SPerman
Posts: 1854
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2030
x 1693
Contact:

Re: Filter by Component Reference

Unread post by SPerman »

I've never used Go To. To be honest, I didn't even understand how it worked until just now.

If you right click an item, and select "Go To" why doesn't it pre-populate the "find" box with the item you right clicked?
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
dave.laban
Posts: 303
Joined: Thu Mar 11, 2021 8:38 am
Answers: 4
x 47
x 372

Re: Filter by Component Reference

Unread post by dave.laban »

Presumably the logic is you don't need to find the thing you've just right clicked on as you know where it is?

I'd like some way of enabling "start from the top" without further intervention every time I use the tool.
User avatar
SPerman
Posts: 1854
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 13
x 2030
x 1693
Contact:

Re: Filter by Component Reference

Unread post by SPerman »

dave.laban wrote: Tue May 07, 2024 9:54 am Presumably the logic is you don't need to find the thing you've just right clicked on as you know where it is?
Clearly I still don't know how the "Go To" tool works. :)
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Post Reply