Message 1 of 4
Persistent Reactors
Not applicable
12-27-2002
06:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a class derived from AcDbObject that is serving as a persistent
reactor. This class has a member called m_TargetPoint which is basically
the center of the Acad entity it refers to. In the AcDbObject::modified( )
function, i examine my stored m_TargetPoint vs. the ACTUAL point where that
entity is. If the two are different, it means that the user has moved the
entity. That all works great, but only during my current session. I can't
figure out what i need to do to cause my reactor to actually file that
member out! Obviously with most entities, you just open it for write and
assert, and it writes its members out. However, i'm not opening or closing
any of the reactors myself - AutoCAD is managing that. What do i have to do
to cause my reactor to file itself? As of right now, it seems that the only
time the reactor ever files its members to the drawing is when it is
initially created.
reactor. This class has a member called m_TargetPoint which is basically
the center of the Acad entity it refers to. In the AcDbObject::modified( )
function, i examine my stored m_TargetPoint vs. the ACTUAL point where that
entity is. If the two are different, it means that the user has moved the
entity. That all works great, but only during my current session. I can't
figure out what i need to do to cause my reactor to actually file that
member out! Obviously with most entities, you just open it for write and
assert, and it writes its members out. However, i'm not opening or closing
any of the reactors myself - AutoCAD is managing that. What do i have to do
to cause my reactor to file itself? As of right now, it seems that the only
time the reactor ever files its members to the drawing is when it is
initially created.