Best practice for creating library feature

Here we have answers to common questions about SolidWorks. If you want to request or contribute answers, just flag down a moderator.
User avatar
Hansjoerg
Posts: 115
Joined: Thu Apr 01, 2021 4:17 pm
Answers: 3
x 71
x 60

Best practice for creating library feature

Unread post by Hansjoerg »

Is there a guide / best practice for library feature creation somewhere?

I ask for the following reason: A few weeks ago jcapriotti oa showed me a great solution to a library feature problem. -> https://www.cadforum.net/viewtopic.php?p=20912#p20912

While analyzing his solution, I noticed that he didn't use the base plane at all.
Every SWX tutorial uses "base plane", but if jcapriotti doesn't do that, I'm sure it's for a reason.

I'm sure there are more tricks like this that are not mentioned in the help, and that you will find out only with time.
All the "good" news about SWX makes me feel like I'm driving a truck with two trailers straight into a dead end.
MattW
Posts: 61
Joined: Wed May 12, 2021 12:39 pm
Answers: 2
x 5
x 33

Re: Best practice for creating library feature

Unread post by MattW »

I suppose it depends on what you want to accomplish. I would start by saying do not put horizontal or vertical relations in your sketch, make them parallel and perpendicular, minimize external relations in the sketch, and make sure external relations you do use are not consumed by feature.
Tera
Posts: 227
Joined: Fri Mar 19, 2021 4:58 am
Answers: 2
x 487
x 91

Re: Best practice for creating library feature

Unread post by Tera »

@Hansjoerg It really depends on the situation. I normally try to use relations as far as possible.
I added a different version for your groove library feature. You don't need any sketch or plane to add it. Just select the edge of your shaft. It mostly uses relations. It can still be improved and corrected based on the way you need it to be.

I don't think there's a best method to do something. Each method has its own privileges.
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: Best practice for creating library feature

Unread post by berg_lauritz »

A follow up question on this:

Is it possible to dimension to different entities?
I.e. sometimes I want to dimension to an edge, sometimes to a sketch line, sometimes to an axis
having three different configurations for this is super painful & does not work because the amount of configurations is ^n.

Any ideas?

Some tags for people that (I think) are well versed in this topic:
@jcapriotti
@Tera
@HerrTick
User avatar
jcapriotti
Posts: 1897
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1236
x 2029

Re: Best practice for creating library feature

Unread post by jcapriotti »

berg_lauritz wrote: Tue Sep 20, 2022 11:38 am A follow up question on this:

Is it possible to dimension to different entities?
I.e. sometimes I want to dimension to an edge, sometimes to a sketch line, sometimes to an axis
having three different configurations for this is super painful & does not work because the amount of configurations is ^n.

Any ideas?
I don't see a way to do it. The reference must be replaced with the same type of reference. Do you have examples of multiple reference types for the same library feature?
Jason
User avatar
Bryan O
Posts: 113
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 18
x 37

Re: Best practice for creating library feature

Unread post by Bryan O »

I just posted an example of this on another thread but thought this would apply here as well.
Take a look.
Input is always appreciated.
Attachments
CAM AND DOWEL (ALL EDGES).SLDLFP
(217.73 KiB) Downloaded 123 times
User avatar
jcapriotti
Posts: 1897
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 32
Location: The south
x 1236
x 2029

Re: Best practice for creating library feature

Unread post by jcapriotti »

Bryan O wrote: Wed Jan 03, 2024 8:02 am I just posted an example of this on another thread but thought this would apply here as well.
Take a look.
Input is always appreciated.
Do the hole quantities need to change if the base plate changes size?
Jason
User avatar
Bryan O
Posts: 113
Joined: Wed Mar 24, 2021 7:34 am
Answers: 1
Location: Lowell MI
x 18
x 37

Re: Best practice for creating library feature

Unread post by Bryan O »

Yes but I allow that to be changed manually.
As a rule, the spacing is no less than 12 no greater than 18 but there is a fudge factor there.
Post Reply