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

abort a modify in a reactor

1 REPLY 1
Reply
Message 1 of 2
Anonymous
249 Views, 1 Reply

abort a modify in a reactor

Hi,

is it possible abort a modify in the modified() method of a reactor ?

If not, how can do ? My goal is to react to a user modify, do some checks

on the modified entity and, if the check fails, abort the modify ...

 

Which is the correct objectarx mechanism to use ?

 

Thnaks

Leonard

1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: Anonymous

Hi Leonard,

 

There is no direct way to prevent modification from the reactor callback.

 

I think the closest you can get is to restore the change by using a series of reactors to monitor the change or by undoing the last change.

 

In the ObjectARX Training material which can be downloaded here, Step 7 (Transient Reactors) prevents modification using a set of transient reactors.

http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112

 

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report

”Boost