Author Topic: Autolisp file formatting utility  (Read 4817 times)

0 Members and 1 Guest are viewing this topic.

kenkrupa

  • Newt
  • Posts: 84
Autolisp file formatting utility
« on: April 14, 2011, 07:31:05 PM »
I used to have one - a DOS .exe file - that would reformat a .lsp file that was all scrambled up (no indents, etc.) to make it readable. I lost it in a computer change and haven't been able to find it anywhere.  It might have been lispfix.exe, or something like that. Can anyone hook me up with this?

Lee Mac

  • Seagull
  • Posts: 12922
  • London, England
Re: Autolisp file formatting utility
« Reply #1 on: April 14, 2011, 07:49:31 PM »
Why not use the code formatting options in the VLIDE?

kenkrupa

  • Newt
  • Posts: 84
Re: Autolisp file formatting utility
« Reply #2 on: April 14, 2011, 08:06:21 PM »
Why not use the code formatting options in the VLIDE?
Never thought of that since I don't use VLIDE. But I gave it a try. I still like the results my old tool gave me, even after messing with the settings, but this will do well enough (unless someone can still hook me up with that old one).  Thanks Lee.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Autolisp file formatting utility
« Reply #3 on: April 14, 2011, 08:07:58 PM »

20 years old.
Haven't used it for 10 or so

Try this
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Lee Mac

  • Seagull
  • Posts: 12922
  • London, England
Re: Autolisp file formatting utility
« Reply #4 on: April 14, 2011, 08:19:59 PM »
That is an interesting (and quite amusing) read! Its great to see the solutions that are used when VLISP isn't available.

Thanks Kerry :-)

kenkrupa

  • Newt
  • Posts: 84
Re: Autolisp file formatting utility
« Reply #5 on: April 14, 2011, 08:23:45 PM »
I don't know Kerry - this one seems pretty scary to me:
 Usage:  (pprint expression stream)

;;; PPRINT - Prettyprint a LISP expression, indenting according to the
;;; structure of the expression and user modifiable parameters.

Wha?!?!? My old one worked on a file name in a DOS window. Even I could understand that.  

LE3

  • Guest
Re: Autolisp file formatting utility
« Reply #6 on: April 14, 2011, 08:39:27 PM »
I don't know Kerry - this one seems pretty scary to me:
 Usage:  (pprint expression stream)

;;; PPRINT - Prettyprint a LISP expression, indenting according to the
;;; structure of the expression and user modifiable parameters.

Wha?!?!? My old one worked on a file name in a DOS window. Even I could understand that.  
maybe you are talking about LB.EXE (lisp beautifier) ?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Autolisp file formatting utility
« Reply #7 on: April 14, 2011, 08:51:36 PM »

I just tried LB
Won't load/run in x64  :cry:
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

xiaxiang

  • Guest
Re: Autolisp file formatting utility
« Reply #8 on: April 14, 2011, 09:34:48 PM »
Hi
    I found lb.exe and posted it.Even though I don't know the usage of it .
And more info might help you.
http://www.archx.at/archX/AutodeskSdk
http://autocad.xarch.at/lsp_tools/
Just using google to search "lisp beautifier lb.exe".
« Last Edit: April 14, 2011, 10:02:20 PM by xiaxiang »

xiaxiang

  • Guest
Re: Autolisp file formatting utility
« Reply #9 on: April 14, 2011, 09:57:01 PM »
The usage of lb.exe:
~~~~~~~~~~~~~~~~~~~
dos prompt: lb 1.lsp 2.lsp
~~~~~~~~~~~~~~~~~~~

It works well!

kenkrupa

  • Newt
  • Posts: 84
Re: Autolisp file formatting utility
« Reply #10 on: April 15, 2011, 01:24:14 PM »
It works well!

Not in 64 bit. Thanks anyway. I guess VLIDE will serve well enough.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Autolisp file formatting utility
« Reply #11 on: April 15, 2011, 01:29:31 PM »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

xiaxiang

  • Guest
Re: Autolisp file formatting utility
« Reply #12 on: April 17, 2011, 06:54:27 AM »

pBe

  • Bull Frog
  • Posts: 402
Re: Autolisp file formatting utility
« Reply #13 on: April 17, 2011, 07:21:08 AM »