.NET

Reply
Valued Contributor
scluna
Posts: 61
Registered: ‎02-20-2007
Message 1 of 3 (175 Views)
Accepted Solution

How to add Event Handler

175 Views, 2 Replies
04-07-2014 10:02 AM

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
Valued Contributor
cdinten
Posts: 61
Registered: ‎11-19-2010
Message 2 of 3 (148 Views)

Re: How to add Event Handler

04-07-2014 05:34 PM in reply to: scluna
how about using : Application.DocumentManager.DocumentLockModeChanged Event? hope this may help you
Valued Contributor
scluna
Posts: 61
Registered: ‎02-20-2007
Message 3 of 3 (133 Views)

Re: How to add Event Handler

04-09-2014 07:42 AM in reply to: cdinten
Thanks but I already resolved it. I use the Modified event on the object.
SCLuna
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.