Search found 253 matches

by josh
Wed Aug 25, 2021 11:51 am
Forum: How To Questions
Topic: Purchased and Machined part in BOM
Replies: 10
Views: 874

Re: Purchased and Machined part in BOM

It sort of depends on where your BOM data goes next... but I have done this by having two different custom properties for the part number - One called "Dwg number" and the other "Purchase Number" (or something like that). Of course, there's a Vendor property as well. For most fab...
by josh
Tue Aug 24, 2021 3:40 pm
Forum: SW General
Topic: Ballons prioritising edges over faces
Replies: 18
Views: 1154

Re: Ballons prioritising edges over faces

Sorry... I may have circled the wrong one.

The one I circled disables selection when you can't see them.
The one above it disables selection even when they're shown.
by josh
Tue Aug 24, 2021 3:39 pm
Forum: SW General
Topic: Ballons prioritising edges over faces
Replies: 18
Views: 1154

Re: Ballons prioritising edges over faces

You can turn off selection of hidden lines/edges.
image.png
by josh
Fri Aug 20, 2021 10:49 am
Forum: SW General
Topic: Floating Point Errors
Replies: 4
Views: 584

Re: Floating Point Errors

Is there something else you have to do to make this =2?
image.png
image.png (3.58 KiB) Viewed 566 times
by josh
Wed Aug 18, 2021 12:14 pm
Forum: API
Topic: User Preference in Macro
Replies: 3
Views: 627

Re: User Preference in Macro

IMHO the best way is to go ahead and use the registry. There is a free module available here: http://www.cpearson.com/Excel/Registry.htm that contains simple calls for all the registry stuff you need for saving and editing macro settings etc. Additionally... You mentioned having a "separate mac...
by josh
Wed Aug 18, 2021 11:20 am
Forum: How To Questions
Topic: Phantom parts
Replies: 9
Views: 4645

Re: Phantom parts

Alternate Position Views are really the best way I have found to do this. You mentioned being unable to dimension them... This was a bug a couple versions ago, but as far as I can tell works in 2020. You don't actually have to create multiple configs to use for the different alternate position views...
by josh
Tue Aug 10, 2021 1:18 pm
Forum: API
Topic: Quantity Macro
Replies: 19
Views: 2618

Re: Quantity Macro

The macro you are running creates a macro feature . It's a feature that contains macro code that runs every time you rebuild. This particular macro feature is set up to always be at the end of the feature tree (to make sure it runs last during rebuild and counts everything). The code contained in th...
by josh
Fri Jul 30, 2021 3:28 pm
Forum: How To Questions
Topic: Combining Planar Features in a 3-D sketch?
Replies: 2
Views: 329

Re: Combining Planar Features in a 3-D sketch?

You'll probably get better results by telling us what end result you want. It's likely there are better ways to approach the model than this 3D sketch.
by josh
Mon Jul 26, 2021 10:42 am
Forum: API
Topic: Copy Surface Macro
Replies: 6
Views: 832

Re: Copy Surface Macro

This thread might give you a head-start:

https://forum.solidworks.com/thread/219694
by josh
Wed Jul 14, 2021 11:37 am
Forum: How To Questions
Topic: Is it possible to update material name so that parts that use that material will update next time they're opened?
Replies: 21
Views: 1242

Re: Is it possible to update material name so that parts that use that material will update next time they're opened?

Checking the database on file open for matching GUID would update the properties stored in file if one exists, if not then don't update. Or am I over simplifying things? Probably more like overcomplicating them. The use case for editing the properties of a material in the DB and then wanting all th...
by josh
Mon Jul 12, 2021 9:37 pm
Forum: SW General
Topic: Unable to open SWP generated by MATLAB in Macro
Replies: 14
Views: 1771

Re: Unable to open SWP generated by MATLAB in Macro

My guess is that the swb comes in with no references. Therefore you can't use "Dim swPart as PartDoc", you have to declare everything as a generic Object. Your first couple of declarations (swApp and swDoc) are both Objects.
by josh
Sat Jul 10, 2021 11:27 pm
Forum: How To Questions
Topic: Is it possible to update material name so that parts that use that material will update next time they're opened?
Replies: 21
Views: 1242

Re: Is it possible to update material name so that parts that use that material will update next time they're opened?

The material library is a collection of materials and their properties that can be _applied_ to a part. The action of applying material copies these properties from the database and pastes them to the part with no link to the material database. This is really necessary because every install of SW co...
by josh
Wed Jun 16, 2021 8:31 am
Forum: 2D Drawings
Topic: How to show one hidden edge of a buried part in an upper level assembly drawing?
Replies: 13
Views: 4508

Re: How to show one hidden edge of a buried part in an upper level assembly drawing?

