Find out what is affected by undo/redo

Find out what is affected by undo/redo

zadazLWJJ4
Enthusiast Enthusiast
368 Views
4 Replies
Message 1 of 5

Find out what is affected by undo/redo

zadazLWJJ4
Enthusiast
Enthusiast

I am currently listening events about new components etc. those events usually have arguments like the assembly what is being changed and the component which is being added or deleted. However, if I do undo or redo I cannot find such information from the arguments. Am I completely blind and that information is somewhere or is it missing and I need to figure out a way to handle things without?

 

Reason why I am asking is that I could direct the information from undo and redo events to the already existing methods without the need to create additional handles.

0 Likes
369 Views
4 Replies
Replies (4)
Message 2 of 5

zadazLWJJ4
Enthusiast
Enthusiast

Anyone? Does someone now if I can find out in undo/redo event which component is being created/deleted in case of new component for example. From where can I find that information?

0 Likes
Message 3 of 5

zadazLWJJ4
Enthusiast
Enthusiast

Halp?

0 Likes
Message 4 of 5

HermJan.Otterman
Advisor
Advisor

maybe look at the changemanager...?? in the application

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


0 Likes
Message 5 of 5

JaneFan
Autodesk
Autodesk

Only Transaction object is returned from OnRedo and OnUndo events, which can be used to get the DisplayName, Document, or other properties of Transaction object. There is no other detailed information besides that.

 

TransactionEvents.OnRedo
     TransactionObject: Create Fillet Feature (Transaction)
     Context: No context information
     BeforeOrAfter: kBefore
     HandlingCode: kEventNotHandled
TransactionEvents.OnRedo
     TransactionObject: Create Fillet Feature (Transaction)
     Context: No context information
     BeforeOrAfter: kAfter
     HandlingCode: kEventNotHandled




Jane Fan
Inventor/Fusion QA Engineer
0 Likes