Undo and modifications made in ImpliedSelectionChanged

Undo and modifications made in ImpliedSelectionChanged

SRSDS
Advisor Advisor
408 Views
1 Reply
Message 1 of 2

Undo and modifications made in ImpliedSelectionChanged

SRSDS
Advisor
Advisor

On ImpliedSelectionChanged I am highlighting the selection (and associated objects) by changing temporarily modifying the entities colour and lineweight.

On deselection I revert unhighlight them.

The problem is that the UNDO command rolls back through these selection colour changes.

I have added a routine to revert the colour in CommandEnded UNDO but it doesn't work and I'm scratching my head.

Without posting code, is there an obvious flaw in what I am attempting to do?

 

I was hoping there is some way to skip the undo of certain events within a command.

db.DisableUndoRecording(True) sounded right doesn't seem to work either.

0 Likes
Accepted solutions (1)
409 Views
1 Reply
Reply (1)
Message 2 of 2

SRSDS
Advisor
Advisor
Accepted solution

I worked it out.

 

ImpliedSelectionChanged was getting triggered on the Undo event before the command ended Undo.

This also contained an UnHighlight event and was clearing items that needed to be unhighlighted.

Seems like entities need to be Unhighlighted on the CommandEnded UNDO and not ImpliedSelectionChanged

 

 

0 Likes