Author Topic: Update Datalink in a bunch of drawings automatically  (Read 2931 times)

0 Members and 1 Guest are viewing this topic.

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
Update Datalink in a bunch of drawings automatically
« on: April 10, 2015, 11:59:18 AM »
Hi people,
Is there a way to Update Datalink on a bunch of drawings (Directory Perhaps) using lisp routine?
The current routine only update individual drawings and users must open every drawing.
 
(DEFUN C:DU   ()

(Command "_DATALINKUPDATE" "_U" "_K")
  (prompt "\All Data Link Updated.")
  (princ)
)

Any help will be very much appreciate it…

Thank you…

ChrisCarlson

  • Guest
Re: Update Datalink in a bunch of drawings automatically
« Reply #1 on: April 10, 2015, 12:12:06 PM »
http://www.lee-mac.com/scriptwriter.html

Shouldn't need a lisp routine dedicated to that

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
Re: Update Datalink in a bunch of drawings automatically
« Reply #2 on: April 10, 2015, 12:26:11 PM »
Hi Chris,
Thank you for the reply, however, do you mind telling me how does the scrip line will look for this update
to be executed?
_.open *file* _updatedatalink *file* _U *file* _K _.close

thank you

ChrisCarlson

  • Guest
Re: Update Datalink in a bunch of drawings automatically
« Reply #3 on: April 10, 2015, 02:03:24 PM »
Hi Chris,
Thank you for the reply, however, do you mind telling me how does the scrip line will look for this update
to be executed?
_.open *file* _updatedatalink *file* _U *file* _K _.close

thank you

I would say try this

_.open *file* _updatedatalink _u _k _.save _Y _.close


Open Drawing - Initiate UDL -update -not sure what K does- save - yes overwrite - close

Marco Jacinto

  • Newt
  • Posts: 47
Re: Update Datalink in a bunch of drawings automatically
« Reply #4 on: April 10, 2015, 03:25:27 PM »
I think Lee show how to run a Lisp across multiple drawings, you only need to use Publish, but before running the comand you should add the lisp to run on the startup Suite of the Appload command. This file must contain a qsave command, because Publish doen't save the drawing by it self

My 2 mexican pesos

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
Re: Update Datalink in a bunch of drawings automatically
« Reply #5 on: April 10, 2015, 03:28:58 PM »
Thank you Chris...

Much appreciate it...

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
Re: Update Datalink in a bunch of drawings automatically
« Reply #6 on: April 22, 2015, 01:28:53 PM »
Magical little program,
I recommended it, it is  life saving procedure...

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Update Datalink in a bunch of drawings automatically
« Reply #7 on: April 22, 2015, 05:03:50 PM »
Thanks!  :-)

diego65

  • Newt
  • Posts: 51
  • Learning LISP is a cool thing
Re: Update Datalink in a bunch of drawings automatically
« Reply #8 on: May 05, 2015, 10:46:13 AM »
Do you guys know if I can used Lee Mac Routine WSCRIPT to turn a layer on and off from and xref?

This is what I have so far:

_.open *file* -layer off *|Layer_Name _.qsave _.close

Thank you...