It's somewhat crappy, but you can insert an alternate position view, then hide everything in the alternate position view except the part you want to show.
by josh
Fri May 28, 2021 7:30 am
Forum: How To Questions
Topic: Finding an Excel equation (needle) in a design table in library parts (haystack)
Replies: 3
Views: 347

Re: Finding an Excel equation (needle) in a design table in library parts (haystack)

I don't believe there's a way to find out if a file has a design table without opening it in SolidWorks. A macro could probably do it fairly quickly running in the background.
by josh
Thu May 27, 2021 10:49 am
Forum: How To Questions
Topic: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?
Replies: 72
Views: 6220

Re: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?

We're trying to learn that now. That is the table that takes nearly a half hour to generate for the screw file. When it finished I displayed it full screen on my 43" 4k and the text was dots. There are way too many columns which leads me to believe there are a lot of redundant parameters. I th...
by josh
Tue May 25, 2021 5:23 pm
Forum: How To Questions
Topic: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?
Replies: 72
Views: 6220

Re: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?

2)This I wish we would have made time to get a better understanding of before we set up the configured files. 3)I forgot to mention eDrawings and such, so to get the proper stuff to show up in eDrawings for non CAD people looking we need all the configs to have display data turned on. I'm not sure ...
by josh
Tue May 25, 2021 5:15 pm
Forum: How To Questions
Topic: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?
Replies: 72
Views: 6220

Re: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?

oh boy. 1) Our config names don't have to match the part number but they sure should, otherwise how would we know which config to use? Every part has a part number and is set up in MRP and connected to BOMs. So no McMaster screws! Actually this is one of the minor pains is making sure that the part...
by josh
Tue May 25, 2021 1:29 pm
Forum: How To Questions
Topic: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?
Replies: 72
Views: 6220

Re: Using configured part file for screws, nuts, washers, pins, etc. too many configs? too many where used for PDM?

