Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Draw Viewport on correct Layer then switch back to original Layer

  1. #1
    Member
    Join Date
    2006-02
    Posts
    22

    Red face Draw Viewport on correct Layer then switch back to original Layer

    Hello

    Is it possible to alter the 'Single Viewport' button macro to change layer to "VPort", allow the user to draw the viewport, then change the layer settings back to previous.

    Regards

    Steve

  2. #2
    All AUGI, all the time madcadder's Avatar
    Join Date
    2000-11
    Location
    Back in the Bay; Looking for work.
    Posts
    979

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    yes... What version?

  3. #3
    Member
    Join Date
    2006-02
    Posts
    22

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    Hi Todd

    Autocad 2007

  4. #4
    I could stop if I wanted to
    Join Date
    2005-09
    Location
    Reading, PA
    Posts
    214

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    Just go into the .cui, copy and edit the command, then reassign it.

  5. #5
    Member
    Join Date
    2006-02
    Posts
    22

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    Hi

    What command will I have to assign within the macro, I can change the layer to viewport and am then able to draw my viewport, but I do not know how to revert back to layerp at the end.

    Appreciate your help

    Cheers

    Steve

  6. #6
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,027

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    ._Layer ._Previous should do it.
    Otherwise it's some lisp - set a variable equal to the current layer name at the beginning and restore it later.
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  7. #7
    Member
    Join Date
    2006-02
    Posts
    22

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    Cheers for your help everyone

    The end product was the following

    -la;s;viewport;;$M=$(if,$(eq,$(getvar,vpmaximizedstate),1),^C^C_-vports,$(if,$(eq,$(getvar,tilemode),1),^C^C_-vports _si,^C^C_-vports));\\LayerP

  8. #8
    Member
    Join Date
    2006-02
    Posts
    22

    Question Re: Draw Viewport on correct Layer then switch back to original Layer

    The above scenario does not seem to have the same impact on polygonal viewports, can someone advise me on achieving the same result for this

    Cheers

    Steve

  9. #9
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Draw Viewport on correct Layer then switch back to original Layer

    Hi Steve

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

    Thanks, Mike

    Forum Manager

  10. #10
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Draw Viewport on correct Layer then switch back to original Layer


Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 2012-01-08, 02:04 PM
  2. Correct Layer
    By rhayes.99001 in forum ACA General
    Replies: 6
    Last Post: 2008-05-21, 06:59 PM
  3. Replies: 4
    Last Post: 2006-12-11, 05:34 PM
  4. Replies: 8
    Last Post: 2006-10-28, 09:47 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
  •