Rollback bar to new location

User avatar
Maha Nadarasa
Posts: 193
Joined: Tue Mar 16, 2021 12:46 pm
Answers: 1
x 51
x 48

Rollback bar to new location

Unread post by Maha Nadarasa »

Suppose I have moved the Rollback bar to new location. Is it possible to delete all the features below the Rollback bar?
Attachments
123.png
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: Rollback bar to new location

Unread post by zxys001 »

Maha Nadarasa wrote: Sat Aug 14, 2021 8:16 pm 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?
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
Maha Nadarasa
Posts: 193
Joined: Tue Mar 16, 2021 12:46 pm
Answers: 1
x 51
x 48

Re: Rollback bar to new location

Unread post by Maha Nadarasa »

If tree is too long this feature can greatly help to move the rollback where we want and delete the features below it.
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: Rollback bar to new location

Unread post by mattpeneguy »

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.
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: Rollback bar to new location

Unread post by Lucas »

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.
User avatar
Maha Nadarasa
Posts: 193
Joined: Tue Mar 16, 2021 12:46 pm
Answers: 1
x 51
x 48

Re: Rollback bar to new location

Unread post by Maha Nadarasa »

@Lucas

It is a good idea provided that there is no suppressed feature others one.
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: Rollback bar to new location

Unread post by zxys001 »

Maha Nadarasa wrote: Sun Aug 15, 2021 10:30 pm @Lucas

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)?
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
artem
Posts: 26
Joined: Thu Mar 18, 2021 1:31 pm
Answers: 3
x 9
x 74

Re: Rollback bar to new location

Unread post by artem »

@Maha Nadarasa, @zxys001, @Lukas

I have added this macro to CodeStack: https://www.codestack.net/solidworks-ap ... -features/
Thanks,
Artem
xarial.com - making your CAD better
codestack.net - SOLIDWORKS API macros and tutorials
User avatar
Maha Nadarasa
Posts: 193
Joined: Tue Mar 16, 2021 12:46 pm
Answers: 1
x 51
x 48

Re: Rollback bar to new location

Unread post by Maha Nadarasa »

artem wrote: Thu Aug 19, 2021 7:07 am @Maha Nadarasa, @zxys001, @Lukas

I have added this macro to CodeStack: https://www.codestack.net/solidworks-ap ... -features/
Thanks for the help.
User avatar
zxys001
Posts: 1077
Joined: Fri Apr 02, 2021 10:08 am
Answers: 5
Location: Scotts Valley, Ca.
x 2304
x 997
Contact:

Re: Rollback bar to new location

Unread post by zxys001 »

artem wrote: Thu Aug 19, 2021 7:07 am @Maha Nadarasa, @zxys001, @Lukas

I have added this macro to CodeStack: https://www.codestack.net/solidworks-ap ... -features/
Thank you, Artem.. I now owe you too many beers! UU

...I wonder though.. if your other macro deleting the Folder maybe better?

https://www.codestack.net/solidworks-ap ... -children/
"Democracies aren't overthrown; they're given away." -George Lucas
“We only protect what we love, we only love what we understand, and we only understand what we are taught.” - Jacques Cousteau
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: Rollback bar to new location

Unread post by mattpeneguy »

artem wrote: Thu Aug 19, 2021 7:07 am @Maha Nadarasa, @zxys001, @Lukas

I have added this macro to CodeStack: https://www.codestack.net/solidworks-ap ... -features/
image.png
Pfft...who needs all that error checking?
Kidding aside, thanks @artem.
User avatar
Lucas
Posts: 227
Joined: Tue Jun 15, 2021 3:46 am
Answers: 2
Location: Osaka, JP
x 171
x 169

Re: Rollback bar to new location

Unread post by Lucas »

artem wrote: Thu Aug 19, 2021 7:07 am @Maha Nadarasa, @zxys001, @Lukas

I have added this macro to CodeStack: https://www.codestack.net/solidworks-ap ... -features/
Thank you very much, it's working great UU
Post Reply