Suppose I have moved the Rollback bar to new location. Is it possible to delete all the features below the Rollback bar?
I don’t know.. but, that’s a good question …and request.
Maybe it does exist.. or someone has a macro to remove all features below the rollbar?
If tree is too long this feature can greatly help to move the rollback where we want and delete the features below it.
I created a macro to move the rollback bar to a specific location (that’s a generous use of the word created, hacked together is probably more accurate). I could try to find it and post it (it’s probably over at the Downloads section already). I would guess it wouldn’t be too difficult to locate the position of the rollback bar, roll it forward and delete everything past the previous location. I don’t know if there’s a way to delete the features unless you roll forward. That’s a question for someone like artem, josh, or gupta9665…the people that actually know what they’re doing, unlike me…seems it’d be more efficient to be able to delete them without rolling forward.
I am also interested in this. lol
The solution I have for now is just roll the next item and suppress it, eventually some Children Features will get suppressed together making it easier to keep rolling without crashes, then Delete them all together. Not ideal, but just takes a few seconds to do.
It is a good idea provided that there is no suppressed feature others one.
What may also be kewl is a “Purge” like Feature (or macro) which places all the unused features into a “Folder” at the end (or beginning or where you start the macro) of the Feature Tree… giving the user a option to delete (all those un-used or un-wanted features at end/or beginning) or just suppress them (archive)?
Maha Nadarasa, zxys001, Lukas
I have added this macro to CodeStack: https://www.codestack.net/solidworks-api/document/features-manager/delete-rolledback-features/
Thanks for the help.
Thank you, Artem.. I now owe you too many beers!
…I wonder though.. if your other macro deleting the Folder maybe better?
image.png
Pfft…who needs all that error checking?
Kidding aside, thanks artem.
Thank you very much, it’s working great