Search found 200 matches

by Tera
Wed Feb 14, 2024 6:21 pm
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 489

Re: Macro for Renaming all Sketches

Here is a quick (dirty) macro that does the job. Sub Mian() Dim swApp As SldWorks.SldWorks Dim swPart As SldWorks.PartDoc Dim swFeat As SldWorks.Feature Dim swSubFeature As SldWorks.Feature Dim FeatureName As String Dim i As Integer Set swApp = Application.SldWorks Set swPart = swApp.ActiveDoc Set ...
by Tera
Wed Feb 14, 2024 6:15 pm
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 489

Re: Macro for Renaming all Sketches

Thanks to both.
Will give it a try.
by Tera
Tue Feb 13, 2024 9:31 pm
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 489

Re: Macro for Renaming all Sketches

Now that it seems what I need is not possible,
is it possible to rename only the selected sketch to --> the name of the feature it belongs to + SK?

thanks again.
by Tera
Wed Feb 07, 2024 8:47 am
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 489

Re: Macro for Renaming all Sketches

josh wrote: Wed Feb 07, 2024 7:42 am How would it work when sketches are shared?
We never use shared Sketches.
But for the sake of changes in our workflow in future, I prefer it be named with the first feature that use that sketch.
If it makes any problem, renaming it to the last feature is OK as well.


thanks.
by Tera
Wed Feb 07, 2024 1:28 am
Forum: API
Topic: Macro for Renaming all Sketches
Replies: 8
Views: 489

Macro for Renaming all Sketches

I've been looking for a macro to rename all sketches in feature tree to the name of the feature it belongs to + Sketch.
Something like :
-
2024-02-07_15-25-59.png
2024-02-07_15-25-59.png (4.82 KiB) Viewed 488 times
-
Does anyone know a macro that does something like this?

thanks.
by Tera
Fri Jan 12, 2024 4:45 am
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

5_2586440941736265711_n.jpg
by Tera
Fri Jan 12, 2024 4:45 am
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

0_1898464355824374519_n.jpg
by Tera
Fri Jan 12, 2024 4:44 am
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

8126298249861443_n.jpg
by Tera
Fri Jan 12, 2024 3:18 am
Forum: API
Topic: Macro to find all files created in a given version
Replies: 9
Views: 1135

Re: Macro to find all files created in a given version

You can use @artem code as that would work OK for previous version I'm trying to check for future version. I'm on 2022 SP5. Downloaded and used 2023 SP1 for a while . After a while our company decided to end its subscription. I want to see how many files we have on version 2023. If the amount of fi...
by Tera
Thu Jan 11, 2024 8:09 pm
Forum: API
Topic: Macro to find all files created in a given version
Replies: 9
Views: 1135

Re: Macro to find all files created in a given version

Hi Tera, Have a look at https://www.codestack.net/solidworks-api/document/versions-report/ @artem code used the solidworks application to get the version history. Which limits the speed. A faster way is to get the file atribute 'Last Saved With SW' itself, see example code below I haven't reviewed ...
by Tera
Thu Jan 11, 2024 4:17 am
Forum: API
Topic: Macro to find all files created in a given version
Replies: 9
Views: 1135

Macro to find all files created in a given version

I've been searching around for a while to find a macro that can crawl in a folder (and its sub folders) and find all Solidworks files created in a given version (2023).

Do you any know any macro that can do the job?

Thanks.
by Tera
Mon Nov 06, 2023 4:40 am
Forum: Macro Library
Topic: Macro to create layer and set it to active state
Replies: 10
Views: 1031

Re: Macro to create layer and set it to active state

What mean the "_" at the end of each line ? In VBA, When a line of code is too long, you can divide it to several lines by adding a "_ " at the end of the code. So if you have a line like : If swFeat.GetTypeName = "SolidBodyFolder" Or swFeat.GetTypeName = "CutList...
by Tera
Tue Oct 10, 2023 5:31 am
Forum: SW General
Topic: Hole table
Topic: Hole table
Replies: 4
Views: 688

Re: Hole table

@gupta9665 Table Driven Pattern was perfect.
I really appreciate your help.

Thanks.
by Tera
Tue Oct 10, 2023 5:21 am
Forum: SW General
Topic: Hole table
Topic: Hole table
Replies: 4
Views: 688

Re: Hole table

Have you looking into using feature patterns, fill shape, or table driven pattern (you can use an external file in this)? The holes doesn't follow a pattern. So feature pattern can not be used (I assume) I don't know what is fill shape. If it's the same as Fill pattern, it can not be used too. Beca...
by Tera
Mon Oct 09, 2023 10:40 pm
Forum: SW General
Topic: Hole table
Topic: Hole table
Replies: 4
Views: 688

