Author Topic: Top 10 MUST HAVE Lisp Routines...  (Read 28979 times)

0 Members and 1 Guest are viewing this topic.

Big G

  • Bull Frog
  • Posts: 415
Top 10 MUST HAVE Lisp Routines...
« on: May 01, 2007, 09:59:33 PM »
Read a thread recently on Top 10 Firefox Extensions, thought this would be a good one.
I thought i seen the light at the end of the tunnel. But it was just someone with a torch bringing me more work.
"You have to accept that somedays youre the pigeon and  somedays youre the statue"

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #1 on: May 01, 2007, 10:49:42 PM »
Dellayer by Me! I wrote this sometime in the last 15% of the last century (long before Bonus/Express tools) and I still use it most every day.

I quit posting it long ago since ET's is more robust, but I still prefer it for it's simplicity.
« Last Edit: May 01, 2007, 10:51:39 PM by Jeff_M »

LE

  • Guest
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #2 on: May 02, 2007, 12:09:00 AM »
In my Top Ten list the one in the top is DP.LSP - (to read the distance between two parallel lines)

It is a very simple and old lisp, from the early days at cadence or in the Harry's Hot Tips... don't remember.

I use it every day, every time... for at least the past 20 years...

CADaver

  • Guest
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #3 on: May 02, 2007, 12:42:48 AM »
DVP.lsp I posted here a couple of years ago that allows quick DVIEW slices of 3D models.

Strucmad

  • Guest
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #4 on: May 02, 2007, 12:48:48 AM »
I'm fairly new to the lisp thing but dlf.lsp Ive found very handy.
- deleting layer filters -  they really blow file sizes out

Didge

  • Bull Frog
  • Posts: 211
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #5 on: May 02, 2007, 04:59:44 AM »
An interesting thread Big G, after careful consideration my top 10 ranked according to time savings would be:

1. MULTI-SECTION - a terrain & pipework longsection generator. Basically I draw a pipe route on a digital map using a polyline, select it and voila, a series of drawings each showing a plan (aligned to the pipe-route) and a corresponding long section beneath. This little baby can generate a dozen A1 drawings within a minute.  :-)

2. MAP CONVERSION - this one automatically reconstructs missing symbology in digital map data imported from a proprietry GIS system. This one doesn't sound very interesting but it saves many hours of tedious manual editting.

3. TERRAIN MODELLING - this is a combination of numerous 3D ground modelling routines such as TIN creation, breaklines, surface drapes & burrying etc.

4. RESAMPLE OBJECT - this routine effectively traces over existing objects using a user-defined number of vertices. I use this to remove excessive polyline vertices and to convert arcs, circles & ellipses to polylines.

5. REVERSE OBJECT - Does what it says on the tin.

6. BATCH LISP PROCESSING - this little app will allow me to run any lisp routine on a whole folder of drawings, including sub-folders if desired.

7. AUTO MATERIAL ASSIGNMENT - this one allows me to select a pre-dined material (concrete, asphalt etc) from a drop-down list box and then apply these by object, layer or by a bounding polyline.

8. DRAW ORDER BY LAYER

9. COPY OBJECTS TO LAYER

10. ANI-MATE - this is a sweet little animation routine, it's been around for a decade now and looks suspiciously similar to the one introduced in Acad2007.  :|

Think Slow......

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #6 on: May 02, 2007, 09:06:06 AM »
A routine I wrote to apply external Layer States to the current drawing or individual xrefs.  Invaluable if you have company layer standards.  I noticed 2008 (2007?) has "double click editing" in the CUI.  I've had that since 2000i!!   
James Buzbee
Windows 8

ronjonp

  • Needs a day job
  • Posts: 7526
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #7 on: May 02, 2007, 09:16:12 AM »
_layfrz.....I'm kinda lost without that one :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #8 on: May 02, 2007, 09:40:34 AM »
ENDIT.LSP
Quote
Features:
Layer filter deletion
Purge unused items (layers, blocks, linetypes, etc.)
Saves drawing

Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

ronjonp

  • Needs a day job
  • Posts: 7526
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #9 on: May 02, 2007, 10:07:34 AM »
ENDIT.LSP
Quote
Features:
Layer filter deletion
Purge unused items (layers, blocks, linetypes, etc.)
Saves drawing



I use that one daily Keith :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #10 on: May 02, 2007, 10:25:53 AM »
I am glad someone besides me gets some use from it ...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #11 on: May 02, 2007, 11:13:13 AM »
My own 'ed'.  Works on attributes and text.  My 'CopyLayers' that I've posted here before.  And my simple 'pua' routine which used the comamnds purge and audit, just so I don't have to answer the prompts.  One I like when I have to use it is the one I wrote that will match an xrefs (with in a file) layers to the original file of the xrefs.
Tim

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

Please think about donating if this post helped you.

LE

  • Guest
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #12 on: May 02, 2007, 11:29:34 AM »
Here are the only autolisp routines names or shortnames I use on a daily basis and in there are included my top 10.
Quote
(mapcar '(lambda (lsp)
(load lsp nil))
(list
"brk"
"df"
"di" #8 distance at command line between two points
"dp" #1 distance at command line between two paralell lines
"ee" #7 quick erase
"era"
"f0"
"fc" #2 fillet by window crossing
"hl"
"go"
"jp"
"k[2]"
"lay"
"le" #3 line from nearpoint to endpoint
"lee"
"lint"
"lm"
"ln"
"lp" #9 line from nearpoint to perppoint
"ls" #4 layer set command line
"m0"
"mp"
"n" #10 osnaps toggle
"i" #5 zoom in
"rc"
"uc" #6 turn off the ucsicon
"xw"
))

terrycadd

  • Guest
Top 10 MUST HAVE Lisp Routines...
« Reply #13 on: May 02, 2007, 11:51:36 AM »
The poll here at work came up with 2 of our favorites.
One for actual work and the other just for fun.

 :kewl:  c:DS - Dimension Styles creates and sets our dimstyles
by just selecting the desired scale.
http://web2.airmail.net/terrycad/LISP/DimStyles.lsp
http://web2.airmail.net/terrycad/LISP/DimStyles.dcl
http://web2.airmail.net/terrycad/LISP/Dcl_Tiles.lsp (also required)
http://web2.airmail.net/terrycad/LISP/GetIcon.lsp (also required)

 :-D  c:AM - AutoCAD Messenger for sending Windows messages back
and forth without going through the company email system.
http://web2.airmail.net/terrycad/LISP/Messenger.lsp
http://web2.airmail.net/terrycad/LISP/Messenger.dcl

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Top 10 MUST HAVE Lisp Routines...
« Reply #14 on: May 02, 2007, 12:46:01 PM »
Well I would have to say:

IL = Isolate Layer(s)
OA = UnIsolates layer(s) Obviously used in cunjuction
Some of the first lisps I wrote in R14 From macros.
EA = Single line attribute edit
XLH = Xline hoizontal on a non-plot layer
XLV = Xline vertical on a non-plot layer

These are the most used (at least once a day).  There are others that I use but these are the mose used
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright © 2016