Layer State Event

Discussion in 'AutoCAD' started by weslleywang, Feb 9, 2005.

  1. weslleywang

    weslleywang Guest

    Hi,
    How are you?
    I am working on a Layer State routine. I am wondering if there is events of Layer State. what I want to know is, if someone change the Layer State from A to B in layer dialog box, I will have my routine do something. I can not find it from help and this group.
    Thank you very much if you can point me to right direction.


    Have a great day
    Wes
     
    weslleywang, Feb 9, 2005
    #1
  2. weslleywang

    Colin French Guest

    I don't think there are any events tied directly to changes in the layer states or use of the layer state manager. You *might* be able to use the document's "EndCommand" event and look for the Layer command having been used, since users have to go through that in order to reach the layer states, but this obviously is far from foolproof.

    Another approach would be to have your routine take care changing layerstates, then doing whatever else is needed. Make it convienent enough so users will want to use your routine(s) instead of going off to the layer dialog box and then into the layer state dialog box.

    ...Colin French
     
    Colin French, Feb 9, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.