Search found 261 matches

by josh
Fri May 17, 2024 3:20 pm
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

Thanks! I went the route of getting the window handle of the active view, then GetParent an appropriate number of times to get the handle to SW for SetActiveWindow
by josh
Thu May 16, 2024 4:21 pm
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

This works pretty much like I want... Has to be mapped to a shortcut key, because it works the same as TAB. Unfortunately, I can't map it to TAB. Hover over something and press the shortcut key to hide it. Hit the button, close the form, switch documents, etc. and the components that were hidden by ...
by josh
Thu May 16, 2024 2:30 pm
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

Josh, If you haven't already answered your daily quota of dumb questions, why not just use display states? My goal here is for very temporarily hiding components to work on stuff behind or inside them. I don't want to be creating display states or messing with creating section views. I just want to...
by josh
Thu May 16, 2024 9:52 am
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

SPerman wrote: Thu May 16, 2024 9:47 am Could you write a macro/add-in that runs in the background and keeps track of the items you've hidden, and gives you a button to show them?
Yes... Currently considering that option.
by josh
Thu May 16, 2024 9:51 am
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

Hrm, I'm not sure there is any way to do what you desire. There is "isolate" that sorta does that, but I'm pretty sure that's not what you're looking for. Isolate would need you to select everything you want kept... Perhaps you could do a reverse selection and then isolate to get the resu...
by josh
Thu May 16, 2024 9:16 am
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Re: Tab-To-(only temporarily)-Hide

Shift+tab is no good... -I don't want to un-hide any things that were already hidden before I started hiding things. If something big was there but already hidden, Shift-tab will unhide it first. -I don't want to have to remember which or how many or where things were hidden. I just want to instantl...
by josh
Thu May 16, 2024 8:47 am
Forum: SW General
Topic: Tab-To-(only temporarily)-Hide
Replies: 24
Views: 680

Tab-To-(only temporarily)-Hide

Maybe dumb question before I go to create an ER… TAB key to hide is pretty handy for quickly moving around in assemblies. However, when I’m doing that kind of hiding, I usually want to re-show everything, but only the stuff that I hid using tab. Basically, I want TAB-to-hide to function sort of like...
by josh
Wed May 15, 2024 9:59 am
Forum: SW General
Topic: Programming in SolidWorks, how important is it?
Replies: 18
Views: 688

Re: Programming in SolidWorks, how important is it?

If you have an itch you want to scratch, I would recommend starting with C#. VBA is a dead end and VB.NET is just C# made to look like VB. There's a good C# tutorial at w3schools.com. Use Visual Studio Community to learn, and when you have something you want to actually use at work to improve the p...
by josh
Wed May 08, 2024 3:54 pm
Forum: SolidWorks FAQ
Topic: Equations when creating mates
Replies: 8
Views: 464

Re: Equations when creating mates

I don't have any idea what the implementation plan was beyond the fact that it had to be done on a feature-by-feature basis. I dunno if an ER/SPR specifically requesting mates be added to this would speed it up or not.
by josh
Wed May 08, 2024 3:21 pm
Forum: SolidWorks FAQ
Topic: Equations when creating mates
Replies: 8
Views: 464

Re: Equations when creating mates

You talking about distance mates and/or angle mates specifically?
by josh
Tue May 07, 2024 11:13 pm
Forum: Macro Library
Topic: Creating a Macro in SolidWorks (2023 SP5) for Managing Global Variables and Equations
Replies: 1
Views: 333

Re: Creating a Macro in SolidWorks (2023 SP5) for Managing Global Variables and Equations

Try these various grouping options in the Equations dialog. You can group all the global variables at the top for easy access. I'm not sure you'd be able to create a cleaner/easier/better interface using a macro.
image.png
by josh
Mon May 06, 2024 5:37 pm
Forum: API
Topic: Need to determine the value of DIM with attached GTOL
Replies: 1
Views: 219

Re: Need to determine the value of DIM with attached GTOL

Dim swApp As SldWorks.SldWorks Dim swDoc As SldWorks.ModelDoc2 Dim swAnn As SldWorks.Annotation Dim vEnts As Variant Dim swDisp As SldWorks.DisplayDimension Dim swGtol As SldWorks.Gtol Sub main() Set swApp = Application.SldWorks Set swDoc = swApp.ActiveDoc Set swGtol = swDoc.SelectionManager.GetSel...
by josh
Tue Apr 30, 2024 4:33 pm
Forum: SW General
Topic: About Force Rebuild & Part Change
Replies: 14
Views: 612

