2004 Plot Offset Work Around

Discussion in 'AutoCAD' started by WashCaps37, Mar 15, 2005.

  1. WashCaps37

    WashCaps37 Guest

    Hello All -

    As you all probably know about the existing bug in 2004 regarding the Page Setup Plot Offset not centering the Layout tab content on the page.

    I have found that after I set the page setup (Plot Offset Center Box is checked) for all the layout tabs I have to go back into the page setup of each layout tab and hit the "Enter" key in order for the Layout content to center on the page. This process will drive anyone crazy if they have hundreds of layout tabs in one drawing file. So, I have started to create a work around that will go through the pagesetup of each layout tab and hit "enter" for me. I have run into a snag with the "Enter" key part and need your help. I have tried different things to get the program to "hit the Enter key" but have had no success.

    This is what I have so far:

    (foreach l (layoutlist)
    (setvar "ctab" l)
    (command "pagesetup") "")

    Your help is greatly appreciated!
     
    WashCaps37, Mar 15, 2005
    #1
  2. WashCaps37

    Casey Guest

    From what I know, you can't 'click' the enter button in a dialog box with
    lisp.... I would ask in the VBA group?

    Casey
     
    Casey, Mar 18, 2005
    #2
  3. WashCaps37

    WashCaps37 Guest

    Casey,

    Thanks for your reply. I solved the issue using a little free program called AutoIt.

    Thanks agaiin!
     
    WashCaps37, Mar 21, 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.