Results 1 to 10 of 10

Thread: Updating multiple computers using a script or LISP file

  1. #1
    100 Club Chris.Partin's Avatar
    Join Date
    2000-12
    Location
    Greenville, SC
    Posts
    123

    Default Updating multiple computers using a script or LISP file

    I need help!! AUGH!

    I've been working on bringing another office in on the main office's CAD standards and what not. I've been updating custom menus and need to not only update their AutoCAD set ups, but the ones in my own office. We're talking 25 computers or so. I know there's a way to write a script file or some LISP file that will help update everyone's PC, but I don't know how to write it and have no resources on learning how to do this. Can anyone help me?

    Thank you in advance!
    Last edited by Chris.Partin; 2006-01-26 at 05:17 PM.
    Chris Partin
    O'Neal, Inc - Greenville, SC

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    2004-02
    Location
    Colorado
    Posts
    1,986

    Default Re: Updating multiple computers using a script or LISP file

    Don't you know you can't get no satisfaction from LIPS files?

    In any case, you're digging into a messy place. What exactly are you trying to do? What versions of Autocad? Any verticals?

    In general, many things can be configured in a central, shared location, such as a network server. Every individual workstation is then configured to look at the shared files. This makes things much more manageable, because changes only need to be made in one place (the shared location).

    There are lots of tricks to managing many computers, but it would be hard to give advice without a lot of details.

  3. #3
    Active Member
    Join Date
    2005-05
    Location
    CA
    Posts
    94

    Default Re: Updating multiple computers using a script or LISP file

    Quote Originally Posted by cpartin
    ....but I don't know how to write it and have no resources on learning how to do this.
    ummm, you've posted your question in the one place that IS your best resource on learning how to do that.

    As far as advice for setting up office-wide standardization, I agree with Richard. There should be one central location where your custom menus, buttons, commands, etc reside. Each workstation will then need to be configured to point to those directories (under Options, Files, Support File Search Path). Once you set up the support paths and menus you should be able to go to the Options/Profiles tab and export out that saved profile which can then be imported to other machines and you should be good to go.

    Once you have everyone set up that way you should have more flexibility when you need to change the custom menus, etc.

    The one thing I would look for would be a LISP routine for importing and applying a saved profile. I'm actually on the look-out myself and came across this thread if it's any help to you....

    http://forums.augi.com/showthread.ph...789#post272789
    Mike Pollock
    Assistant Engineer
    Diamond West, Inc.

  4. #4
    100 Club jsr13's Avatar
    Join Date
    2004-09
    Location
    Virginia - USA
    Posts
    130

    Default Re: Updating multiple computers using a script or LISP file

    cpartin,
    I may have just the file you're looking for - or at least a good starting place.

    I have our network setup so that all of the "master" files are on our server. This is recommended by most everyone (including those already posting replies here). But, if you point to the network location and your network goes down (or slows down), what becomes of accessability to those files? You simply don't have it. This may not happen often, but "what if?" I created this routine when networks weren't as stable as they usually are today, but it still applies.

    The solution is to have all of your files copied to equivalent folders on your local hard drive and have the ACAD paths local. The problem still remains in how to copy all of the files that are changed or added to your local hard drive. Without automation, this can be a very tedious process. I have created batch files: one that runs both automatically (when the computer logs onto the network) and one for manual execution (when files need to be updated for an immediate fix). The files are copied to your hard drive in this manner: created if the file didn't exist & overwritten only if the file on the network is newer than the one on your local hard drive.

    The only drawback is the menu files. If you add the menu files into the process, the menus on your hard drive will be overwritten & you'll lose the toolbar placement/customization that the individual user has done. Let's face it - everybody prefers toolbars in different places. Of course, if you have one single standard company-wide for the toolbars & their locations, this is an advantage instead of a problem. We give our guys/galz some latitude so I don't use the menus in the update routine.

    I'm attaching the file that I use, but make sure that before you use it, you test it well. If there's something off in your pathing, you'll end up with tons of files in places that you didn't want them.

    One other advantage to having your files locally is for users that have AutoCAD on their home computers. Local paths for CAD means that your profile from work will be easy to implement on your home computer with little or no changes at all. Export your profile from your work computer, burn the ARG file & the correct folders to a disk, take it home, copy to your HD in the same location(s) as your work computer, open autocad & import your profile.

    Let me know how you like it & if there are any improvements you might see. I like it & it works for us seamlessly, but there's always something that someone else can see.

    ---------------------------

    This only addresses keeping the individual computers up-to-date, which I think beats having your ACAD look at & pull from the server for a few reasons: decreased network traffic (especially if you're working at the satellite office & the CAD server is at the main office), quicker response times because you're not pulling from the network, continued productivity if/when the network is down/slow, and ease of homecad setup & updates.

    A recommendation for organization: keep your custom files in different folders than the standard ACAD folders and have the paths for those custom folders higher in the Support File Search Path (see the attached JPG). This will make it easier to keep track of your custom files and ensure that your files are found ahead of the "standard" ones.

    ---------------------------

    I did kinda' get carried away on the batch routine & forgot to hit the automation part of the computer setup, but it seems that Mr. McSwain has covered that part nicely.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jsr13; 2006-02-12 at 11:54 PM. Reason: Addon info.
    Jeff Rayhorn

    Sinclair Pratt Cameron, P.C.
    Consulting Structural Engineers
    Virginia Beach
    Virginia, USA

  5. #5
    Certified AUGI Addict rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Houston
    Posts
    7,520

    Default Re: Updating multiple computers using a script or LISP file

    Quote Originally Posted by cpartin
    I need help!! AUGH!

    I've been working on bringing another office in on the main office's CAD standards and what not. I've been updating custom menus and need to not only update their AutoCAD set ups, but the ones in my own office. We're talking 25 computers or so. I know there's a way to write a script file or some LISP file that will help update everyone's PC, but I don't know how to write it and have no resources on learning how to do this. Can anyone help me?

    Thank you in advance!
    If you have never written LISP or VBA, then I would advise retaining some professional help. You can learn to do it here with some help, but how much billable time is your employer willing to spend for you to learn lisp - and if so, there are far better venues for doing so than in a website forum.

    Don't get me wrong - there are many talented people here, but if you didn't know anything about cars, you wouldn't learn how to rebuild an engine via an online course either....

    Having said that, here is a brief summary of how we do it.

    1. Create a central location on a server that you have write access to and that is read-only for everyone else.
    2. Create a file in this location called "acad.lsp"
    3. Create a file in this location called "acaddoc.lsp"
    4. Add the path to this central network location to the TOP of each users support file search path. (There is a way to automate this - but it's a little detailed for this summary)
    5. Anything that needs to be done "once per session" - add to "acad.lsp" - This would include things like the setting of registry variables, and the setting of any paths.
    6. Anything that needs to be done "once per drawing" - add to "acaddoc.lsp" - This would include things like the loading of lisp files, and setting of drawing variables (although the setting of drawing variables is not recommended since that will alter DBMOD - set these in your template drawing)
    7. If you have any ARX files that you want auto-loaded - add their name (and path if necessary) to a file named "acad.rx", located in the same network directory.
    8. Anything else you want shared, like "acad.pat", "acad.lin", shape files, fonts, etc. - you can place in the network location also.
    9. Don't worry about support files included with AutoCAD - leave all the OOTB paths and files alone. As long as your network path is at the TOP of the support file search path, everything will load correctly.


    Good luck

  6. #6
    Member
    Join Date
    2003-12
    Posts
    2

    Thumbs up Re: Updating multiple computers using a script or LISP file

    Check out http://www.ecsseattle.com/. We have over 70 workstations with multiple applications and it has been worth every $ spent to get it up and running.

    Kevin Tuning

  7. #7
    I could stop if I wanted to Kevin Janik's Avatar
    Join Date
    2003-05
    Location
    Portland, OR
    Posts
    383

    Default Re: Updating multiple computers using a script or LISP file

    I am doing a similar thing and was wondering if there is a way to import a profile into 2007 using LISP and then make it current. Maybe this is the same as above but I did not see anything useful. Most commands with dialogs have a command line version that works with LISP but the options command does not seem to do this.

    Kevin

  8. #8
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Updating multiple computers using a script or LISP file

    Quote Originally Posted by Kevin Janik View Post
    I am doing a similar thing and was wondering if there is a way to import a profile into 2007 using LISP and then make it current. Maybe this is the same as above but I did not see anything useful. Most commands with dialogs have a command line version that works with LISP but the options command does not seem to do this.

    Kevin
    Have you seen Jimmie's routines?
    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

  9. #9
    I could stop if I wanted to Kevin Janik's Avatar
    Join Date
    2003-05
    Location
    Portland, OR
    Posts
    383

    Default Re: Updating multiple computers using a script or LISP file

    Thanks!

    That is a nice set of profile tools!

    I will try them out at lunch. It looks like they do what I want generally. I just need to add a rountine to tailor them to import and export from and to the correct folders.

    Kevin

  10. #10
    100 Club jsr13's Avatar
    Join Date
    2004-09
    Location
    Virginia - USA
    Posts
    130

    Default Re: Updating multiple computers using a script or LISP file

    Nice post - I'll be checking that out also.
    Jeff Rayhorn

    Sinclair Pratt Cameron, P.C.
    Consulting Structural Engineers
    Virginia Beach
    Virginia, USA

Similar Threads

  1. Replies: 0
    Last Post: 2010-08-26, 07:56 PM
  2. Converting a script/macro to a LISP file?
    By mpeterson79 in forum AutoLISP
    Replies: 2
    Last Post: 2008-12-22, 01:17 PM
  3. updating multiple blocks in a single file
    By mcervantes in forum AutoCAD General
    Replies: 2
    Last Post: 2007-01-19, 03:10 PM
  4. Replies: 2
    Last Post: 2006-04-25, 02:36 PM
  5. Script to execute lisp on multiple drawings
    By jrd.chapman in forum AutoLISP
    Replies: 11
    Last Post: 2005-02-08, 11:24 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
  •