Re: About Force Rebuild & Part Change

Yes. Asterisk means document is dirty and needs to save. Force rebuild makes a document dirty.
by josh
Thu Apr 25, 2024 9:27 am
Forum: SW General
Topic: Fun Errors in Solidworks
Replies: 30
Views: 2699

Re: Fun Errors in Solidworks

Not sure if this one's been posted yet:
image.png
image.png (18.16 KiB) Viewed 391 times
by josh
Mon Apr 15, 2024 9:21 pm
Forum: API
Topic: Find touching face in a multi-body part
Replies: 9
Views: 696

Re: Find touching face in a multi-body part

I think splitting the body in such a way as to create identical faces is a requirement of this function as he's going to be offsetting sketch entities from the separated faces to create this mating glue joint. If you split this body at the joint between "blocks" then the offset thing would...
by josh
Sun Apr 14, 2024 9:06 am
Forum: API
Topic: Find touching face in a multi-body part
Replies: 9
Views: 696

Re: Find touching face in a multi-body part

I would use the user-selected point on the first face (make sure you use GetClosestPointOn with the values from GetSelectionPoint), along with its face normal, as inputs to RayIntersections. If the two faces are still coincident, you might have to offset your start point coordinates backward along t...
by josh
Wed Apr 10, 2024 9:05 pm
Forum: API
Topic: SOLIDWORKS API Developer - Contract Work
Replies: 1
Views: 389

Re: SOLIDWORKS API Developer - Contract Work

I'd love to work with you, Amen, but my skillset is definitely lacking in 2 of the 4 non-negotiables. :-D Definitely wish you luck in your search though.
by josh
Tue Apr 09, 2024 11:53 am
Forum: Macro Library
Topic: DXF/DWG Model View Export
Replies: 15
Views: 1078

Re: DXF/DWG Model View Export

Code from example with tweaks made: Option Explicit Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim swPart As SldWorks.PartDoc Dim sModelName As String Dim sPathName As String Dim varAlignment As Variant Dim dataAlignment(11) As Double Dim varViews As Variant Dim dataViews(0) As...
by josh
Tue Apr 09, 2024 11:52 am
Forum: Macro Library
Topic: DXF/DWG Model View Export
Replies: 15
Views: 1078

Re: DXF/DWG Model View Export

The VBA example for ExportToDWG2 already does exactly what you want with just a few tiny modifications.

https://help.solidworks.com/2024/englis ... ple_VB.htm
by josh
Wed Apr 03, 2024 12:22 pm
Forum: SW General
Topic: WTF is going on here ?
Replies: 33
Views: 1829

Re: WTF is going on here ?

You need to understand the difference between Features and Components.
image.png
by josh
Fri Mar 29, 2024 2:39 pm
Forum: SW General
Topic: WTF is going on here ?
Replies: 33
Views: 1829

Re: WTF is going on here ?

You might be able to accomplish that by switching the plane through a couple of intermediate planes... But why? Just edit the sketch text and hit the button to flip it. The 2 reasons why to somehow "rotate" or "flip" the whole sketch around (so the text doesn't look mirrored) wou...
by josh
Fri Mar 29, 2024 10:22 am
Forum: SW General
Topic: WTF is going on here ?
Replies: 33
Views: 1829

Re: WTF is going on here ?

Pernils wrote: Fri Mar 29, 2024 7:10 am I assume this is not a regression during version bumping so they must have intentionally left this implementation in an broken state.
*sigh* just because you don't understand it doesn't mean it's broken. Changing the sketch plane has never reversed the sketch normal. Because it shouldn't.
by josh
Thu Mar 28, 2024 5:33 pm
Forum: SW General
Topic: WTF is going on here ?
Replies: 33
Views: 1829

Re: WTF is going on here ?

Changing the sketch plane does NOT change the orientation of the sketch. It just changes the location of the sketch in space. Sketch text is just sketch entities. In order to read left-to-right on the opposite side of the part, the sketch would have to be rotated 180 degrees in addition to moving to...
by josh
Thu Mar 28, 2024 5:26 pm
Forum: How To Questions
Topic: Recommendations on how to model this part
Replies: 17
Views: 1131

Re: Recommendations on how to model this part

The only place you can "transition" from a helix to a flat is directly along a radial line. Any line that is not exactly a radial line cannot have a transition from a true helix to a true flat without a step. Anything you bodge together with surfaces may sorta look like a helix, but it won...
by josh
Thu Mar 21, 2024 12:27 pm
Forum: How To Questions
Topic: How to find the version of the SLDPart file?
Replies: 21
Views: 1032

Re: How to find the version of the SLDPart file?

File Proporties shows version in the details tab, not sure if it will show EDU This is basically the same functionality as the Javelin link above for showing the info in a column of Windows Explorer... Only works with SW installed, only shows "Future version" if newer than installed versi...
by josh
Wed Mar 20, 2024 10:40 am
Forum: How To Questions
Topic: How to find the version of the SLDPart file?
Replies: 21
Views: 1032

Re: How to find the version of the SLDPart file?

https://www.javelin-tech.com/blog/2019/07/display-solidworks-file-version-in-windows-explorer/ Just a little additional tidbit regarding this solution.... If the file was last saved with a version higher than currently installed, Explorer will only report last saved with "Future Version".
by josh
Tue Mar 19, 2024 5:14 pm
Forum: SW General
Topic: Copied sheet and ballons
Replies: 11
Views: 618

Re: Copied sheet and ballons

How do you link a BOM to multiple configurations? I only see a drop down list that allows you to select a single configuration. image.png Change BOM type to Top Level Only or Indented and you can choose multiple configs. Each config gets its own qty column. I don't have any idea why this is not ava...
by josh
Sun Mar 17, 2024 8:00 pm
Forum: SolidWorks FAQ
Topic: bom list configuration equals active reference model config
Replies: 5
Views: 679

Re: bom list configuration equals active reference model config

LOL, that is what I said. There is NO LINK TO THE VIEW. There is never any link to the view. The BOM is linked TO THE CONFIGURATION (that happens to currrently be shown in the view). The ONLY thing clicking on a view does during BOM configuration is tell the BOM which model and configuration to link...
by josh
Wed Mar 13, 2024 8:18 pm
Forum: SolidWorks FAQ
Topic: bom list configuration equals active reference model config
Replies: 5
Views: 679

Re: bom list configuration equals active reference model config

No, you cannot link the BOM displayed configuration to a view. Of course, when you create a BOM, you have to specify a model view that it will be based on. However, this is only a one-time initialization. The BOM will link to the configuration currently shown in that view, but there's no link to the...
by josh
Tue Mar 12, 2024 6:31 pm
Forum: API
Topic: sketch selection and view orientation
Replies: 2
Views: 300

Re: sketch selection and view orientation

Since you're actually wanting to select all entities, and the sketch is currently active, why not just use RunCommand with the swCommands_Edit_Select_All argument? Same result as hitting Ctrl-A on the keyboard.
by josh
Wed Feb 07, 2024 7:42 am
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 472

Re: Macro for Renaming all Sketches

How would it work when sketches are shared?
by josh
Mon Feb 05, 2024 5:11 pm
Forum: SW General
Topic: Printer settings
Replies: 10
Views: 705

Re: Printer settings

Ummmm...... Scaling: None is the same thing as 100% scale. If it wasn't the same, what in the world would Scaling: None mean?
by josh
Mon Feb 05, 2024 11:11 am
Forum: SW General
Topic: Multi-body part to assembly
Replies: 18
Views: 998

Re: Multi-body part to assembly

Wait.... All you wanted was a model to fit in your shop? Why the heck would you go through the trouble of making an assembly?
by josh
Fri Feb 02, 2024 5:31 pm
Forum: How To Questions
Topic: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)
Replies: 7
Views: 904

Re: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)

Verification on Rebuild does not affect sketch solving. It does more advanced body integrity checking to see which faces of the model should be affected by a feature. Ctrl+b vs q would not have any effect on this one either. In this case, the tree only contained three sketches. Sketch 2 certainly re...
by josh
Thu Feb 01, 2024 2:00 pm
Forum: SW General
Topic: setting the pitch of a helical sweep
Replies: 3
Views: 801

Re: setting the pitch of a helical sweep

You'll probably need to create an equation to set the twist value (currently 21600°) to be driven by the sum of the lengths of the path segments.
by josh
Wed Jan 31, 2024 11:38 am
Forum: How To Questions
Topic: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)
Replies: 7
Views: 904

Re: Determine the tolerance used to create an existing fit spline (bonus points for fit deviation)

