What does RolledBackForEdit do?

What does RolledBackForEdit do?

SometimesInventorMakesMeAngry
Advocate Advocate
401 Views
2 Replies
Message 1 of 3

What does RolledBackForEdit do?

SometimesInventorMakesMeAngry
Advocate
Advocate

I tried to use PartComponentDefinition.RolledBackForEdit to check if the End Of Part marker is rolled back (i.e. not all the way at the bottom), but it doesn't seem to work.

The description in the Autodesk Inventor API Help states:

Property that gets whether the model is currently rolled back to a previous point in the feature history.

 

I ended up using PartComponentDefinition.GetEndOfPartPosition to accomplish the same thing, but I'm curious as to what RolledBackForEdit does. Any ideas?

0 Likes
Accepted solutions (1)
402 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

Nice catch. I just tested it's functionality too and when I had the 'End of Part' marker manually dragged up from the bottom, then tested it, it returned False, which doesn't sound right.  But then I tested it in a different way and hot the expected result.  In this other test, I had manually entered into the Edit mode of a Sketch for an earlier feature (not the last feature), then ran the rule while I was in that Edit mode (all later features are greyed-out in this mode).  Then the test returned True, as expected.  So maybe the name is 'literal'.  Maybe you have to actually be 'editing' something before the end of the part, before it will recognize it.  Just my two cents.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 3

SometimesInventorMakesMeAngry
Advocate
Advocate
Interesting. I thought I tested that without success. Re-testing now it looks like it might only work with sketches. Editing features doesn't seem to return true.

Wonder why the phrase "RolledBack" is even in there. Seems like "EditingSketch" is a more appropriate name, but who knows.
0 Likes