Hole table

I have a sheet metal with a lot of holes (maybe more than 60) on one of its flanges. Even by using patterns etc, I have to add a lot of dimensions that makes the sketch too crowded and makes it very hard to check if the dimensions are correct. Is there any possible way to use a table or an excel fil...
by Tera
Mon Jul 24, 2023 7:48 pm
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

27861.jpg
by Tera
Fri Jun 23, 2023 9:40 pm
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

FyC4QPUWcAEgmnU.jpg
by Tera
Mon Jun 19, 2023 3:04 am
Forum: SW General
Topic: How to make the visibility of Display Pane persistent?
Replies: 4
Views: 533

Re: How to make the visibility of Display Pane persistent?

Thanks. Will give it try.
by Tera
Sun Jun 18, 2023 8:13 pm
Forum: SW General
Topic: How to make the visibility of Display Pane persistent?
Replies: 4
Views: 533

Re: How to make the visibility of Display Pane persistent?

Display Pane visibility is file dependent (so yes it's template driven). So you have to set it to show for individual file. If I save the file with visible Display Pane and close and re-open it, the Pane is hidden again. Is there any understandable reason for this. (Again, if the file is based on a...
by Tera
Fri Jun 16, 2023 9:12 pm
Forum: SW General
Topic: How to make the visibility of Display Pane persistent?
Replies: 4
Views: 533

How to make the visibility of Display Pane persistent?

When I open some parts/assemblies, Display Pane is hidden. I have to click the right arrow on top of feature tree to make it visible. If I save the file and re-open it, it's hidden again. I have to click and make it visible again. Jesus, How many times a day should I click that damn arrow? Why SW do...
by Tera
Wed May 10, 2023 8:20 pm
Forum: SW General
Topic: Problem with External Referenced documents
Replies: 2
Views: 393

Problem with External Referenced documents

At times when I open an assembly Solidworks shows the following dialog. - 1.png - No matter which option I choose, the result is the same. All components of the assembly are virtual. When I open the references, I can't even find a reference to an external file. - 2.png - Why Solidworks asks for conf...
by Tera
Wed May 10, 2023 2:05 am
Forum: Misc CAD
Topic: CAD in manufacturing.
Replies: 19
Views: 2724

Re: CAD in manufacturing.

Hmm....let's see what ChatGPT comes up with: There is a new chatbot in town: Pi. I'm in Japan and it still doesn't cover us, so I couldn't test it personally. I've heard a lot about it that gives a lot of priorities over ChatGPT. It is starting to get like that movie, "Her"! Go to heypi.c...
by Tera
Tue May 09, 2023 7:53 am
Forum: CAD Agnostic
Topic: Painted surfaces in drawings
Replies: 9
Views: 1133

Re: Painted surfaces in drawings

jcapriotti wrote: Mon May 08, 2023 10:41 pm Only if tangent lines are shown in the view. You could select the face and "Convert Entities" then put it on whatever layer you want.

image.png
I'm away from my PC for 2 days. I'll test it as soon as I'm back.
Thanks
by Tera
Mon May 08, 2023 10:20 pm
Forum: CAD Agnostic
Topic: Painted surfaces in drawings
Replies: 9
Views: 1133

Re: Painted surfaces in drawings

jcapriotti wrote: Mon May 08, 2023 3:50 pm @martin I'll second @SPerman method. Split the faces in the model and show them in a different color. In the drawing you can hatch the face.

image.png
Is there any way to export the splitted lines to DXF too?
At present we use @Frederick_Law's solution to be able to export them to DXF.

Thanks.
by Tera
Sun May 07, 2023 7:18 pm
Forum: SW General
Topic: How to change default tab of Welcome dialog
Replies: 3
Views: 974

Re: How to change default tab of Welcome dialog

gupta9665 wrote: Sat May 06, 2023 3:32 am Instead of home button, use R button on the keyboard.
Thanks. That will do. Never knew about R shortcut.
by Tera
Fri May 05, 2023 7:13 pm
Forum: SW General
Topic: How to change default tab of Welcome dialog
Replies: 3
Views: 974

How to change default tab of Welcome dialog

Launching Solidworks or clicking Home button in toolbar, opens a welcome dialog box with 4 tabs. Home - Recent - Learn - Alerts And Home tab is activated. Is there any way to ask Solidworks to make "Recent" tab the default one? I prefer to see a list of recent files by default when I click...
by Tera
Mon May 01, 2023 1:24 am
Forum: Kitty Dump
Topic: Jokes Thread (Keep it Clean)
Replies: 1656
Views: 322573

Re: Jokes Thread (Keep it Clean)

1682891081593.jpg
by Tera
Mon Apr 24, 2023 8:06 pm
Forum: How To Questions
Topic: Configurations of Subassemblies in a master assembly
Replies: 11
Views: 1722

Re: Configurations of Subassemblies in a master assembly

I have tried to recreate the solution but im still having an issue, one of the side angles wont move in the assembly. Its bizarre as I cant see any difference to the file you sent me, i dont think you even needed to do anything with the side angles? Would you mind to please have a look at the attac...
by Tera
Sat Apr 22, 2023 2:22 am
Forum: How To Questions
Topic: Configurations of Subassemblies in a master assembly
Replies: 11
Views: 1722

Re: Configurations of Subassemblies in a master assembly

Is this what you're trying to achieve?
-
2023-04-22_15-18-40.jpg
-
Check Assmebly1 in attached file.
You need to have configurations in Stiffeners & Top Angle too. Because these two parts' length changes in your configs too.
by Tera
Thu Mar 09, 2023 7:37 pm
Forum: SW General
Topic: Macro to change Decimal Length
Replies: 12
Views: 1369

Re: Macro to change Decimal Length

Thanks to all. For now the macro works great.
I will have an eye on the timing this setting is changed and drill down what is causing this.
Will update this thread if I find anything on this.

Thanks again.
by Tera
Thu Mar 09, 2023 7:31 pm
Forum: SW General
Topic: Macro to change Decimal Length
Replies: 12
Views: 1369

Re: Macro to change Decimal Length

1. As you mentioned, this is a document template setting so every new part should match your template. I've never seen this change as I'm working on something without me explicitly accessing the menu and changing it. 2. Yes, it's possible. The code below should set it to 2 for your active document....
by Tera
Thu Mar 09, 2023 1:31 am
Forum: SW General
Topic: Macro to change Decimal Length
Replies: 12
Views: 1369

Macro to change Decimal Length

No matter how many times I set the length of Decimals to .12 but after a while it reverts to .123456 - 2023-03-09_15-23-44.jpg - The templates I use are set to .12 but as soon as I add several features or edit an existing feature, it goes back to .123456 Now 2 questions: 1- Does anybody know why it ...
by Tera
Tue Feb 28, 2023 9:43 pm
Forum: Hardware
Topic: Workstations, what do you use?
Replies: 24
Views: 3382

Re: Workstations, what do you use?

SPerman wrote: Mon Feb 27, 2023 12:30 pm The first thing I do on our machines is delete all of the Dell bloatware.
For the same exact reason, we never buy a PC with installed OS. All our Dells, have been purchased as an empty box without OS.
Then the IT fresh installs the OS using our license.
by Tera
Tue Feb 28, 2023 9:40 pm
Forum: Hardware
Topic: Workstations, what do you use?
Replies: 24
Views: 3382

Re: Workstations, what do you use?

zxys001 wrote: Tue Feb 28, 2023 11:35 am RAM - 40.0 GB DDR5 4800MHz
I thought memory is always based on powers of 2 (2-4-8-16-32-64-128...)
I never knew 40GB is possible too.
by Tera
Tue Feb 14, 2023 9:38 am
Forum: SW General
Topic: SWYMP Status
Replies: 28
Views: 2302

Re: SWYMP Status

@dave.laban @jcapriotti Million thanks.
by Tera
Mon Feb 13, 2023 7:25 pm
Forum: SW General
Topic: SWYMP Status
Replies: 28
Views: 2302

Re: SWYMP Status

Is the SWYMP down Several questions for all. I've always wanted to ask, but I hadn't the chance to. Sorry for hijacking the thread? 1- How do you pronounce SWYMP? 2- What it stands for? SW is possibly SolidWorks. What about WMP? 3- Why the pages loaded so slow? Or is it only me? The poor performanc...
by Tera
Wed Feb 08, 2023 5:50 pm
Forum: SW General
Topic: Grouping a note with a balloon
Replies: 10
Views: 672

Re: Grouping a note with a balloon

Million thanks. Seems that I'd forgotten the step mentioned above (attaching the note to view)

Thanks.
by Tera
Wed Feb 08, 2023 2:57 am
Forum: SW General
Topic: Grouping a note with a balloon
Replies: 10
Views: 672

Re: Grouping a note with a balloon

acmall wrote: Wed Feb 08, 2023 2:50 am I have a separate menu item for Group in SW2022 SP5.
Yes, it's what I had too. The last time I used it was in 2022 SP3 (I think).
But it's gone now.
by Tera
Wed Feb 08, 2023 2:44 am
Forum: SW General
Topic: Grouping a note with a balloon
Replies: 10
Views: 672

Re: Grouping a note with a balloon

Frank_Oostendorp wrote: Wed Feb 08, 2023 2:20 am SW2019 shows this. What version do you use?

image.png
Both 2022 SP5 & 2023 SP0.1 doesn't show it for me.
It's all I have in Align context menu.
-
13.png
-
I think installing 2023 SP0.1 has ruined my system.
maybe I have to uninstall it.
by Tera
Tue Feb 07, 2023 6:48 pm
Forum: SW General
Topic: Grouping a note with a balloon
Replies: 10
Views: 672

Grouping a note with a balloon

I'm sure I was able to select a note and a balloon, right click the selection and group them together. The note was moved with the balloon by dragging it around. Seems that I can not do it anymore. Maybe a change in some versions or updates. Has Solidworks abandoned this functionality too? Or is it ...
by Tera
Tue Feb 07, 2023 6:41 pm
Forum: SW General
Topic: SWx support for video cards
Replies: 13
Views: 1189

Re: SWx support for video cards

It is possible to hinder the default behavior, I think someone here shared the system setting to prevent windows update from changing driver. Some run into problems with group policy interactions though. There are several ways. I use Group policy. https://computerinfobits.com/how-to-stop-windows-fr...
by Tera
Fri Jan 27, 2023 7:40 pm
Forum: SW General
Topic: Top Ten List '23
Replies: 142
Views: 9626

Re: Top Ten List '23

Here are mine, if you'd like to take a look (none are PDM related; we don't use it here either): https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/#community:ASOG7PgNS7mfLRS8zemqQw/idea:0gJYA41ARrqf1XG56eM_3Q https://r1132100503382-eu1-3dswym.3dexperience.3ds.com/#community:ASOG7PgNS7mfLRS8zem...
by Tera
Wed Jan 18, 2023 6:18 pm
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

