Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
Captain Awesome
Mega Poster
Join Date: Jan 2007
Location: Hamble
Posts: 4,266
|
![]()
Anyone out there know anything about LISP? specifically autolisp. this little routine i wrote:
Code:
(defun C:implay () (if (setq file (open "H:/AutoCAD Tools/Linetypes/layers.txt" "r")) (progn (while (read-line file) (setq linestring (read-line file) layername (substr linestring 1 30) layercolour (atoi (substr linestring 31 10)) layerlinetype (substr linestring 41 20) layerlineweight (substr linestring 61 10) ) ;setq (command "-layer" "M" layername "L" layerlinetype "" "LW" layerlineweight "" "C" layercolour "" "") ) ;while ) ;progn (princ "\n Error - File not found!") ) ;if (princ) ) ;defun Code:
EAVES 210 LOCAL_GOVERNMENT 0.13 G528_M_CASTINGS 7 Continuous 0.18 G910_M_SITE_INFO 7 Continuous 0.18 G917_M_EXIST_BLDG 174 Continuous 0.35 G923_M_SPOT_HEIGHT 7 Continuous 0.18 G930_M_LAND_DRAINAGE 10 COUNTY_BOUNDARY_2 0.18 G936_M_VALVES 7 Continuous 0.18 G941_M_TREE_EXIST 90 Continuous 0.18 G950_M_ROADS_CHANGESURFACE 25 Continuous 0.25 G950_M_ROADS_PAVING 7 EASEMENT_2 0.25 G952_M_KERBS 170 Continuous 0.25 G952_M_KERBS_DROP 170 DOT_2_0MM 0.25 G967_M_COMMS 7 Continuous 0.18 G970_M_HARDSCAPE 7 Continuous 0.18 G971_M_FENCING 75 FENCE 0.25 G978_M_LIGHTING 7 Continuous 0.18 G995_M_VEGETATION 84 HEDGE_1 0.25 ROADMARKINGS-CENTRELINE 7 04 0.25 ROADMARKINGS-GENERIC 7 Continuous 0.18 TEXT 7 Continuous 0.20 Z030_M_GRIDS 7 Continuous 0.20 Code:
; error: bad argument type: stringp nil i even tried adding a caveat to the script to change the layername Code:
"TEXT " Code:
(if (= layername "TEXT ") (setq layername (substr layername 1 4))) ;if any ideas? nerd/geek jokes on the back of an x-men comic please ![]()
__________________
Official "Dumbass of the Year" 2011 (•_•) ( •_•)>⌐■-■ (⌐■_■) Deal with it... |
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
![]()
i had a lisp when i had my tounge pierced, i have taken it out now though (the piercing not my tounge)
|
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
![]() |
![]() |
![]() |
#4 |
Guest
Posts: n/a
|
![]()
Don't encourage him please
![]() |
![]() |
![]() |
#5 |
Captain Awesome
Mega Poster
Join Date: Jan 2007
Location: Hamble
Posts: 4,266
|
![]()
hovis, more surprising than the fact that you posted the first reply was the quality of it
![]() made me smile but seriously, anyone here use LISP, or is it like asking if anyone knows a bit of aramaic?
__________________
Official "Dumbass of the Year" 2011 (•_•) ( •_•)>⌐■-■ (⌐■_■) Deal with it... |
![]() |
![]() |
![]() |
#6 | |
Guest
Posts: n/a
|
![]() Quote:
At least I knew what LISP was ... WTF is aramaic?!? LOL |
|
![]() |
![]() |
#7 |
Captain Awesome
Mega Poster
Join Date: Jan 2007
Location: Hamble
Posts: 4,266
|
![]()
a little known programming language used by jesus:
![]()
__________________
Official "Dumbass of the Year" 2011 (•_•) ( •_•)>⌐■-■ (⌐■_■) Deal with it... |
![]() |
![]() |
![]() |
#8 |
Guest
Posts: n/a
|
![]()
So Jesus wasn't a carpenter then ... more of a "hacker"
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Stupid stupid stupid snow and ice!!! | Giggsy | Idle Banter | 6 | 14-12-08 03:38 PM |
Nearly lost it!! | Jester666 | Photos | 13 | 02-07-08 01:57 PM |
Have I lost all of my NCB? | SVeeedy Gonzales | Bikes - Talk & Issues | 15 | 08-06-06 04:44 PM |
Lost key | MattTheLoony | SV Talk, Tuning & Tweaking | 15 | 13-03-05 01:47 PM |