I’m not so sure it stores the tolerance. I think it’s just a parameter for how much detail it puts into creating the spline. To test this, I created a sketch with some lines and arcs, then created a new sketch with a fit spline based on that sketch, using a tolerance of 0.01. Then I went back and ed...
by josh
Tue Jan 30, 2024 6:58 pm
Forum: API
Topic: assembly context and component property
Replies: 2
Views: 695

Re: assembly context and component property

From the Help documentation for ActiveDoc: The currently active document cannot be the document that is being edited by the end-user. For example, you can use in-context editing to modify an assembly component. The currently active document is the assembly, but the edit target is the assembly compon...
by josh
Wed Jan 03, 2024 10:02 pm
Forum: SW General
Topic: Incorrect operation of the "Wrap" function with a large diameter of the rolling roller
Replies: 5
Views: 1117

Re: Incorrect operation of the "Wrap" function with a large diameter of the rolling roller

Also, if I'm reading your script correctly, you're just making 360 discrete cuts around the outside of the cylinder along a sine curve. This can be done in SW using a curve driven pattern along a wrapped scribe line.
by josh
Wed Jan 03, 2024 4:56 pm
Forum: SW General
Topic: Incorrect operation of the "Wrap" function with a large diameter of the rolling roller
Replies: 5
Views: 1117

Re: Incorrect operation of the "Wrap" function with a large diameter of the rolling roller

I'm curious what you intend to do with this model. If you intend for it to function as a barrel cam, it's not going to do well because the cutter (and therefore follower) path overlaps itself. You will not get good contact of the follower on the cam face through much of the rotation.
by josh
Mon Jan 01, 2024 3:17 pm
Forum: How To Questions
Topic: Mirror referencing error in newer version
Replies: 4
Views: 990

Re: Mirror referencing error in newer version

Did you intend to upload a file? Unless I'm just missing it...
by josh
Thu Dec 21, 2023 2:32 pm
Forum: API
Topic: Hiding Context toolbar
Replies: 7
Views: 925

Re: Hiding Context toolbar

Pretty sure SW doesn't have any way to block right-clicks.

Did you even look at Tools-Customize?
image.png
by josh
Wed Dec 20, 2023 6:00 pm
Forum: API
Topic: Hiding Context toolbar
Replies: 7
Views: 925

Re: Hiding Context toolbar

Do you mean an API command to change the setting under Tools-Customize such that it doesn't appear, or a command to dismiss it if it's currently shown on screen?
by josh
Tue Dec 19, 2023 7:23 am
Forum: API
Topic: how to get 3D coordinates of a sketch segment in the global coordinate system?
Replies: 1
Views: 659

Re: how to get 3D coordinates of a sketch segment in the global coordinate system?

Multiply the point by the inverse of the sketch's transform.
by josh
Mon Nov 20, 2023 8:36 am
Forum: How To Questions
Topic: Instance Properties in Solidworks?
Replies: 4
Views: 832

Re: Instance Properties in Solidworks?

The only way I can think of to attach extra information to individual instances of a component (other than the one "Component Reference" field of the Component Properties) would be to use Attributes. These are data packets that can be attached to stuff in SolidWorks, but only through the A...
by josh
Mon Nov 06, 2023 3:56 pm
Forum: How To Questions
Topic: Find specific property in drawing sheet format and change the content
Replies: 8
Views: 1113

Re: Find specified property in drawing sheet format and change the content

I believe he's looking for a "Find-Replace" in annotations, except that it works for notes linked to properties rather than just looking at the displayed text.
by josh
Mon Nov 06, 2023 11:00 am
Forum: How To Questions
Topic: Find specific property in drawing sheet format and change the content
Replies: 8
Views: 1113

Re: Find specified property in drawing sheet format and change the content

OK... You have asked if it is possible... Yes, it's possible.

Are you actually asking someone to do it for you?
by josh
Fri Nov 03, 2023 9:52 pm
Forum: SW General
Topic: use 4K TV for monitor
Replies: 20
Views: 4101

Re: use 4K TV for monitor

Umm, well, they're not quite a dime a dozen, but practically not too far off that.

by josh
Tue Oct 24, 2023 7:21 am
Forum: Macro Library
Topic: Macro for Toggling Transparency of Components
Replies: 20
Views: 1546

Re: Macro for Toggling Transparency of Components

There's no need for a macro. Toggle transparency is already a button in the UI. You can map the command to a shortcut key.