JSculley wrote: Wed Jan 18, 2023 2:35 pm SOLIDWORKS can do this just as well. Something is out of whack in the original model, but recreating it in SW2022 I didn't have a problem:
I recreate the part to see how it goes on me.
Thank you.
by Tera
Wed Jan 18, 2023 8:43 am
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

Otherwise, I cannot get it to fail. My best guess is that the 2nd hole you are placing breaks an edge, but it is difficult to tell if you are looking on an angle. Obviously my point is not on the edge. Can you check the attached file too? This is what I have of the attached file. - aa.png - Thanks ...
by Tera
Wed Jan 18, 2023 6:09 am
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

Same results as @acmall i.e. the flange seems to be giving issue. And on changing the offset to 1.61, the issue is fixed. Can you tell, why I have a hole and nothing's wrong. And only the second hole throws this error? Having no gap between two flange isn't different with zero thickness geometry? I...
by Tera
Wed Jan 18, 2023 5:59 am
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

When I do a forced rebuild on your part after opening it I get an error on Flange W that the part intersects itself. Appears to be related to the two flanges not having any clearance (1.6mm material & 1.6mm offset). If I increase the offset to 1.61 the error goes away and I can create holes thr...
by Tera
Tue Jan 17, 2023 8:34 pm
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

I'm not even able to add a hole to the outside plate that goes through both plates.
-
90.png
by Tera
Tue Jan 17, 2023 8:18 pm
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

@SPerman Seems it's your lucky day. You may want to buy lottory.

No matter how many times I try, I can't add new holes.
Can you test this please?
Delete the existing hole. Can you add new holes?

Thank you.
by Tera
Tue Jan 17, 2023 7:06 pm
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Re: Why Solidworks prevents adding this hole?

Sorry, I thought I have had attached the part. Seems that I've forgotten.
My apologies. It's added to the first post above now.
by Tera
Tue Jan 17, 2023 2:33 am
Forum: SW General
Topic: Why Solidworks prevents adding this hole?
Replies: 25
Views: 1636

Why Solidworks prevents adding this hole?

33.png - This is a very simple sheet metal part. I have a Ø6.0mm hole added with hole wizard. When I edit hole's sketch (Sketch49) and add a point (near in blue circle), Solidworks keeps giving me Zero Thickness error and denies to add the hole. How adding a hole to an existing hole may cause zero ...