Author Topic: Lisp headers  (Read 2896 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
Lisp headers
« on: March 31, 2005, 04:39:10 AM »
Is there a standard header for a lisp routine.

I'm writing a few and was wondering what I should put at the top.

at the moment I put this.

Code: [Select]
;;;
;;;Autolisp routine to do something
;;;
;;;enter COMMAND NAME HERE to run
;;;
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Lisp headers
« Reply #1 on: March 31, 2005, 06:07:21 AM »
The only thing that I've seen as far as a standard goes is _this_. I would use what ever makes sense to you, after all you are the one that has to decipher what it all means and the best way to find the info within the files.
TheSwamp.org  (serving the CAD community since 2003)

SPDCad

  • Bull Frog
  • Posts: 453
Lisp headers
« Reply #2 on: March 31, 2005, 10:19:53 AM »
I always use something like the following, but like Mark's says its really up to you to document your work.  After all it is usually you who will be modifying the code at a later date and it good to know what you did the first time around.

;============================AlphaCNT.lsp =======================
;  By: SPD                                                                      Date: 9 OCT 2002  
;  Purpose: To convert a number into its equalvalent a alpha-numerical value.  
;  Sub_Programmes: -None                                                      
;  Requirements: -Num = Alpha number to convert (ie. 10)                      
;                        -PAR = Small or Capital output. (ie. 1 gives J)              
;  Returns: -the converted number                                                              
;====================================================================
AutoCAD 2010, w/ OpenDCL

visit: http://reachme.at/spd_designs

hudster

  • Gator
  • Posts: 2848
Lisp headers
« Reply #3 on: March 31, 2005, 11:02:46 AM »
Thanks for the info.

What I was doing was just putting a title and date on it.

I'm using this now.
Code: [Select]
;;;
;;; TITLE:
;;;
;;; Copyright (C) 2005 by Andy Hudson
;;;
;;; Permission to use, copy, modify, and distribute this
;;; software and its documentation for any purpose and without
;;; fee is hereby granted
;;;
;;; THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR
;;; IMPLIED WARRANTY. ALL IMPLIED WARRANTIES OF FITNESS FOR ANY
;;; PARTICULAR PURPOSE AND OF MERCHANTABILITY ARE HEREBY
;;; DISCLAIMED.
;;;
;;; Andy Hudson
;;; April 2005
;;;
;;;-------------------------------------------------------------
;;; Description:
;;;
;;;
;;;
;;;
;;;
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Lisp headers
« Reply #4 on: March 31, 2005, 11:07:03 AM »
Hudster, that is pretty close to what I use, except I typically include my full contact information in the header so there will be no question about who it belongs to or how to contact me.
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

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Lisp headers
« Reply #5 on: March 31, 2005, 12:00:31 PM »
Quote

I keep six honest serving-men
      (They taught me all I knew);
Their names are What and Why and When
And How and Where and Who.

(RudyardKipling, from "The Elephant's Child" in Just So Stories).


It's surprising what how much this applies to.

kwb
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.

CADaver

  • Guest
Lisp headers
« Reply #6 on: March 31, 2005, 12:50:31 PM »
More completely ...
Quote

I keep six honest serving-men
(They taught me all I knew);
Their names are What and Why and When
And How and Where and Who.
I send them over land and sea,
I send them east and west;
But after they have worked for me,
I give them all a rest.

I let them rest from nine till five,
For I am busy then,

As well as breakfast, lunch, and tea,
For they are hungry men;
But different folk have different views:
I know a person small -
She keeps ten million serving-men,
Who get no rest at all!
She sends 'em abroad on her own affairs.
From the second she opens her eyes -
One million Hows, two million Wheres,
And seven million Whys!

The Elephant's Child.


VERY complete

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Lisp headers
« Reply #7 on: March 31, 2005, 01:00:41 PM »
CADaver .. is that posting covered in the fair use clause of copyright law? :shock:
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

CADaver

  • Guest
Lisp headers
« Reply #8 on: March 31, 2005, 01:21:10 PM »
Quote from: Keith
CADaver .. is that posting covered in the fair use clause of copyright law? :shock:
According to my Literary Encyclopedia, the work is public domain.

EDITED

Read that as Public Domain "in the USA, other countries may vary".

EDITED #2

HERES's another, this one from Australia