Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Script Files

  1. #1
    Active Member
    Join Date
    2001-12
    Location
    Menasha, WI
    Posts
    74

    Default Script Files

    Its been a while since I wrote a script, but I have several drawings where I want to replace a phone number in a titleblock, what I want to utilize is the insert command of title-d=title-d, confirm the overwrite, but then escape out of actually inserting a second titleblock in several drawings.

    Some help would be much appreciated.

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

    Default Re: Script Files

    Are you trying to do this with a script file (.scr extension) or an AutoLISP file (.lsp extension)?
    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
    Active Member
    Join Date
    2001-12
    Location
    Menasha, WI
    Posts
    74

    Default Re: Script Files

    Script (SCR)

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

    Default Re: Script Files

    Please note I have *moved* this thread from the AutoLISP Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

    Thanks,

    Richard
    Forum Moderator
    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
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Script Files

    You might try some thing along these lines
    Code:
    ^c^c-insert;blockname=filename;y;^c
    I have not tested this macro/script.
    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

  6. #6
    Member
    Join Date
    2007-12
    Location
    Portland, Oregon
    Posts
    31

    Default Re: Script Files

    Im not sure if this is to simple but when I need to change the date or #'s in my title blocks I go to edit- find- replace all.

  7. #7
    Active Member
    Join Date
    2001-12
    Location
    Menasha, WI
    Posts
    74

    Default Re: Script Files

    I have about 200-300 drawings in different directories, so a more global command is needed. The change is done in the block so what I want is something to update the information in the 200-300 drawings with me out getting something to drink.

  8. #8
    Certifiable AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    2,718

    Default Re: Script Files

    You've just come up with a wonderful scenario for using fields tied to custom sheet set properties...
    Officially Awesome
    Real pirates wear silk suits & ties, and write EULAs
    The only thing more dangerous to the liberty of a free people than big government, is big business.

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

    Default Re: Script Files

    Quote Originally Posted by cadtag View Post
    You've just come up with a wonderful scenario for using fields tied to custom sheet set properties...
    I don't think that is the best solution. How many times will your firm's phone number change? If this is for a client's phone number, that may be more appropriate as it would be different for different clients.
    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

  10. #10
    Active Member
    Join Date
    2001-12
    Location
    Menasha, WI
    Posts
    74

    Default Re: Script Files

    Then what is the best or better solution? We are updated only 300 drawings so a quick and easy way without opening all drawings is my request.

    As for the fields, they weren't around when these borders were originally created.

    Not to be picky but I am looking for a solution as opposed to what I should have had done 8+ years ago on an existing border.

Page 1 of 3 123 LastLast

Similar Threads

  1. Script On Multiple Files
    By zack.meyers in forum AutoLISP
    Replies: 0
    Last Post: 2012-02-07, 06:15 PM
  2. Script & Lsp Files on Toolpalette
    By bellis.239472 in forum CAD Management - General
    Replies: 2
    Last Post: 2011-04-12, 01:35 PM
  3. Need to script 'explode' of hundreds of files ..
    By mickmon in forum AutoCAD Customization
    Replies: 7
    Last Post: 2009-12-07, 06:08 PM
  4. Script files
    By -OTTP-Brembo in forum AutoLISP
    Replies: 8
    Last Post: 2005-03-10, 10:13 PM

Posting Permissions

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