At my last job we used a single file for all configs of the same "family" (SHCS, standard nut, thin nut, etc). Of course, these come in a somewhat limited range of possibilities (there's no M9.37 nut), so all of the possible configurations can be easily created using a design table. The be...
by josh
Fri May 21, 2021 3:04 pm
Forum: SW General
Topic: Assembly Bubble Up
Replies: 17
Views: 1126

Re: Assembly Bubble Up

In Solidworks this seems to be the case. To my mind this brings no advantage, only additional challenges and forever saving things that haven't fundamentally changed, all the way up to the root....Really I was asking as a way to know if this behaviour can be changed. I think I have my answer... Man...
by josh
Fri May 21, 2021 12:21 pm
Forum: SW General
Topic: Assembly Bubble Up
Replies: 17
Views: 1126

Re: Assembly Bubble Up

So, does CATIA not have mates or any sort of relationships between parts in assemblies? For example, let's say I model an automotive starter. It's a subassembly. One of its parts is a housing with mounting holes. I put this starter subassembly in the engine assembly, mating the mounting holes on the...
by josh
Fri May 21, 2021 11:22 am
Forum: SW General
Topic: Assembly Bubble Up
Replies: 17
Views: 1126

Re: Assembly Bubble Up

I may have missed a subtlety of the question.... Were you asking why the root (top level) assembly has to rebuild instead of only rebuilding the subassembly? Changing the part by itself does not directly trigger the top level assembly rebuild. Changing the part triggers a rebuild (and change) to the...
by josh
Fri May 21, 2021 11:16 am
Forum: SW General
Topic: Assembly Bubble Up
Replies: 17
Views: 1126

Re: Assembly Bubble Up

As I mentioned before, the assembly is made up of parts. If you change a part, the assembly must reflect that change. Rebuild involves examining all the parts and making sure the geometry etc. in the assembly window accurately reflects all the parts. Again, having never worked in CATIA myself, can s...
by josh
Fri May 21, 2021 9:29 am
Forum: SW General
Topic: Assembly Bubble Up
Replies: 17
Views: 1126

Re: Assembly Bubble Up

How you can "manage" the issue depends on what failure modes occur in your workflow due to said issue. The assembly is defined as being made up of individual parts and/or subassemblies. When those parts or subassemblies change, the main assembly is changed. Therefore the main assembly must...
by josh
Fri May 21, 2021 9:22 am
Forum: How To Questions
Topic: STEP TO SHEETMETAL CONVERTING MACRO
Replies: 18
Views: 2396

Re: STEP TO SHEETMETAL CONVERTING MACRO

It sounds like you are saying that (for certain parts anyway) none of the manual methods you can do will successfully make the imported part into sheet metal. If you cannot manually do it with the regular SW user interface, then it most likely cannot be done with a macro. It may be possible that a m...
by josh
Wed May 19, 2021 12:59 pm
Forum: SW General
Topic: Favorite Tools>Options settings
Replies: 14
Views: 937

Re: Favorite Tools>Options settings

Wasn't there one called Use Software OpenGL? That might be what you are thinking of. That one's still there. It's different from the "enhanced graphics performance" thing. Software OpenGL bypasses your graphics card/driver for all the graphics processing. Basically, if you're having prett...
by josh
Tue May 18, 2021 4:36 pm
Forum: SW General
Topic: Favorite Tools>Options settings
Replies: 14
Views: 937

Re: Favorite Tools>Options settings

Really? What has it been called before? AFAIK it was new with 2019
image.png
by josh
Wed May 12, 2021 8:41 pm
Forum: API
Topic: Making a virtual component with solid body copies from all other components
Replies: 11
Views: 1159

Re: Making a virtual component with solid body copies from all other components

Yeah, brain fart. I forgot about the temporary thing.
by josh
Wed May 12, 2021 4:19 pm
Forum: API
Topic: Making a virtual component with solid body copies from all other components
Replies: 11
Views: 1159

Re: Making a virtual component with solid body copies from all other components

This seems very roundabout... Why not actually save the dang assembly as a part, insert to assembly, and then make it virtual? Same end result, right?
by josh
Wed May 12, 2021 7:23 am
Forum: SW General
Topic: Alternate position view scale mismatch when export to DXF
Replies: 4
Views: 625

Re: Alternate position view scale mismatch when export to DXF

Try running this macro and see if it helps. If I remember right, you have to select the view then run the macro.
by josh
Sun May 09, 2021 6:58 pm
Forum: How To Questions
Topic: Angular Limit Mate w/ Axes?
Replies: 1
Views: 376

Re: Angular Limit Mate w/ Axes?

You can't create an angle mate between a linear entity (axis, edge, line, etc) and a planar entity.

You can create angle mates between two linear entities, or between two planar entities.
by josh
Sat May 08, 2021 8:09 pm
Forum: API
Topic: Limit Distance Mate
Replies: 3
Views: 526

Re: Limit Distance Mate

This is how you do it: Dim swApp As Object Sub main() Set swApp = Application.SldWorks Dim swDim As Dimension Dim swTol As SldWorks.DimensionTolerance Set swDim = swApp.ActiveDoc.Parameter("D1@LimitDistance1") 'You gotta figure out how to get the pointer to your dimension Set swTol = swDim...
by josh
Sat May 08, 2021 7:16 pm
Forum: API
Topic: Limit Distance Mate
Replies: 3
Views: 526

Re: Limit Distance Mate

Actually, (if I read it right), the question was how to set those values for a specific configuration. I looked a little, but I didn't find a way to specify configs for that. The information does seem to be stored in the dimension somehow, because when you select said dimension is shows the upper an...
by josh
Sat May 08, 2021 7:10 pm
Forum: SW General
Topic: Using Hole Wizard/Threads
Replies: 29
Views: 3367

Re: Using Hole Wizard/Threads

IMHO yes, it does complicate things, and gives no performance or practical benefit other than they like it that way. As you said, whatever floats your boat.
by josh
Sat May 08, 2021 7:05 pm
Forum: SW General
Topic: Fillet or Chamfer
Replies: 4
Views: 334

Re: Fillet or Chamfer

Interesting that the decimal separator is shown differently in the various dimensions.

Nevertheless, that chamfer dimensionis not pointing to the visible rounded surface, but to the corner between the 41.8 diameter and the 34 outer face. The actual chamfer is too small to be resolved at that scale.
by josh
Thu May 06, 2021 3:04 pm
Forum: How To Questions
Topic: Issues w/ Simple Coincident Mate?
Replies: 5
Views: 530

Re: Issues w/ Simple Coincident Mate?

Umm, so when I open your assembly I see two curved right mouse buttons, and one is upside down. In order to make a mouse, you need a left button and a right button. Two right buttons will not work any better than two right shoes fit your feet.
by josh
Wed May 05, 2021 5:34 pm
Forum: SW General
Topic: How do you interface?
Replies: 15
Views: 903

Re: How do you interface?

Also being that person who shows others how to do things... The first thing I would do for a new person was load my .sldreg to their profile... 🤣
by josh
Wed May 05, 2021 12:30 pm
Forum: SW General
Topic: How do you interface?
Replies: 15
Views: 903

Re: How do you interface?

My heirarchy: 1. Shortcut keys. Nothing is faster for non-space-mouse-having me because my left hand is always on the keyboard 2. S-key (mapped to V because "S" was already "zoom to Selection"). Because it pops up at the cursor, it's easy to click. Commands are also arranged on i...
by josh
Fri Apr 16, 2021 10:59 am
Forum: SW General
Topic: SSP and moving parts
Replies: 15
Views: 1125

SSP and moving parts

I'm about to start a small project and thought it might be a good chance to try out the SSP method. I know the rough shape but final dimensions will be coming later. I've read mattpeneguy 's PDF guide and I generally understand what we're shooting for, but how do you SSP pros deal with moving parts ...
by josh
Tue Apr 13, 2021 2:19 pm
Forum: SW General
Topic: Should someone on an Educational SolidWorks License (student OR teacher) feel nervous about using this forum?
Replies: 16
Views: 926

Re: Should someone on an Educational SolidWorks License (student OR teacher) feel nervous about using this forum?

Why did you ask the question if you were not going to believe the answer anyway? You are absolutely the only one being paranoid. Only one person has said you were not being paranoid, and then they immediately said you shouldn't be concerned. Basically, they were trying to make you feel OK with your ...
by josh
Sat Apr 10, 2021 8:33 am
Forum: SW General
Topic: Use of Color in Models
Replies: 16
Views: 2023

Re: Use of Color in Models

I've always had a random color macro mapped to the "c" key. Ewww......random?? I would hate to work with a sick-green color like this text . I usually work with large-ish assemblies with lots of simple parts, created as quickly and efficiently as possible, so I don't typically work with a...
by josh
Fri Apr 09, 2021 7:27 pm
Forum: SW General
Topic: Use of Color in Models
Replies: 16
Views: 2023

Re: Use of Color in Models

I've always had a random color macro mapped to the "c" key.
by josh
Fri Apr 09, 2021 6:45 pm
Forum: SW General
Topic: Are Solidworks drawing views 3D?
Replies: 14
Views: 1343

Re: Are Solidworks drawing views 3D?

view properties. choose projected instead of true
by josh
Mon Apr 05, 2021 10:51 am
Forum: SW General
Topic: Performance -- BOM in Assembly
Replies: 4
Views: 425

Re: Performance -- BOM in Assembly

Impact should be minimal. Why not test yourself? Add/delete BOM is easy to do...
by josh
Fri Mar 26, 2021 12:40 pm
Forum: SW General
Topic: Total number of component as custom property...
Replies: 12
Views: 1364

Re: Total number of component as custom property...

Here is the code to paste into the "Code" custom property if you want only unsuppressed components: 1 Dim vComps As Variant Dim Cnt As Long Dim i As Long vComps = Assembly.GetComponents(False) For i = 0 To UBound(vComps) If vComps(i).GetSuppression2 <> 0 Then Cnt = Cnt + 1 End If Next i As...
by josh
Fri Mar 26, 2021 12:08 pm
Forum: SW General
Topic: Total number of component as custom property...
Replies: 12
Views: 1364

Re: Total number of component as custom property...

I did not know that you could just add API text like that to Custom Properties!! Wow! Well... You're not actually adding API text to the custom properties... You're hiding API text from the equation editor interface (just the stuipid interface!) by burying it in custom properties. It still gets eva...
by josh
Fri Mar 26, 2021 11:36 am
Forum: SW General
Topic: Total number of component as custom property...
Replies: 12
Views: 1364

Re: Total number of component as custom property...

It is possible, but SW is much less happy with it. You have to paste a whole multiline macro into the "Code" custom property that actually sets the NumberOfComponents property because you can't get the value you want in a single line of code.
by josh
Fri Mar 26, 2021 9:04 am
Forum: SW General
Topic: Total number of component as custom property...
Replies: 12
Views: 1364

Re: Total number of component as custom property...

A couple of additional notes... This will get the total number of components, including components of subassemblies. If you want top-level only, change "False" to "True".
by josh
Fri Mar 26, 2021 8:51 am
Forum: SW General
Topic: Total number of component as custom property...
Replies: 12
Views: 1364

Re: Total number of component as custom property...

It is possible. You have to bury API code in a custom property, link an equation to that property, then link another property to that equation. Steps to achieve (Please follow closely): 1. Create two Text type custom properties. One called "Code" (or whatever you want), and one called &quo...
by josh
Mon Mar 22, 2021 3:00 pm
Forum: SW General
Topic: Sketched Bend Won't Bend
Replies: 6
Views: 1917

Re: Sketched Bend Won't Bend

Okey doke, thanks guys! At least sounds like it wasn't something stupid I did. Like I said, no need for a flat pattern for sure, I just figured some sketched bends would be the quickest route to my final shape. Then, when it didn't work, figured it might be a learning opportunity for me and a conten...
by josh
Mon Mar 22, 2021 1:41 pm
Forum: SW General
Topic: Sketched Bend Won't Bend
Replies: 6
Views: 1917

Sketched Bend Won't Bend

So, here's one of the noob posts that we need... I don't work with sheet metal features much, so here goes. I want to buy this register vent boot from McMaster, cut the corners, and make it a sorta flat mount flange. So downloaded the model and I thought I'd cut some rips down the corners and do fou...