Links
AcMapObjClassSystem Class
AcMapObjClassApi.lib
Manages the registration and unregistration of classification reactors. Reactors are classes derived from AcMapObjClassReactor.
To add a custom reactor:Derive a custom class AcMapObjClassMyReactor from AcMapObjClassReactor:
class AcMapObjClassMyReactor : public AcMapObjClassReactor
Implement events by overriding the virtual functions that you need.Create an instance of the custom reactor:
AcMapObjClassMyReactor* pMyReactor = new AcMapObjClassMyReactor;
Register it so that it becomes active:
AcMapObjClassSystem().AddObjClassReactor(pMyReactor);
Write some classification code.Remove the reactor from the list and delete it:
AcMapObjClassSystem().RemoveObjClassReactor(pMyReactor);
delete pMyReactor;
Note that only one list of reactors exists independently of the drawing, so if you change classification information in a feature-definition file, all the drawings are notified of the event.
class AcMapObjClassSystem;
File
AcMapObjClassSystem.h
Destroys an instance of this class. | |
Constructs an instance of this class. | |
Adds a reactor to the list of the classification reactors. | |
Removes a reactor from the list of the classification reactors. |
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].