.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add Event Handler

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
scluna
525 Views, 2 Replies

How to add Event Handler

Hi,

 

Anyone knows how to add event handler to objects everytime the mouse select an autocad entity like polyline when this object is resize, drag or move.

Or what event is triggered when this is done.

 

I am not sure if I'm suppose to use overrule, but if I use overrule, how do I implement it.

 

here is my snippet:

 

Dim psr AsPromptSelectionResult= ed.SelectImplied

IfNot psr.Status = PromptStatus.OK ThenExit SubEndIfForEach objId AsObjectIdInpsr.Value.GetObjectIds()

     ValidateObject(objId)

Next

 

 

Thnaks and regards

 

 

SCLuna
2 REPLIES 2
Message 2 of 3
cdinten
in reply to: scluna

how about using : Application.DocumentManager.DocumentLockModeChanged Event? hope this may help you
Message 3 of 3
scluna
in reply to: cdinten

Thanks but I already resolved it. I use the Modified event on the object.
SCLuna

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost