How to do this effect? after ReDo command

How to do this effect? after ReDo command

Anonymous
Not applicable
807 Views
4 Replies
Message 1 of 5

How to do this effect? after ReDo command

Anonymous
Not applicable

Hi Guys,

 

I use AutoCAD 2011, VB.net

 

I have done a form docked on the left side of drawing dynamicly display all block in the drawing. What I have done is select all block druing drawing open process and put them into listview in the form and display them.

 

Once I delete some of the block, they will be removed from my form as well.

 

Now is my question. If I send redo command(Ctrl+Z), those deleted block will be put back to drawing, I wonder how to update my form at the same time? I could get all blocks again and refresh the listview. But I think that will take sometime if I have  lots blocks in the drawing.

 

Any ideas?

 

Thanks

 

Yaqi

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

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Now is my question. If I send redo command(Ctrl+Z)

Check for event "CommandEnded" or for "ObjectAdded" (I think it will be raised when you do a _REDO)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for the hint. Do you know where is ObjectAdded?

 

T

0 Likes
Message 4 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Do you know where is ObjectAdded?

It's an event in the Autodesk.AutoCAD.DatabaseServices.Database - object.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes
Message 5 of 5

Anonymous
Not applicable

Hi Alfred,

 

I just did a test. It didn't trigger objectadded when I use redo.

0 Likes