Author Topic: LISP to reload a specific PDF  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
LISP to reload a specific PDF
« on: September 08, 2014, 04:55:57 PM »
To all,
I need help on reloading a specific Overlay PDF using lisp instead of going to the Reference manager and reload thru there.
Here is what I have but  with no success.

(defun C:ix ()   

(command "-xref" "reload" "Signature_Template_E")

(PRINC)

Here is the result at the Autocad prompt

Command: IX
-xref
Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>:
reload
Enter xref name(s) to reload: |Signature_Template_E
No matching xref names found.

Any Help will be appreciate since we have tones of files that need to be do the reload, the issue is that thsi file was Unloaded when we created the Template and now, we need to go and reload for priting purposes.

Thank you...



ChrisCarlson

  • Guest
« Last Edit: September 09, 2014, 04:00:51 PM by ChrisCarlson »

danallen

  • Guest
Re: LISP to reload a specific PDF
« Reply #2 on: September 09, 2014, 03:44:03 PM »
I have bricscad, not acad, and in brics there is a PDF command separate from xrefs, but it is dialog based not command line. So I assume acad is similar in needing a separate PDF command. Looks there is -PDFATTACH command. Perhaps you could attach the PDF you want reloaded, then erase new copy. The existing may get reloaded as you desire.