layer state reactor

layer state reactor

Anonymous
Not applicable
454 Views
3 Replies
Message 1 of 4

layer state reactor

Anonymous
Not applicable
Hi, is there a reactor for layer state? Thanks
0 Likes
455 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
You could use a database reactor and a list of layers and their states that you store in CDocData. When a drawing is first opened, you store the current states of all the layers into the list in your doc data. Use the AcDbDatabaseReactor::objectModified( ) notification, and check to see if the object being modified is an AcDbLayerTableRecord. If it is, check it's current state vs. the one you have stored. If they differ, then the user just changed it. Don't forget to update your list when the state changes. -Rich "MiChaeL" wrote in message news:40757a69$1_2@newsprd01... > Hi, > is there a reactor for layer state? > > Thanks > >
0 Likes
Message 3 of 4

Anonymous
Not applicable
I know this is a really old posting but I thought I'd share that there
are now reactors for layer states in 2008. The class is
AcDbLayerStateManagerReactor and it has the following methods:

abortLayerStateDelete
abortLayerStateRename
abortLayerStateRestore
layerStateCompareFailed
layerStateCreated
layerStateDeleted
layerStateRenamed
layerStateRestored
layerStateToBeDeleted
layerStateToBeRenamed
layerStateToBeRestored

Just FYI.

On Thu, 8 Apr 2004 15:57:40 +0000, MiChaeL wrote:

>Hi,
>is there a reactor for layer state?
>
>Thanks
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Tom,

Thanks for the info! This will come in handy.

Are you still planning on teaching some classes this fall at AU? If so, I
would be available to help you out in anyway you need like writing some
samples or giving ideas on classes. Drop me a note if you're interested ...
jetskier_orl at yahoo dot com.

Joe Augustino


"Tom Stoeckel" wrote in message
news:5536422@discussion.autodesk.com...
I know this is a really old posting but I thought I'd share that there
are now reactors for layer states in 2008. The class is
AcDbLayerStateManagerReactor and it has the following methods:

abortLayerStateDelete
abortLayerStateRename
abortLayerStateRestore
layerStateCompareFailed
layerStateCreated
layerStateDeleted
layerStateRenamed
layerStateRestored
layerStateToBeDeleted
layerStateToBeRenamed
layerStateToBeRestored

Just FYI.

On Thu, 8 Apr 2004 15:57:40 +0000, MiChaeL wrote:

>Hi,
>is there a reactor for layer state?
>
>Thanks
>
>
0 Likes