+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
  1. #1
    Forum Newbie
    Discipline
    Construction
    Using
    AutoCAD 2018
    Join Date
    Jun 2017
    Posts
    9

    Question Auto print to pdf lisp

    Registered forum members do not see this ad.

    Hello everyone.
    I am tired to write my projects to pdf. Can i ask you to write for me lisp which let me do it faster?
    In a layout i have prepared my sheet dimentions with frame (5mm on each side) and got vport inside with my drawing in scale.
    I want to use lisp which:
    1. after command the program ask me about print window
    2. after marking the rectangle (ex. 297x540) the lisp create the new paper format with dimensions (297x540)
    3.the prineter DWG to PDF will be choose
    4. the file name can be ask to wite or autonamed (projectname.dwg and time or number. ex( xxx.dwg 13-06-2017-22;30.pdf or xxx.dwg 1.pdf
    5 the printed pdf will be saved to the dwg location.

    I hope i clearly described my idea. Thanks a lot for everyone reading and helpers

  2. #2
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,306

    Default

    There are numerous examples of code posted here I know I posted my latest version recently so search BIGAL and Plotting. Th version I posted should meet your needs or can be modified to suit your exact requirements.
    A man who never made mistakes never made anything

  3. #3
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Oct 2012
    Posts
    230

    Default

    Fusik
    Attach example your file

  4. #4
    Senior Member
    Computer Details
    hoss's Computer Details
    Operating System:
    Windows 7 - 64 Bit
    Computer:
    Dell Precision T1600
    Using
    MEP 2012
    Join Date
    Jun 2007
    Location
    South Yorkshire, UK
    Posts
    236

    Default

    I don't think you need any lisp
    You need to make sure you have set up your "page Setup" as you want to plot
    Then in "option", on "plot and Publish" tab, tick "Automatic Publish" and you can specify what format you want (DWF or PDF), when to plot ( save or close), where to save.......
    Attached Images
    AutoCAD 2012 & AutoCAD MEP 2011

  5. #5
    Forum Newbie
    Discipline
    Construction
    Using
    AutoCAD 2018
    Join Date
    Jun 2017
    Posts
    9

    Default

    I just want to Print my layout drawings by marking the rectangles and auto print to pdf
    its example of drawing
    the prepared drawing are in layouts
    http://www33.zippyshare.com/v/mMV1hmZB/file.html big file >15MB
    thanks for the interest of subject

  6. #6
    Forum Newbie
    Discipline
    Construction
    Using
    AutoCAD 2018
    Join Date
    Jun 2017
    Posts
    9

    Default

    i got some drawings in a model
    i have prepared in layout1 my papers size rectangle and scaled drawings
    now i want to plot to pdf this all frames by lisp.
    its should works that i only mark the rectangle and lisp auto make new paper size, named the pdf( can be auto projectname+date or ask by lisp to named the pdf) and save in file location

    i hope i write it clearly
    Attached Files

  7. #7
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,306

    Default

    Here is an example two files the plota3dfrange2.lsp is the main one it will auto call the getvals.lsp this is set up for one sheet size.

    Your post is the same as the other post, random sheet sizes, you need some form of rules to automate the process the mview outline would be better as a block with known sheet size preset just create multiple layouts for the desirable sheet size with a title block and copy that layout for each sheet. One mview for each layout.

    Your layout has 7 different sheet sizes.
    Attached Files
    A man who never made mistakes never made anything

  8. #8
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Oct 2012
    Posts
    230

    Default

    I fully agree with BIGAL

    Fusik -
    I asked for an example of a real drawing. And you gave us a lot of rubbish.
    Do you want to torture us?
    Organize your drawings. Create real-size frames. For example A3 = 420x297 and others.

    BIGAL-
    Which team to run the LISP?

  9. #9
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,306

    Default

    maratovich not sure about your question, we have it as a menu item so it loads when required no keyboard shortcut but could do one. You do need "ghostscript" as well to join single pdf's, sorry about that. www.Ghostscript.com
    A man who never made mistakes never made anything

  10. #10
    Forum Newbie
    Discipline
    Construction
    Using
    AutoCAD 2018
    Join Date
    Jun 2017
    Posts
    9

    Default

    Registered forum members do not see this ad.

    @maratovich, @BIGAL very sorry for that, i hoped that examples of frames will be enough. The point is that most of my drawings has extra sizes A3 (297 height) but 560mm of lenght, A2 height (410) but 800mm of lenght.
    The way I print it now it's:
    1. crt+p
    2 choose dwg to pdf
    3 creating paper size
    4 choosing created paper size
    5 marking the print window (paper size)
    6 save to pdf
    and all over again what is frustrating.
    I just wanna lisp which will be printing by marking rectangle ( the paper size frame)
    This is example of my project ( 4-5 drawings in layout) but my real projects has 40-70 drawings and got more then 1 MB
    Thanks for all helps and ideas
    And sorry for a trouble
    Attached Files

Similar Threads

  1. What is Visual Lisp / Auto Lisp ?
    By mailmaverick in forum AutoLISP, Visual LISP & DCL
    Replies: 12
    Last Post: 13th Jun 2013, 12:58 pm
  2. Auto rotate Option in Autocad Print
    By Folio in forum AutoCAD General
    Replies: 7
    Last Post: 4th Apr 2012, 01:54 pm
  3. Auto print plt files on any printer - is it possible?
    By clafrancis in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 12th Nov 2010, 06:08 pm
  4. how can i batch print in AUto CAD 2008-2010 pls
    By afrazawan in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 5th Nov 2010, 07:35 pm
  5. Auto LISP program to print drawings
    By Ham007 in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 26th Feb 2009, 08:31 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts