See the top rated post in this thread. Click here

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

Thread: Automatic publish lisp needed

  1. #1
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Automatic publish lisp needed

    Hello everyone,

    I'm looking for a lisp that will run the save and automatic publish to a PDF file only will I type in the command 'APS'.

    Thanks,

    Caddl4a

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Why not just use the Autopublish mechanism?
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  3. #3
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Why not just use the Autopublish mechanism?
    Sorry, what is the Autopublish mechanism? If you mean the autopublish setting under the plot and publish tab in the option setting, I don't want this to happen each time. Just on select files when needed.

    Thanks,

    Cadd4la

  4. #4
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    You and share the same mindset with regard to Autopublish - which is why I developed this, in order to allow me to specify which drawings or directories were 'allowed', and anything that didn't match would be 'vetoed'.

    In any event, sounds like you'd be able to get away with a simple macro (or LISP) that employs SAVE and EXPORTPDF Commands.

    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  5. #5
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    For want I can tell from the description of your program it's not going to meet my needs. I want to have the able to save to a pdf only for example, 1 out of 3 times, not every time that one file is saved.

    Thanks,

  6. #6
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Did you consider the latter part of my post, unrelated to the app?



    Besides, I do not use Autopublish for everything either, and simply toggle it on/off as needed; the app simply makes it easier to work with when enabled.

    http://forums.augi.com/showthread.ph...=1#post1294398

    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  7. #7
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Thanks, for the code.

    Now, I got to figure out how to have your code run, then do a save and then run your code again to turn off Autopublish.

  8. #8
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    560
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed


  9. #9
    I could stop if I wanted to cadd4la's Avatar
    Join Date
    2001-12
    Location
    Newport Beach, CA
    Posts
    399
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Thanks,

    I will look into the link.

  10. #10
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Automatic publish lisp needed

    Quote Originally Posted by cadd4la View Post
    Now, I got to figure out how to have your code run, then do a save and then run your code again to turn off Autopublish.
    Code:
    (defun c:SavePlot (/ *error* automaticpub)
    
      (defun *error* (msg)
        (if automaticpub
          (setvar 'automaticpub automaticpub)
        )
        (cond ((not msg))                                                   ; Normal exit
              ((member msg '("Function cancelled" "quit / exit abort")))    ; <esc> or (quit)
              ((princ (strcat "\n** Error: " msg " ** ")))                  ; Fatal error, display it
        )
        (princ)
      )
    
      (if
        (and
          (setq automaticpub (getvar 'automaticpub))
          (setvar 'automaticpub 1)
        )
         (command "._qsave")
      )
    
      (*error* nil)
    )
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Page 1 of 2 12 LastLast

Similar Threads

  1. Help needed with Lisp
    By Tharwat in forum AutoLISP
    Replies: 28
    Last Post: 2010-07-17, 12:30 AM
  2. Replies: 12
    Last Post: 2010-01-08, 07:49 PM
  3. Automatic Publish
    By robert.1.hall72202 in forum AutoLISP
    Replies: 25
    Last Post: 2008-03-14, 02:00 PM
  4. Automatic hyperlink through lisp?
    By Mr Cory in forum AutoLISP
    Replies: 12
    Last Post: 2007-03-22, 10:41 PM

Tags for this Thread

Posting Permissions

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