What are your most impressive tricks of Solidworks

User avatar
matt
Posts: 1592
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2387
Contact:

Re: What are your most impressive tricks of Solidworks

Unread post by matt »

Here's an old school trick:

- In Tools, Options, General, use Single Command Per Pick
- open a sketch
- draw a line, and it turns off the line command after a single line
- double click the line tool on the toolbar, and now you can draw a chain of lines.

Useless? maybe.
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: What are your most impressive tricks of Solidworks

Unread post by berg_lauritz »

matt wrote: Sat Aug 07, 2021 4:38 pm Here's an old school trick:

- In Tools, Options, General, use Single Command Per Pick
- open a sketch
- draw a line, and it turns off the line command after a single line
- double click the line tool on the toolbar, and now you can draw a chain of lines.

Useless? maybe.
You can also double click to not make a sketch line.
Animation (56).gif
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: What are your most impressive tricks of Solidworks

Unread post by Lucas »

Making a 3Dsketch from bodies:

Create the solid, put the view in Wireframe mode, Box Selection all the edges (or Ctrl+A).
Open 3Dsketch (with everything already selected) and convert entities, then Delete Body.

Is the fastest way to create 3dsketches that I know, and feels kind of hidden because you cant select the edges easily if not in that order.

=)
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

Lucas wrote: Mon Aug 09, 2021 7:18 pm Making a 3Dsketch from bodies:

Create the solid, put the view in Wireframe mode, Box Selection all the edges (or Ctrl+A).
Open 3Dsketch (with everything already selected) and convert entities, then Delete Body.

Is the fastest way to create 3dsketches that I know, and feels kind of hidden because you cant select the edges easily if not in that order.

=)
Yup. I learned that from @Alin at SW World a few years ago.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
David Matula
Posts: 74
Joined: Tue Mar 30, 2021 12:43 pm
Answers: 0
x 55
x 70

Re: What are your most impressive tricks of Solidworks

Unread post by David Matula »

berg_lauritz wrote: Wed Aug 04, 2021 12:40 pm @David Matula, you do know about the Promote function, don't you?

If you have a common subassembly for parts (i.e. you ALWAYS put the together some fasteners with a specific bracket/purchased part), but you don't want to show it on a BOM, you can promote this assembly and it will always dissolve on your BOM and in the drawing.

This also works with virtual assemblies.

Screenshot 2021-08-04 113900.png
Screenshot 2021-08-04 114100.png
It would be best that I do not get to fancy here. Some of the other guys could get really confused. Also not to sure how that would work with Windchill bom, so best to stick with what they know works. Only have a few months left of this contract. So if anyone is looking to hire....
User avatar
DanPihlaja
Posts: 862
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 815
x 993

Re: What are your most impressive tricks of Solidworks

Unread post by DanPihlaja »

Not a super trick. Just something that some people might not know about, because I just taught it to about 4 people here.

In fact, it really isn't a Solidworks thing at all, but a Windows thing.

When you are running a program with tabs, like Outlook, Word, Excel, Solidworks.

And specifically, when I say tabs, I mean these:
From Outlook:
image.png
From Solidworks:
image.png
From Word:
image.png
Navigating between tabs can be done in multiple ways:

1) Click on the tab that you want......easy peasy...how everyone does it

2) Put your mouse in the area (with the window active) and roll your mouse wheel. Each roll "click" of the mouse wheel moves one tab over, either right or left.

3) CTRL + Page Up or CTRL + Page Down. Page Down cycles to the right, while Page Up cycles to the left. (works in Solidworks, and most browsers that use tabs (Chrome, Firefox, Edge, etc...), but NOT Outlook, Word, Excel, etc...)

4) Tap the ALT key, then tap one of the corresponding keys to switch to the tab that you want:
Example: To switch to the Layout Tab in Word, tap the ALT key, then tap P
image.png
Works in Microsoft stuff, but not in Browsers or Solidworks.

5) In a browser, CTRL + TAB will switch between tabs (because these are actually different pages...so its like switching between different documents in Word, etc...)
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
JuTu
Posts: 81
Joined: Thu Mar 25, 2021 4:00 am
Answers: 1
Location: Finland
x 55
x 35

Re: What are your most impressive tricks of Solidworks

Unread post by JuTu »

dpihlaja wrote: Tue Aug 17, 2021 4:33 pm 5) In a browser, CTRL + TAB will switch between tabs (because these are actually different pages...so its like switching between different documents in Word, etc...)
OH!? This works in Office products too!? That's new to me.
And in Firefox, Edge and Chrome browsers you can switch between open tabs. Like switching thru open windows in Solidworks.

