Results 1 to 5 of 5

Thread: Quickly Toggle Plot styles help!

  1. #1
    I could stop if I wanted to
    Join Date
    2006-06
    Location
    Olympia, Washington, U.S.A.
    Posts
    359
    Login to Give a bone
    0

    Default Quickly Toggle Plot styles help!

    Does anyone know of a lisp routine or macro or sysvar that can change the paper space background color on the fly from white to black and back again? or change "display plot styles" on the fly? either would be great. both would be perfect. i am using the black and white paper space and would like to see color when i need to quickly. then revert back to black and white plot styles. thanks in advance for your help.

    ~Frank

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

    Default Re: Quickly Toggle Plot styles help!

    Have you tried a search for "display plot style" in the AutoLISP forum? I believe the second result has something for you.
    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
    AUGI Addict .T.'s Avatar
    Join Date
    2000-12
    Location
    Lost
    Posts
    1,473
    Login to Give a bone
    0

    Default Re: Quickly Toggle Plot styles help!

    Quote Originally Posted by Gigliano70 View Post
    Does anyone know of a lisp routine or macro or sysvar that can change the paper space background color on the fly from white to black and back again? or change "display plot styles" on the fly? either would be great. both would be perfect. i am using the black and white paper space and would like to see color when i need to quickly. then revert back to black and white plot styles. thanks in advance for your help.

    ~Frank
    Hi Frank,

    This might get you started on the display plot styles portion. I've been playing with the background color stuff, but I haven't produced satisfactory results yet (a lot of other stuff changes too).

    Code:
    (defun c:togbg (/ lout)
      (vl-load-com)
      (setq lout (vla-Item
    	       (vla-get-layouts
    		 (vla-get-activedocument
    		   (vlax-get-acad-object)
    		 )
    	       )
    	       (getvar "ctab")
    	      )
      )
      (if (= (vla-get-ShowPlotStyles lout) :vlax-true)
        (progn
          (vla-put-ShowPlotStyles lout :vlax-false)
          (setvar "lwdisplay" 0)
        )
        (progn
          (vla-put-ShowPlotStyles lout :vlax-true)
          (setvar "lwdisplay" 1)
        )    
      )
      (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acAllViewports)
     (princ)
    )
    Hope this helps some...
    Last edited by .T.; 2008-02-19 at 09:19 PM. Reason: regen all viewports

  4. #4
    I could stop if I wanted to
    Join Date
    2006-06
    Location
    Olympia, Washington, U.S.A.
    Posts
    359
    Login to Give a bone
    0

    Default Re: Quickly Toggle Plot styles help!

    thanks both.. i'll work on them as soon as possible and let you know of the results.

    ~Update~ the plot styles toggle works perfectly. now for the color change. then to add them both to a single lisp routine. thanks for the start on the lisp routine Tim.
    Last edited by Gigliano70; 2008-02-19 at 10:24 PM.

  5. #5
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,658
    Login to Give a bone
    0

    Default Re: Quickly Toggle Plot styles help!

    Several lisp routines out there for changing background and other display colors out there.
    https://jtbworld.com/autocad-backgroundchanger-lsp
    http://cadpanacea.com/wp/?p=242
    https://forums.autodesk.com/t5/visua...e/td-p/2061014

Similar Threads

  1. ability to toggle between different multiline styles
    By Wish List System in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2013-11-06, 03:47 AM
  2. Visual Styles to Plot using Plot Styles
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2013-01-17, 03:57 AM
  3. Layer Plot/No Plot Toggle Button
    By derek.96018 in forum AutoLISP
    Replies: 2
    Last Post: 2008-01-17, 10:10 PM
  4. what triggers plot styles for wall styles, etc.?
    By armitage in forum CAD Standards
    Replies: 4
    Last Post: 2008-01-16, 03:48 PM
  5. Replies: 2
    Last Post: 2006-07-27, 10:30 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
  •