set plot area to layout in page setup

Discussion in 'AutoCAD' started by redstepdrafter, Aug 3, 2004.

  1. does anyone know of a way to set the plot area in the page setup to layout through lisp or vb
     
    redstepdrafter, Aug 3, 2004
    #1
  2. redstepdrafter

    dblaha Guest

    A "quick and dirty" way to do it with lisp is to go through the PLOT function with a COMMAND:

    (command "plot" "y" ""...

    Be sure to enter "Layout" for the "Enter plot area" prompt, a "y" for the "Save changes to layout" prompt and "n" for the "Proceed with plot" prompt.
     
    dblaha, Aug 3, 2004
    #2
  3. This snip of code will change the active layout's, page setup, plot area to
    extents.
    (setq Active_Layout (vlax-get-property (vlax-get-property
    (vlax-get-acad-object) 'ActiveDocument) 'ActiveLayout))
    (if Active_Layout (vlax-put-property Active_Layout 'PlotType 1))

    news:...
     
    Alan Henderson @ A'cad Solutions, Aug 3, 2004
    #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.