Startup Suite

Discussion in 'AutoCAD' started by Dale Levesque, May 20, 2004.

  1. Way to go psychic Rudy, do you read tea leaves as well?


    And to think...someone said I need to re-read the original post...

    I knew something was amuck....

    --

    AUTODESK
    Authorized Developer
    http://www.Cadentity.com
    MASi
     
    michael puckett, May 20, 2004
    #21
  2. Glad you nailed it Dale. This thread certainly
    underscores why the use of globals is generally
    frowned upon.

    Your right Doug, I just thought that there might be something with the
    Startup Suite that was well known. Of course it's turned out to be a change
    made to another program that caused the error. Actually it exposed a bug
    that I've now fixed. Global variables ... yikes.

    Thanks again.

    Dale
     
    michael puckett, May 20, 2004
    #22
  3. Is it possible that something in your code crashes when it
    is loaded twice?

    You might want to use some conditional branching to prevent
    anything from happening on the second load:

    (if (not *YourAppWasLoaded*)
    (progn

    ;; contents of your existing .lsp file here.

    (setq *YourAppWasLoaded* t)
    )
    )
     
    Tony Tanzillo, May 20, 2004
    #23
  4. Dale Levesque

    Doug Broad Guest

    That was my WAG 3.
     
    Doug Broad, May 20, 2004
    #24
  5. Dale Levesque

    Rudy Tovar Guest

    Confusious say, luck guess...

     
    Rudy Tovar, May 20, 2004
    #25
  6. Ewwww, that's bad advice imo :(

    then make your vlx as protected namespace, that will take care of that. :)
     
    michael puckett, May 20, 2004
    #26
  7. It's getting wierder. I changed a var name on a hunch , recompiled and
    copied it to a users PC and the problem was fixed. I then copied the same
    file to another users PC and the problem still exists.

    If I remove the program from the StartUp Suite, start AutoCAD then manually
    load the program everything works splendidly on all users PC's.

    If I run the program with the source code through the VLIDE on all users
    PC's it works splendidly.

    Dale
     
    Dale Levesque, May 20, 2004
    #27
  8. Ho Luis. I was responding to the suggestion that problems
    associated with global variables can be remedied by compiling
    to a separate namespace. In my opinion that encourages
    careless programming and hides serious problems.

    I'm off-line until tomorrow <on my way to go see Aerosmith>,
    cheers all.

    porque? why?

    let me give you an example:

    how do you make it work to handle let say ODCL dialogs?

    in other words I am not saying to extra-populate the environment with
    globals et-al

    now explain it to me why is bad but in spanish 101 please... :)

    Gracias Miguel

    ....
     
    michael puckett, May 20, 2004
    #28
  9. Also, I just removed from all users Startup Suite, included (load "Bo.vlx")
    an thier acaddoc.lsp file and all is well.

    Questions:

    1.) Why would this happen all of a sudden? I agree with the concences that
    something I've modified in other areas of the software had some effect but
    then:

    2.) Why would the changes made fix the problem for one user who can still
    use the Startup Suite to load it but no others can.

    3.) Why does it work well universally if manually loaded or loaded via
    acadoc.lsp?

    I apologize to all btw for the confusing way this thread has developed. It's
    broke, it's fixed!, oops it's only a little broke...etc.

    Best regards,

    Dale
     
    Dale Levesque, May 20, 2004
    #29
  10. Say hi to Liv for me if you see her Michael. : )

     
    Dale Levesque, May 20, 2004
    #30
  11. Dale Levesque

    Rudy Tovar Guest

    1) why ask why? you wrote it.

    2) We don't know how you setup your office to access each file.

    3) Are perhaps accessing a autocad variable before it completely loads.

    As may have stated before, unless you're willing to share the code to see
    what exactly is occurring, we'll keep guessing...

    I've got a question for you, how many fingers am I holding up?

    A mechanic can't work on a car if it doesn't have an engine...nor can a bird
    flight if it doesn't have wings.
     
    Rudy Tovar, May 20, 2004
    #31
  12. I've got a question for you, how many fingers am I holding up?

    Thats a good one, I like that.
    That makes sense and it's pretty too.

    LOL, I take your point Rudy, I geuss I was just trying to make a comment
    about how wierd it is that the same code behaves so differently on two
    different machines when loaded via the Startup Suite.

    I am perfectly willing to post the code but it's quite lengthy and it does
    run perfectly from the VLIDE. I'll struggle with it from here. Thanks again
    for your help though.

    Dale
     
    Dale Levesque, May 20, 2004
    #32
  13. Dale Levesque

    Rudy Tovar Guest

    Sorry about the humor...but you understand...

    We enjoy helping if we could...but we also understand if you don't want to
    share the code.
     
    Rudy Tovar, May 21, 2004
    #33
  14. Dale Levesque

    calfcreek Guest

    I'll take a guess...one? :)

    cc
     
    calfcreek, May 21, 2004
    #34
  15. Thank you Luis, IT WAS GREAT <well spent coin> :)

    Don't worried my friend.... enjoy the concert!!!

    [the last one I went was to the YES 30th, here..in.SD]
     
    michael puckett, May 21, 2004
    #35
  16. A lot of look-a-likes, but no Liv :)

    "Dale Levesque" <dale at dynamicwindows.com> wrote in message Say hi to Liv for me if you see her Michael. : )
     
    michael puckett, May 21, 2004
    #36
  17. After reading this thread, why do people use the startup suite?
    Its so much simpler to have either the acad.lsp or Acaddoc.lsp control things.
    Then I can make the startup a little custom to various groups in our office by just checking a flag set in the registry.
    I would hate to constantly monitor the users startup suite.
    The only thing I use appload for is to unload a vlx once in a blue moon.
    Otherwise I have an LL function to load anything assuming its in the search path.
    If its not in the path, just browse for in explorer and drag in...
    I find the startup suite to be just another hidden thing to troubleshoot.

    I totally understand a non-lisper using it, but for those that do know lisp, is there some great thing the 'suite does
    that cannot be done with a startup lisp?
    thx
    James Maeding
    Civil Engineer/Programmer
     
    James Maeding, May 21, 2004
    #37
  18. Dale Levesque

    Walt Engle Guest

    The answer to your question is no. I too use acad.lsp and for those lsp routines that I use, I modify my acad.mnu to add
    them. But, to each their own way of doing things.
     
    Walt Engle, May 21, 2004
    #38
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.