EDIT: Somehow I feel like I didn't properly read what Dan had written. oh my... oh me... <()>
EDIT2: But then I realised to check and confirm. I works :D CTRL + TAB changes between windows/tabs in browsers, Office and SW. I learned atleast one new thing today :D
Sincerely,
JuTu
__________________
Lentäjä on ulkona ja lukossa.
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 989
x 466

Re: What are your most impressive tricks of Solidworks

Unread post by Tom G »

(Why to avoid Angle Mates: they flip orientation by themselves, so that they require attention so that your "stable fully defined" assembly remains as you intended it.)

How to avoid Angle Mates

I've figured this one out lately and it's proven itself stable so far. If and only if you desire a 45 degree angle, mate a primary plane as Symmetric between two perpendicular primary planes of an adjacent component. The order of selection matters, so that the first selected entity will be the middle item, and the other two are its "ends". This mate is able to be flipped (intentionally). The major advantage of this method over the method below is that it persists through reorientation of both of the mated components.

(My old method which has minor issues:) Define a reference plane at the desired angle in the assembly, and mate a primary reference plane Parallel to it. This is stable and does not flip by itself, and also can be flipped intentionally. However, if the component is desired to reorient in the assembly, then either the plane needs redefined, or a new reference parallel plane needs created.

Also, you can create a new reference plane in the component (instead of in the assembly) which holds the desired angle, and is then chosen to mate Parallel to other entities.

Furthermore, I strongly avoid Perpendicular, primarily because it cannot flip. Parallel is equally stable and yet more flexible.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: What are your most impressive tricks of Solidworks

Unread post by zwei »

So this is something that i stumble by accident today...

You can actually pull the property manager "Out" from the standard tree and put it side by side to the feature tree..
It take up the some display space but i no longer need to have extra click to expand the feature tree to search for the plane or surface that i need...
image.png
Now.. if only i can find a way to pin the property manager so that it is always shown even if empty..
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: What are your most impressive tricks of Solidworks

Unread post by berg_lauritz »

Zhen-Wei Tee wrote: Wed Dec 01, 2021 6:37 am So this is something that i stumble by accident today...

You can actually pull the property manager "Out" from the standard tree and put it side by side to the feature tree..
It take up the some display space but i no longer need to have extra click to expand the feature tree to search for the plane or surface that i need...
image.png

Now.. if only i can find a way to pin the property manager so that it is always shown even if empty..
What the.......

MAGIC! You're too dangerous to be left alive!
User avatar
DanPihlaja
Posts: 862
Joined: Thu Mar 11, 2021 9:33 am
Answers: 25
Location: Traverse City, MI
x 815
x 993

Re: What are your most impressive tricks of Solidworks

Unread post by DanPihlaja »

Zhen-Wei Tee wrote: Wed Dec 01, 2021 6:37 am So this is something that i stumble by accident today...

You can actually pull the property manager "Out" from the standard tree and put it side by side to the feature tree..
It take up the some display space but i no longer need to have extra click to expand the feature tree to search for the plane or surface that i need...
image.png

Now.. if only i can find a way to pin the property manager so that it is always shown even if empty..
There are some drawbacks to this. I honestly cannot recall what they were, but they were big enough that I ended up not using it anymore.

If I can remember them, I will post them here.
-Dan Pihlaja
Solidworks 2022 SP4

2 Corinthians 13:14
User avatar
bnemec
Posts: 1954
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2562
x 1411

Re: What are your most impressive tricks of Solidworks

Unread post by bnemec »

dpihlaja wrote: Wed Dec 01, 2021 9:38 am There are some drawbacks to this. I honestly cannot recall what they were, but they were big enough that I ended up not using it anymore.

If I can remember them, I will post them here.
When the property manager is docked it grows in width all day, not enough that I notice it right away but when it replaces half the width of the view port I wonder when did that happen?
I sure do wish the feature manager (tree) could be docked and never move or collapse automatically, it seems that I need access to it whenever SW decides to pop it out over the viewport and collapse it. Mostly because there are many things that are easier to select in the feature manager than in the graphics area; or maybe I'm just doing it wrong.
User avatar
mike miller
Posts: 878
Joined: Fri Mar 12, 2021 3:38 pm
Answers: 7
Location: Michigan
x 1070
x 1231
Contact:

Re: What are your most impressive tricks of Solidworks

Unread post by mike miller »

dpihlaja wrote: Wed Dec 01, 2021 9:38 am There are some drawbacks to this. I honestly cannot recall what they were, but they were big enough that I ended up not using it anymore.

