PSETUPIN MACRO

Discussion in 'AutoCAD' started by trlear, Apr 8, 2005.

  1. trlear

    trlear Guest

    I've tried to implement a macro button to import page setups from a template to some old drawings. My macro looks like this:
    ^C^C.-PSETUPIN "CBEC Templates.dwt" "*" ^M;
    I have the file in the 2005 support folder with is the same path listed in the Tools/Options/Support Path dialog box.

    When I click the macro button, it gives me a message on the command line ...
    -PSETUPIN Enter file name:
    Filename cannot be blank

    But then when I got to check the pages setups it seems to have put them in??

    I used to have a macro button that referred to a lisp routin that would import the page setups, but I can't seem to make it work now that I've upgraded to 2005. Obviously I'm doing something wrong and would like to get this functionality back. Any help appreciated.

    Thanks much!
     
    trlear, Apr 8, 2005
    #1
  2. Last month somebody from here or the autocad academia post this macro and
    work perfect, this is the macro: ^C^C_Expert 2 _-psetupin
    "C:/yourdirectory/your.dwg" "*" _Expert 0 QSAVE

    Elvis
    template to some old drawings. My macro looks like this:
    the Tools/Options/Support Path dialog box.
    import the page setups, but I can't seem to make it work now that I've
    upgraded to 2005. Obviously I'm doing something wrong and would like to get
    this functionality back. Any help appreciated.
     
    Elvis Landaverde, Apr 8, 2005
    #2
  3. trlear

    trlear Guest

    I changed my drawing from a .dwt file to a .dwg file and now it works fine. Maybe a problem reading the template file?? Not sure, but it works so I'll leave it alone!!! :)

    Thanks much for your help!
     
    trlear, Apr 8, 2005
    #3
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.