update layer color in documents collection

Discussion in 'AutoCAD' started by Joe Burke, Apr 5, 2005.

  1. Joe Burke

    Joe Burke Guest

    Luis,

    Yes, that works. :)

    Though I must confess I don't understand how, since I know nothing about reactors.
    More to learn...

    Thanks. Your advice is welcome as usual.

    Joe
     
    Joe Burke, Apr 8, 2005
    #21
  2. That's good...



    Take care Joe!


    LE.
     
    Luis Esquivel, Apr 8, 2005
    #22
  3. I mean.... is good that works

    And why works... is that I found that the only way to update the layer was to have it at the time of making current the document.

    LE.
     
    Luis Esquivel, Apr 8, 2005
    #23
  4. We can't say that 'that works', because what
    You're doing is trying to modify something in a
    document that's not active.

    What luis is doing, is waiting until the document
    becomes active to do the same thing.

    What you may not realize is that luis' reactor is
    not executing the update code until you switch
    to the document.

    The whole thing seems a little silly, since this
    creates more problems than it solves.



     
    Tony Tanzillo, Apr 8, 2005
    #24
  5. Yes

    As always Tony is right.

    Tony, can you elaborate more on the problems, you mention, please.


    LE.
     
    Luis Esquivel, Apr 8, 2005
    #25
  6. Luis - Please try to stop thinking about solutions
    to problems, only in terms of 'reactors'.

    You are trying to solve every problem with reactors,
    and in some cases, your proposed solutions are very
    shortsighted, because you overlook the problems
    that your reactor-based solutions also create.

    You can't solve one problem by creating another
    problem.

    You update the layers in every document, every
    single time the user activates it. Do I really need
    to explain what's wrong with that?
     
    Tony Tanzillo, Apr 8, 2005
    #26
  7. I see your point Tony and thank you, I understand.

    I won't proposed anymore solution with reactors for cases like or better I won't talk to much about them over here.

    I only want it to find out a way to at least have the color for the layer updated.... just that.

    Tony I am not a professional programmer, I know that.

    Now, I would like to learn from you, would like to have me as an intern?... I even would work for free, and I'm serious.

    Best regards,
    Luis.
     
    Luis Esquivel, Apr 8, 2005
    #27
  8. Luis - I never said you were claiming to be a professional
    programmer, just that you were going 'overboard' with the
    reactor-based programming.

    Reactors have their place, but there are times when they
    create more problems than they solve. The key is to try
    to learn more about AutoCAD's internal bahavior, so you
    can foresee when reactors are not the right solution.
     
    Tony Tanzillo, Apr 8, 2005
    #28
  9. Thank you.

    Just to comment, lately I am more focus in other type of exercises code solutions, as my latest post about gpoly, that you maybe saw it....

    And how you would solve something like the OP is looking, or this type of solution does not worth to even spent on them?

    And I see you ignored my last part of my previous post... :-(


    LE
     
    Luis Esquivel, Apr 8, 2005
    #29
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.