If I can remember them, I will post them here.
In my experience, the main drawback is the fact that no matter where you place it, it's either covering up something in the graphics window OR it's too far away. This drawback is greater than the pain of expanding the flyout tree IMHO.
He that finds his life will lose it, and he who loses his life for [Christ's] sake will find it. Matt. 10:39
User avatar
bnemec
Posts: 1954
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2562
x 1411

Re: What are your most impressive tricks of Solidworks

Unread post by bnemec »

mike miller wrote: Wed Dec 01, 2021 12:13 pm In my experience, the main drawback is the fact that no matter where you place it, it's either covering up something in the graphics window OR it's too far away. This drawback is greater than the pain of expanding the flyout tree IMHO.
IIRC there's a macro that automatically expands the feature tree each time. But I cannot find it.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: What are your most impressive tricks of Solidworks

Unread post by zwei »

mike miller wrote: Wed Dec 01, 2021 12:13 pm In my experience, the main drawback is the fact that no matter where you place it, it's either covering up something in the graphics window OR it's too far away. This drawback is greater than the pain of expanding the flyout tree IMHO.
Interestingly, it had never notice any noticable cover up since i start using this... Maybe because i had been positioning my part center or slightly off-to right by habit (i only realize it when i think about it now...)

The main drawback for me will be the height of the window that is inconsistent which annoy me a little bit
image.png
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: What are your most impressive tricks of Solidworks

Unread post by Lucas »

bnemec wrote: Wed Dec 01, 2021 12:29 pm IIRC there's a macro that automatically expands the feature tree each time. But I cannot find it.
But you will need to run the macro every time to expand it, no? If you find it, please post here. I just got useless Google results... :/

I remember to find this PropertyManager split window when I was looking how to set the Flyout FeatureManager to be the main tree (like others CAD), but unfortunately it's not possible. There's the C shortcut for the Flyout Tree, but it needs to activated first and is kind of useless.
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: What are your most impressive tricks of Solidworks

Unread post by berg_lauritz »

dpihlaja wrote: Wed Dec 01, 2021 9:38 am There are some drawbacks to this. I honestly cannot recall what they were, but they were big enough that I ended up not using it anymore.

If I can remember them, I will post them here.
Tried it out the whole day.

Drawbacks:
  • renaming items in the feature tree with F2 is more painful. If you click on the item you have to be FAST to hit F2 otherwise you have to deselect the item & re-select again & quickly hit the button. This seemed to be especially painful in drawings for me.
  • The sizing of this seems to be (as are so many things) document specific. And the standard size is tiny so you have to re-size it.
On the positive side:
It is SO MUCH MORE comfortable to work with the feature tree on the left side.... Currently I am happily accepting the drawbacks for this.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: What are your most impressive tricks of Solidworks

Unread post by zwei »

berg_lauritz wrote: Thu Dec 02, 2021 3:19 pm Tried it out the whole day.

Drawbacks:
  • renaming items in the feature tree with F2 is more painful. If you click on the item you have to be FAST to hit F2 otherwise you have to deselect the item & re-select again & quickly hit the button. This seemed to be especially painful in drawings for me.
  • The sizing of this seems to be (as are so many things) document specific. And the standard size is tiny so you have to re-size it.
On the positive side:
It is SO MUCH MORE comfortable to work with the feature tree on the left side.... Currently I am happily accepting the drawbacks for this.
Dint really notice the renaming issue until you mentioned it , it seem to be only specific to drawing view? I have no issue renaming in Part and ASM

FYI, you can actually click on your drawing view → wait for the property manager to pop out → click again and it will allow you to rename (similar to pressing F2)
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
Lapuo
Posts: 109
Joined: Tue Mar 09, 2021 2:06 am
Answers: 0
x 176
x 106

Re: What are your most impressive tricks of Solidworks

Unread post by Lapuo »

I also remember using this , and then i stopped for some reason which annoyed me , but i cant remember what it was.
I am annoyed because i cant remember it :D
I used it today , and i works well , so i guess i will continue.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: What are your most impressive tricks of Solidworks

Unread post by zwei »

Not sure had it been mention before...

But something that i realize i cant live without recently is binding the Hide All Types (Plane, Sketches, axis, etc) to a keyboard shortcut

Now i just need a macro to hide and show all surfaces body...
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
RMcHugh
Posts: 29
Joined: Mon Mar 08, 2021 3:20 pm
Answers: 1
Location: NH, USA
x 90
x 29
Contact:

Re: What are your most impressive tricks of Solidworks

Unread post by RMcHugh »

Found an error in the macro I posted. Working on it.
I found that the previous code would inadvertently hide a solid body.

The rest of the untested lines have now been commented out and it works as intended for me.
Uncomment a set of these lines to test behavior for a specific surface type.

Ray
Attachments
HideRefGeom_2.swp
(61.5 KiB) Downloaded 475 times
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

If you're going to be using linear patterns in an Assembly, keep in mind the default direction for the pattern. For example, quite a few of my Assemblies are concrete (with rebar) or guardrails. I always place my first rebar, posts, rails, etc on the left side, so when I use a linear pattern I don't need to switch directions. It's a little thing, but can add up if you have multiple patterns, and it's generally just as easy to start on the left as the right.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 989
x 466

Re: What are your most impressive tricks of Solidworks

Unread post by Tom G »

This hardly counts as a most impressive trick. All the same, I did not make a new thread for this, and could not find a thread like, "What did you learn that you never knew before?"

Today I learned more lazy.
When entering today's date into custom properties, I typed in the month and date and left out the year by mistake. The date field auto-filled the current calendar year. This is a tiny time saver which is multiplied by the many implemented uses today.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: What are your most impressive tricks of Solidworks

Unread post by zwei »

Tom G wrote: Mon Mar 07, 2022 12:31 pm This hardly counts as a most impressive trick. All the same, I did not make a new thread for this, and could not find a thread like, "What did you learn that you never knew before?"

Today I learned more lazy.
When entering today's date into custom properties, I typed in the month and date and left out the year by mistake. The date field auto-filled the current calendar year. This is a tiny time saver which is multiplied by the many implemented uses today.
If you feel a bit "more lazy"
You could setup a autohotkey to key in today date in the format you need

I originally setup mine to key in date in DD-MMM-YYYY format in all caps and had ever bother about checking the date when filling my rev table
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
the_h4mmer
Posts: 136
Joined: Mon Jan 31, 2022 6:49 am
Answers: 1
x 106
x 80

Re: What are your most impressive tricks of Solidworks

Unread post by the_h4mmer »

Tom G wrote: Thu Oct 28, 2021 4:22 pm (Why to avoid Angle Mates: they flip orientation by themselves, so that they require attention so that your "stable fully defined" assembly remains as you intended it.)

How to avoid Angle Mates

I've figured this one out lately and it's proven itself stable so far. If and only if you desire a 45 degree angle, mate a primary plane as Symmetric between two perpendicular primary planes of an adjacent component. The order of selection matters, so that the first selected entity will be the middle item, and the other two are its "ends". This mate is able to be flipped (intentionally). The major advantage of this method over the method below is that it persists through reorientation of both of the mated components.

Furthermore, I strongly avoid Perpendicular, primarily because it cannot flip. Parallel is equally stable and yet more flexible.
What about using the mid-plane relation between your perpendicular primary planes for a reference plane and then adding a coincident mate? I guess it would add another feature, but wonder if it would be more advantageous or if there are hidden drawbacks. I don't know that I'll have any use case to test either method out soon, but just curious if anyone would know offhand.
User avatar
the_h4mmer
Posts: 136
Joined: Mon Jan 31, 2022 6:49 am
Answers: 1
x 106
x 80

Re: What are your most impressive tricks of Solidworks

Unread post by the_h4mmer »

Maybe this is a silly "trick" to mention, but I think I use the space bar more than any shortcut for reorienting the model view. I use it so much that the SpaceMouse I have has become pretty obsolete (I might use it if it had more hotkeys I could configure).

I'm also a fan of:
- Design Checker tool (especially great for drawing consistency)
- Symmetry Check tool
- Creating a Config for 'simplified' geometry (suppress any features not needed/visible)
- Embossing 3D printed parts with PDM file version to track the physical versions
- Design History (especially looking at feature properties to see who made the last changes and/or when)
- Zebra stripes
- Surfacing tools (they can be a headache but also be a tremendous help)

Best of all, I love the "Please wait, Solidworks is busy" message, since it's my reminder that I should stop every so often to stretch or go get some water. ;;
User avatar
Tom G
Posts: 355
Joined: Tue Mar 09, 2021 9:26 am
Answers: 0
Location: Philadelphia, PA area
x 989
x 466

Re: What are your most impressive tricks of Solidworks

Unread post by Tom G »

the_h4mmer wrote: Tue Mar 08, 2022 6:39 am What about using the mid-plane relation between your perpendicular primary planes for a reference plane and then adding a coincident mate? I guess it would add another feature, but wonder if it would be more advantageous or if there are hidden drawbacks.
I've done that before, both in assembly reference planes and in component reference planes. It is also very stable, and also available in lightweight mode because it is a reference entity. I prefer parallel to coincident for axial orientation.
Early on as a novice, I received a series of van stone flange parts which had their hole pattern in a diamond (+) instead of a square (x). I already began using this in projects, then later added mid-plane 45º planes to use as substitute-top and substitute-right planes. It remains this way, and mates stably even if this is an outlier in the library as not compliant with import standards developed later.
blanke
Posts: 1
Joined: Thu May 12, 2022 3:19 am
Answers: 0
x 1
x 1

Re: What are your most impressive tricks of Solidworks

Unread post by blanke »

bnemec wrote: Wed Dec 01, 2021 12:01 pm When the property manager is docked it grows in width all day, not enough that I notice it right away but when it replaces half the width of the view port I wonder when did that happen?
I sure do wish the feature manager (tree) could be docked and never move or collapse automatically, it seems that I need access to it whenever SW decides to pop it out over the viewport and collapse it. Mostly because there are many things that are easier to select in the feature manager than in the graphics area; or maybe I'm just doing it wrong.
Maybe a bit late, but I encountered the same problem as you described. I've found a macro which could change the width of the feature manager design tree. The only downside was that if you have placed the property manager side by side with the feature manager, it would only change the feature manager width. So I started looking into docking the property manager with VBA and adjusted the code so that the property manager first docks to the original location and then change the width. This will change the width of both the property and feature manager. After this step it wil dock the windows side by side again. Lastly it will change the width of the feature manager design tree once more. Because the windows are side by side, the width of the property manager will not change. There is a standard width in this code of 350 pixels for both windows which can be adjusted to your preference independently.

Macro code:

Code: Select all

'----------------------------------------
'
' Preconditions:		Model document is open.
'
' Postconditions:	Width of featuremanager design  tree and property manager are controlled by WidthFeat and WidthProp (default 350)
'				Property manager is docked side by side with the featuremanager (position 2)
'
'
' Notes:            When you work with the property manager side by side with the feature manager design tree
'                   sometimes the width of this window will grow over time. You can adjust the width of the feature
'                   manager design tree, but this will not chanage the width of the property manager when docked side by side.
'                   This macro first docks the property manager on the original position, then changes width and docks it side by side.
'                   After docking it will change the width of the feature manager once more, if you would like a different width of this.
'
'                   If you want to change the docking location you can chanage the number at the end of the last line.
'                   0 = original, 1 = bottom left, 2 = side by side
'
'----------------------------------------
Option Explicit

Sub main()

    Dim swApp                   As SldWorks.SldWorks
    Dim swModel                 As SldWorks.ModelDoc2
    Dim nWidth                  As Long
    Dim nRetVal                 As Long
    Dim WidthProp               As Integer
    Dim WidthFeat               As Integer
    Dim Part                    As Object
    
    Set swApp = CreateObject("SldWorks.Application")
    Set swModel = swApp.ActiveDoc
    
    Set Part = swApp.ActiveDoc
    Dim myModelView As Object
    Set myModelView = Part.ActiveView
    myModelView.FrameState = swWindowState_e.swWindowMaximized
    
    'Property manager is docked on original location, same place as feature manager design tree
    swApp.SetUserPreferenceIntegerValue swUserPreferenceIntegerValue_e.swPropertyMgrDockingState, 0
    
    'Reading old width
    nWidth = swModel.GetFeatureManagerWidth
    
    'Writing width of property manager
    WidthProp = 350
    nRetVal = swModel.SetFeatureManagerWidth(nWidth / nWidth * WidthProp)

    'docking property manager side by side with feature manager design tree (Position 2)
    swApp.SetUserPreferenceIntegerValue swUserPreferenceIntegerValue_e.swPropertyMgrDockingState, 2
    
    'Writing width of feature manager
    WidthFeat = 350
    nRetVal = swModel.SetFeatureManagerWidth(nWidth / nWidth * WidthFeat)
    
End Sub
Attachments
Change width of feature manager SW2021.swp
(31 KiB) Downloaded 550 times
User avatar
bnemec
Posts: 1954
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2562
x 1411

Re: What are your most impressive tricks of Solidworks

Unread post by bnemec »

blanke wrote: Thu May 12, 2022 3:47 am Maybe a bit late, but I encountered the same problem as you described. I've found a macro which could change the width of the feature manager design tree. The only downside was that if you have placed the property manager side by side with the feature manager, it would only change the feature manager width. So I started looking into docking the property manager with VBA and adjusted the code so that the property manager first docks to the original location, then change the width and docks it side by side again. Lastly it will change the width of the feature manager design tree once more. Because the windows are side by side, the width of the property manager will not change. There is a standard width in this code of 350 pixels for both windows which can be adjusted to your preference independently.

Macro code:

Code: Select all

'----------------------------------------
'
' Preconditions:    Model document is open.
'
' Postconditions:   Width of featuremanager design  tree and property manager is controlled by myWidth (default 350)
'                   Property manager is docked side by side with the featuremanager (position 2)
'
'
' Notes:            When you work with the property manager side by side with the feature manager design tree
'                   sometimes the width of this window will grow over time. You can adjust the width of the feature
'                   manager design tree, but this will not chanage the width of the property manager when docked side by side.
'                   This macro first docks the property manager on the original position, then changes width and docks it side by side.
'                   After docking it will change the width of the feature manager once more, if you would like a different width of this.
'
'                   If you want to change the docking location you can chanage the number at the end of the last line.
'                   0 = original, 1 = bottom left, 2 = side by side
'
'----------------------------------------
Option Explicit

Sub main()

    Dim swApp                   As SldWorks.SldWorks
    Dim swModel                 As SldWorks.ModelDoc2
    Dim nWidth                  As Long
    Dim nRetVal                 As Long
    Dim WidthProp               As Integer
    Dim WidthFeat               As Integer
    Dim Part                    As Object
    
    Set swApp = CreateObject("SldWorks.Application")
    Set swModel = swApp.ActiveDoc
    
    Set Part = swApp.ActiveDoc
    Dim myModelView As Object
    Set myModelView = Part.ActiveView
    myModelView.FrameState = swWindowState_e.swWindowMaximized
    
    'Property manager is docked on original location, same place as feature manager design tree
    swApp.SetUserPreferenceIntegerValue swUserPreferenceIntegerValue_e.swPropertyMgrDockingState, 0
    
    'Reading old width
    nWidth = swModel.GetFeatureManagerWidth
    
    'Writing width of property manager
    WidthProp = 350
    nRetVal = swModel.SetFeatureManagerWidth(nWidth / nWidth * WidthProp)

    'docking property manager side by side with feature manager design tree (Position 2)
    swApp.SetUserPreferenceIntegerValue swUserPreferenceIntegerValue_e.swPropertyMgrDockingState, 2
    
    'Writing width of feature manager
    WidthFeat = 350
    nRetVal = swModel.SetFeatureManagerWidth(nWidth / nWidth * WidthFeat)
    
End Sub
Because I find none of the docked property manager options favorable, I have it undocked and out to the left of the parent solidworks window. It's a long way over to it but it is the only option that doesn't hide the feature/assembly tree AND is consistent. I can get used to nuisance behavior if it's consistent but random nuisance behavior can be frustrating and counter productive.
User avatar
bnemec
Posts: 1954
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2562
x 1411

Re: What are your most impressive tricks of Solidworks

Unread post by bnemec »

This thread title always makes me think of this meme. It's about where I'm at with SW:



image.png
azreal1031
Posts: 6
Joined: Wed Jun 01, 2022 3:15 pm
Answers: 0
x 4
x 13

Re: What are your most impressive tricks of Solidworks

Unread post by azreal1031 »

Over the past few months I find myself coming back to this thread over and over again. There's just too much knowledge here to pass up! On a related note, you can double click a face in a part or an assembly, and it'll show all the driving dimensions. I don't know how fast you are with the measure tool, but this has came in handy quite a few times for a quick reference.

On another note, double clicking a feature just selects the whole part.
"Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi
Tera
Posts: 227
Joined: Fri Mar 19, 2021 4:58 am
Answers: 2
x 487
x 91

Re: What are your most impressive tricks of Solidworks

Unread post by Tera »

azreal1031 wrote: Wed Jun 01, 2022 3:27 pm you can double click a face in a part or an assembly, and it'll show all the driving dimensions.
For me it shows all Driving and Driven dimensions.
User avatar
Jaylin Hochstetler
Posts: 387
Joined: Sat Mar 13, 2021 8:47 pm
Answers: 4
Location: Michigan
x 380
x 355
Contact:

Re: What are your most impressive tricks of Solidworks

Unread post by Jaylin Hochstetler »

azreal1031 wrote: Wed Jun 01, 2022 3:27 pm Over the past few months I find myself coming back to this thread over and over again. There's just too much knowledge here to pass up! On a related note, you can double click a face in a part or an assembly, and it'll show all the driving dimensions. I don't know how fast you are with the measure tool, but this has came in handy quite a few times for a quick reference.

On another note, double clicking a feature just selects the whole part.
FYI, if you click on one of the dimension you can change it.
A goal is only a wish until backed by a plan.
azreal1031
Posts: 6
Joined: Wed Jun 01, 2022 3:15 pm
Answers: 0
x 4
x 13

Re: What are your most impressive tricks of Solidworks

Unread post by azreal1031 »

Jaylin Hochstetler wrote: Thu Jun 02, 2022 7:21 am FYI, if you click on one of the dimension you can change it.
It just keeps getting better.
"Perfection is not attainable, but if we chase perfection we can catch excellence." - Vince Lombardi
MadMike
Posts: 5
Joined: Thu Apr 14, 2022 9:41 am
Answers: 0
x 2
x 3

Re: What are your most impressive tricks of Solidworks

Unread post by MadMike »

Harris wrote: Thu Mar 25, 2021 7:47 am Here's a GIF of a really fast way to add intersection relations!Intersection.gif
Can't see the GIF now, can you re-upload or describe?
User avatar
JSculley
Posts: 648
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 888

Re: What are your most impressive tricks of Solidworks

Unread post by JSculley »

azreal1031 wrote: Thu Jun 02, 2022 8:03 am It just keeps getting better.
If you turn on Instant3D you only have to click a face once. And you can drag the blue 'handles' to alter the dimensions. See Instant2D as well.
User avatar
zxys001
Posts: 1079
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2323
x 1001
Contact:

Re: What are your most impressive tricks of Solidworks

Unread post by zxys001 »

Every time I've used it I get a mixed reaction and I tend to turn it off because it's not always clear, and I feel like I spend too much time trying to dissect using it or I rarely need it.
BUT, it's a good thing to have for clues if you are trying to preserve or workaround a parent/child issue.

https://help.solidworks.com/2021/englis ... TE_NEW.htm
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

Jaylin Hochstetler wrote: Thu Jun 02, 2022 7:21 am FYI, if you click on one of the dimension you can change it.
. . . or if you left click on it you can select "Configure dimension" from the drop-down to bring up a simplified design table, which can be very helpful if you work with configurations.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: What are your most impressive tricks of Solidworks

Unread post by berg_lauritz »

Just stumbled upon this again when trying out some tricks @Dwight showed us here and I'm glad I remembered:

Right clicking a sketch pattern gives you the option to edit it:
2022-06-03 09_55_42-.png
2022-06-03 09_55_42-.png (14.56 KiB) Viewed 16883 times
Edit:
As the master himself pointed out:
I sometimes get tripped up by right-clicking the relation, which doesn't work. To be clear, you have to right-click a sketch element in the pattern, not the pattern relation icon.

Dwight
User avatar
Dwight
Posts: 276
Joined: Thu Mar 18, 2021 7:02 am
Answers: 2
x 2
x 220

Re: What are your most impressive tricks of Solidworks

Unread post by Dwight »

berg_lauritz wrote: Fri Jun 03, 2022 10:57 am Right clicking a sketch pattern gives you the option to edit it:
I sometimes get tripped up by right-clicking the relation, which doesn't work. To be clear, you have to right-click a sketch element in the pattern, not the pattern relation icon.

Dwight
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

I found a trick a while ago that I've used a few times. I know we can only break extension leaders around other dimensions, but I figured out a way to get it done if I need to break them around other leaders (notes, weld symbols, etc). I place the other annotation, then add a dimension that I really don't need, with it's extension line crossing the extension line of the one I want to break, at the location I want it to break.

image.png


Set the original dimension to break extension lines, then hide the new one. The break will stay there, even with the dimension it's breaking around hidden.

image.png


If someone unfamiliar with this opens the drawing later they might have a lot of fun figuring out what's going on. That's just a bonus.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
DennisD
Posts: 708
Joined: Fri Mar 12, 2021 10:04 am
Answers: 1
Location: Near Jacksonville, FL
x 1037
x 1474

Re: What are your most impressive tricks of Solidworks

Unread post by DennisD »

Glenn Schroeder wrote: Wed Jun 08, 2022 3:09 pm I found a trick a while ago that I've used a few times. . .

If someone unfamiliar with this opens the drawing later they might have a lot of fun figuring out what's going on. That's just a bonus.
Perfect!

oa ><
Brick walls are there for a reason. The brick walls aren't there to keep us out. The brick walls are there to show us how badly we want things.
- - -Randy Pausch
User avatar
JSculley
Posts: 648
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 888

Re: What are your most impressive tricks of Solidworks

Unread post by JSculley »

Glenn Schroeder wrote: Wed Jun 08, 2022 3:09 pm I found a trick a while ago that I've used a few times. I know we can only break extension leaders around other dimensions, but I figured out a way to get it done if I need to break them around other leaders (notes, weld symbols, etc). I place the other annotation, then add a dimension that I really don't need, with it's extension line crossing the extension line of the one I want to break, at the location I want it to break.
I would argue that there is always a solution that doesn't require this, requires less work and doesn't evoke hatred in future generations.

Also, I hate your drawings. Nothing personal. They just rub me the wrong way. Mixed case and periods at the end of annotations? I need eye bleach.
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

JSculley wrote: Thu Jun 09, 2022 9:00 am I would argue that there is always a solution that doesn't require this, requires less work and doesn't evoke hatred in future generations.

Also, I hate your drawings. Nothing personal. They just rub me the wrong way. Mixed case and periods at the end of annotations? I need eye bleach.
That's fair. I don't always use periods, unless the note is a complete sentence.

And I hate all caps. It always looks like shouting. I know it's widely regarded as the best practice, but I still don't like it, and in 13 years I haven't received any complaints about it from clients or suppliers.

By the way, I dimension to hidden lines also. I'd like to see how the people who made that rule would show rebar placement in concrete.
"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
berg_lauritz
Posts: 423
Joined: Tue Mar 09, 2021 10:11 am
Answers: 6
x 439
x 233

Re: What are your most impressive tricks of Solidworks

Unread post by berg_lauritz »

Glenn Schroeder wrote: Thu Jun 09, 2022 9:52 am [...] And I hate all caps. It always looks like shouting. [...]
I agree. I am constantly shouting in my head at work because we use all caps. And it's annoying if you write somebody a text message with all caps on. It's like forgetting to take the ear plugs out and SHOUT!
User avatar
JSculley
Posts: 648
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 888

Re: What are your most impressive tricks of Solidworks

Unread post by JSculley »

Glenn Schroeder wrote: Thu Jun 09, 2022 9:52 am That's fair. I don't always use periods, unless the note is a complete sentence.
in 13 years I haven't received any complaints about it from clients or suppliers.
I'm just writing what they are all thinking. :lol:
By the way, I dimension to hidden lines also. I'd like to see how the people who made that rule would show rebar placement in concrete.
Section views. Or by flipping the script and showing the rebar as solid and the surrounding concrete as phantom/hidden.
image.png
But these are large projects where they are probably using a dedicated tool for that kind of thing. SW doesn't do well with lots of detail and section views, so your approach is probably for the best.
colt
Posts: 56
Joined: Tue Mar 30, 2021 5:43 pm
Answers: 0
x 14
x 22

Re: What are your most impressive tricks of Solidworks

Unread post by colt »

Doing assembly cut "up to surface".

This one is hidden unless you know the trick for parts: double clicking on a surface will select the end condition of "up to surface". I don't think this is technically supported because there is no formal item in end condition dropdown menu. Double click on the surface you want to cut up to while editing an assembly cut extrude. Just like it works for parts, it will convert the assembly extrude cut to "up to surface". The end condition dropdown menu will be blank but the feature will still succeed. (if you close and reopen the feature then "up to surface" is available in the dropdown)
User avatar
Glenn Schroeder
Posts: 1527
Joined: Mon Mar 08, 2021 11:43 am
Answers: 23
Location: southeast Texas
x 1777
x 2142

Re: What are your most impressive tricks of Solidworks

Unread post by Glenn Schroeder »

Not mine, but @Alin's.

"On the days when I keep my gratitude higher than my expectations, well, I have really good days."

Ray Wylie Hubbard in his song "Mother Blues"
User avatar
Frederick_Law
Posts: 1952
Joined: Mon Mar 08, 2021 1:09 pm
Answers: 8
Location: Toronto
x 1648
x 1477

Re: What are your most impressive tricks of Solidworks

Unread post by Frederick_Law »

Glenn Schroeder wrote: Thu Jun 09, 2022 9:52 am And I hate all caps. It always looks like shouting.
By the way, I dimension to hidden lines also. I'd like to see how the people who made that rule would show rebar placement in concrete.
Yes, my drawings don't scream. No ALL CAPS !!!!!

Hidden line dimension. Only when necessary.
Of course, use a view with more visible lines.
Alin
Posts: 313
Joined: Sun Mar 14, 2021 9:46 am
Answers: 3
x 265
x 391

Re: What are your most impressive tricks of Solidworks

Unread post by Alin »

Glenn Schroeder wrote: Fri Sep 30, 2022 8:26 am Not mine, but @Alin's.

Not mine, but @matt 's . :) It is in the Bible. :D
Post Reply