Results 1 to 3 of 3

Thread: Macro or AutoLisp for opening multiple .dwt files

  1. #1
    Active Member
    Join Date
    2003-08
    Posts
    63
    Login to Give a bone
    0

    Default Macro or AutoLisp for opening multiple .dwt files

    Hi-
    I have a macro that opens one .dwt file which is:

    ^C^C^P(command "._vbastmt" (strcat "ThisDrawing.Application.Documents.Add("(chr 34) "F:/Templates/Autocad2004/Tests/CD-17x11.dwt" (chr 34) ")"))^P;

    I've tried several things on my own to have it open the above .dwt file as well as a second one without any success. Does anyone have any ideas how I can accomplish this?

    Thanks,
    Scott

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

    Default Re: Macro or AutoLisp for opening multiple .dwt files

    Can you post what you have tried?
    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
    2003-08
    Posts
    63
    Login to Give a bone
    0

    Default Re: Macro or AutoLisp for opening multiple .dwt files

    ^C^C^P(command "._vbastmt" (strcat "ThisDrawing.Application.Documents.Add("(chr 34) "F:/Templates/Autocad2004/Tests/CD-17x11.dwt" (chr 34) ")"))(command "._vbastmt" (strcat "ThisDrawing.Application.Documents.Add("(chr 34) "F:/Templates/Autocad2004/Tests/upper boxes-17x11.dwt" (chr 34) ")"))^P;

    I just basically repeated the part where a command gets issued but put in the second file.

    Scott

Similar Threads

  1. Opening a drawing from AutoLISP...
    By FWSchreck in forum AutoLISP
    Replies: 9
    Last Post: 2019-01-11, 02:08 PM
  2. Opening dwgs/xrefs with Autolisp...
    By brwatts22 in forum AutoLISP
    Replies: 2
    Last Post: 2012-12-26, 11:50 AM
  3. AutoLISP to Disable Macro Virus Protection
    By patrick.greg252789 in forum AutoLISP
    Replies: 3
    Last Post: 2012-02-07, 01:53 PM
  4. Launch AutoLISP program from VB Macro
    By johannvonspiralspine in forum VBA/COM Interop
    Replies: 3
    Last Post: 2008-04-27, 04:16 AM
  5. Opening multiple dwg files in one step
    By norbertmezei in forum AutoCAD General
    Replies: 11
    Last Post: 2007-08-06, 07:14 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
  •