Results 1 to 6 of 6

Thread: execute autolisp automatically upon startup

  1. #1
    Member
    Join Date
    2002-08
    Posts
    17
    Login to Give a bone
    0

    Default execute autolisp automatically upon startup

    I have an autolisp routine that introduces Page Setup Names to the current drawing.
    I am able to include it in the startup of AutoCAD 2004 (soon will be using 2006).
    In addition to its automatic loading, I would like to execute it in the same fashion.
    This way everytime that the user opens a drawing these Page Setup Names would be available.
    Is this feasible? And how do I achieve it?
    Thank you,
    -alex

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: execute autolisp automatically upon startup

    Quote Originally Posted by alexo
    I have an autolisp routine that introduces Page Setup Names to the current drawing.
    I am able to include it in the startup of AutoCAD 2004 (soon will be using 2006).
    In addition to its automatic loading, I would like to execute it in the same fashion.
    This way everytime that the user opens a drawing these Page Setup Names would be available.
    Is this feasible? And how do I achieve it?
    Thank you,
    -alex
    Are you currently running the routine at startup of each drawing? If you are then you would do the same thing you are already doing. If not, provide a little more information on your current procedures, and someone here will most likely help out.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Member
    Join Date
    2002-08
    Posts
    17
    Login to Give a bone
    0

    Default Re: execute autolisp automatically upon startup

    I'm sorry. Let's try again.
    I have a routine that loads automatically because it has been included in the startup of Autocad 2004.
    In order to run it (execute) the user is to type its name at the command line.
    I would like for this routine to execute without the user's input.
    I thinking that it may not be possible due to its function. This is why:
    The routine imports Page Name Setups from a predetermined drawing. In order to import successfully, it needs to execute during Paperspace.
    What do you think now?
    Should I make a button to execute the lisp once the user switches to Tilemode 0?
    I am not fluent in AutoLISP. I downloaded the one in question.
    So unless I learn it, I depend on somebody else to do the rewriting.
    Thank you for your responses,
    -alex

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: execute autolisp automatically upon startup

    Alex,

    It is possible. You can make autocad run a lisp routine at startup.

    If you are going to import page setups in each drawing, you then need to find out if those page setups are already in the drawing. Autorunning a routine that modifies the drawing will require you to either save or cancel when moving to a new drawing. Thus creating a lot of unnecessary dialog boxes showing up.

    If you are starting from scratch, you could put those page setups in your template file.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    Member
    Join Date
    2002-08
    Posts
    17
    Login to Give a bone
    0

    Default Re: execute autolisp automatically upon startup

    Thank you for your suggestion.
    I have already included the setups in my template. I am trying to provide an automated way of bringing the setups to older drawings.
    When you respond "It is possible", do you know how? Because I do not know how to make this routine run at startup.
    -alex

  6. #6
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,106
    Login to Give a bone
    0

    Default Re: execute autolisp automatically upon startup

    Quote Originally Posted by alexo
    Thank you for your suggestion.
    I have already included the setups in my template. I am trying to provide an automated way of bringing the setups to older drawings.
    When you respond "It is possible", do you know how? Because I do not know how to make this routine run at startup.
    -alex
    Alex,

    Yes I do know how, but it has been explained quite well in this post. Please also note the remaining posts in that thread, and any links within.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. How can I make a startUp Exe for Startup AutoCAD
    By 740176597380946 in forum ARX
    Replies: 6
    Last Post: 2013-05-24, 05:36 AM
  2. Replies: 6
    Last Post: 2011-04-25, 07:55 PM
  3. raysat - automatically launching at startup
    By tonori in forum 3ds Max - General
    Replies: 2
    Last Post: 2008-11-24, 03:18 PM
  4. Execute commands
    By rgranja508683 in forum Revit - API
    Replies: 3
    Last Post: 2006-08-11, 08:21 PM
  5. Autolisp help - inserting block names at startup
    By bschaeffer62144 in forum AutoLISP
    Replies: 5
    Last Post: 2004-08-28, 06:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •