When I cancel the creation of a sketch/feature/whatever and restart it the naming system keeps increasing automatically (which makes sense), but I want it to overwrite the non-existing features.
Is it possible to do?
Manually renaming it fix the counting, but still is a boring practice.
Reset Feature name counting number
Re: Reset Feature name counting number
I agree it can be tiresome, there's a couple of habits you can foster to help but I think you are best not worrying about it too much and/or renaming to meaningful names.
Instead of cancelling, try undo.
If it's a small part you can reload the document quickly.
A macro is probably best solution
Instead of cancelling, try undo.
If it's a small part you can reload the document quickly.
A macro is probably best solution
Re: Reset Feature name counting number
You can tidy up your tree with this macro: https://www.codestack.net/solidworks-ap ... uentially/ and after it should continue with the next available number as the index for new feature
Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
Re: Reset Feature name counting number
Unfortunately Undo also increases the counting number
Usually I ignore it or start renaming from the beginning when I know it will be a complex part; but most of times it is a little complex and just bothers me to stop to fix it. lol
Thank you, worked fine here.artem wrote: ↑Fri Aug 06, 2021 2:31 am You can tidy up your tree with this macro: https://www.codestack.net/solidworks-ap ... uentially/ and after it should continue with the next available number as the index for new feature
May I ask any suggestion of site/reading to start learning Solidworks Macros? I just know basic programming and am postponing this.
- Glenn Schroeder
- Posts: 1518
- Joined: Mon Mar 08, 2021 11:43 am
- Location: southeast Texas
- x 1754
- x 2126
Re: Reset Feature name counting number
My best suggestion is to ignore those numbers. I do it just fine. If you can't or don't want to do that, re-name the features, sketches, etc to something that actually describes their function or purpose instead of just using numbers.
"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"
Ray Wylie Hubbard in his song "Mother Blues"
- DanPihlaja
- Posts: 839
- Joined: Thu Mar 11, 2021 9:33 am
- Location: Traverse City, MI
- x 804
- x 973
Re: Reset Feature name counting number
Just rename Sketch4 to Sketch3. From then on, then next sketch will be Sketch4.Lucas wrote: ↑Thu Aug 05, 2021 9:27 pm When I cancel the creation of a sketch/feature/whatever and restart it the naming system keeps increasing automatically (which makes sense), but I want it to overwrite the non-existing features.
Is it possible to do?
image.png
Manually renaming it fix the counting, but still is a boring practice.
Try it out.
-Dan Pihlaja
Solidworks 2022 SP4
2 Corinthians 13:14
Solidworks 2022 SP4
2 Corinthians 13:14
Re: Reset Feature name counting number
Usually I name it, but lots of parts is pretty useless to name everything and would be nice to have the names just in order .-.Glenn Schroeder wrote: ↑Fri Aug 06, 2021 8:15 am My best suggestion is to ignore those numbers. I do it just fine. If you can't or don't want to do that, re-name the features, sketches, etc to something that actually describes their function or purpose instead of just using numbers.
That's how I have been dealing with it. lol
thanks