TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: snownut2 on March 25, 2012, 11:24:57 AM
Title:
shp file not compiling
Post by:
snownut2
on
March 25, 2012, 11:24:57 AM
Does anyone have any ideas on why this shp file will not compile properly, this is the only shape in the file.
Code:
[Select]
*132,5,STONE
13,(3,0,-42),(0,-2,-31),(-3,0,-42),(0,2,-31),(0,0),0
Thanks,
Bruce
Title:
Re: shp file not compiling
Post by:
efernal
on
March 25, 2012, 12:06:11 PM
;;;
; (C) Copyright 2012 Bruce Fillmore.
;;; SA.SHP - shapes for custom linetypes
;;;
*132,5,STONE
13,(3,0,-42),(0,-2,-31),(-3,0,-42),(0,2,-31),(0,0),0
;; put here the
;; end of file
Title:
Re: shp file not compiling
Post by:
efernal
on
March 25, 2012, 12:18:06 PM
Opss, sucess now...
Code - C++:
[Select]
;;;
;
(
C
)
Copyright
2012
Bruce Fillmore.
;;;
SA.
SHP
-
shapes
for
custom linetypes
;;;
*
132
,
16
,STONE
13
,
(
3
,
0
,
-
42
)
,
(
0
,
-
2
,
-
31
)
,
(
-
3
,
0
,
-
42
)
,
(
0
,
2
,
-
31
)
,
(
0
,
0
)
,
0
Title:
Re: shp file not compiling
Post by:
efernal
on
March 25, 2012, 12:19:28 PM
sa.shx
Title:
Re: shp file not compiling
Post by:
snownut2
on
March 25, 2012, 01:11:56 PM
Thank you very much, how did you arrive at the number 16 for the bytes column?
I don't seem to understand that.
I've tried to compile your update and I get the following message "Expected '*n,len,name' shape header"
Thanks,
Bruce
Title:
Re: shp file not compiling
Post by:
efernal
on
March 25, 2012, 01:42:36 PM
13 ,(3, 0, -42),(0, -2, -31),(-3 ,0, -42),(0, 2, - 31),( 0, 0), 0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Title:
Re: shp file not compiling
Post by:
snownut2
on
March 25, 2012, 05:11:30 PM
efernal,
Thank you very much, the acad documentation is not real clear in this area. I was amazed that the shx file gave me results I was looking for.
Bruce