Author Topic: write-line / read-line ???  (Read 1475 times)

0 Members and 1 Guest are viewing this topic.

au-s

  • Guest
write-line / read-line ???
« on: June 11, 2009, 06:35:16 AM »
Hi guys...

I've got help from LeeMac on CadTutor with a lisp that changes attributes in a block.
I have a batchlisp from Afra lisp that executes the lisp and command in that lisp on chosen drawings.

To change attributes the lisp uses attedit.

Problem accours when I run the batch-lisp. It opens each drawing and everytime it opens a drawing ATTEDIT runs to change attributes.
How can I make a good scriptfile or batch-lisp file which only executes the ATTRIB command once and applies that on all drawings selected?

I think you need to maybe write a textfile and then store a attribute list there and then have a lisp that reads- all lines that stores attributes values and put those in chosen drawings and keeps those unchanged values unchanged.


Can anyone help me with that matter?

best regards ad thanx in advance...

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: write-line / read-line ???
« Reply #1 on: June 11, 2009, 08:43:20 AM »
Au-S, you specifically asked me to put the ATTEDIT in there...  :?

au-s

  • Guest
Re: write-line / read-line ???
« Reply #2 on: June 11, 2009, 09:13:53 AM »
I know LeeMac .. :)
I wanted it to be that way on that specific lisp. It's okej.
 It works fine and its great lisp but I get problem when batch-running thje lisp.
 
But take a look at discussion made on other forum not to mix up the thread.
:)