Search found 200 matches
- 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 ...
- 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.
Will give it a try.
- 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.
is it possible to rename only the selected sketch to --> the name of the feature it belongs to + SK?
thanks again.
- 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
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.
- 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 :
- -
Does anyone know a macro that does something like this?
thanks.
Something like :
- -
Does anyone know a macro that does something like this?
thanks.
- Fri Jan 12, 2024 4:45 am
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- Fri Jan 12, 2024 4:45 am
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- Fri Jan 12, 2024 4:44 am
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- 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...
- 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 ...
- 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.
Do you any know any macro that can do the job?
Thanks.
- 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...
- Tue Oct 10, 2023 5:31 am
- Forum: SW General
- Topic: Hole table
- Replies: 4
- Views: 688
Re: Hole table
@gupta9665 Table Driven Pattern was perfect.
I really appreciate your help.
Thanks.
I really appreciate your help.
Thanks.
- Tue Oct 10, 2023 5:21 am
- Forum: SW General
- 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...
- Mon Oct 09, 2023 10:40 pm
- Forum: SW General
- 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...
- Mon Jul 24, 2023 7:48 pm
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- Fri Jun 23, 2023 9:40 pm
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- 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.
- 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...
- 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...
- 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...
- 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...
- Tue May 09, 2023 7:53 am
- Forum: CAD Agnostic
- Topic: Painted surfaces in drawings
- Replies: 9
- Views: 1133
Re: Painted surfaces in drawings
I'm away from my PC for 2 days. I'll test it as soon as I'm back.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
Thanks
- Mon May 08, 2023 10:20 pm
- Forum: CAD Agnostic
- Topic: Painted surfaces in drawings
- Replies: 9
- Views: 1133
Re: Painted surfaces in drawings
Is there any way to export the splitted lines to DXF too?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
At present we use @Frederick_Law's solution to be able to export them to DXF.
Thanks.
- Sun May 07, 2023 7:18 pm
- Forum: SW General
- Topic: How to change default tab of Welcome dialog
- Replies: 3
- Views: 974
- 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...
- Mon May 01, 2023 1:24 am
- Forum: Kitty Dump
- Topic: Jokes Thread (Keep it Clean)
- Replies: 1656
- Views: 322573
- 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...
- 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?
- -
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.
- -
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.
- 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.
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.
- 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....
- 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 ...
- Tue Feb 28, 2023 9:43 pm
- Forum: Hardware
- Topic: Workstations, what do you use?
- Replies: 24
- Views: 3382
- Tue Feb 28, 2023 9:40 pm
- Forum: Hardware
- Topic: Workstations, what do you use?
- Replies: 24
- Views: 3382
- 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.
- 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...
- 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.
Thanks.
- Wed Feb 08, 2023 2:57 am
- Forum: SW General
- Topic: Grouping a note with a balloon
- Replies: 10
- Views: 672
- 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
Both 2022 SP5 & 2023 SP0.1 doesn't show it for me.Frank_Oostendorp wrote: ↑Wed Feb 08, 2023 2:20 am SW2019 shows this. What version do you use?
image.png
It's all I have in Align context menu.
- -
I think installing 2023 SP0.1 has ruined my system.
maybe I have to uninstall it.
- 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 ...
- 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...
- 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...
- Wed Jan 18, 2023 6:18 pm
- Forum: SW General
- Topic: Why Solidworks prevents adding this hole?
- Replies: 25
- Views: 1636
- 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 ...
- 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...
- 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...
- 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.
-
-
- 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.
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.
- 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.
My apologies. It's added to the first post above now.
- 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 ...