Author Topic: shp file not compiling  (Read 1906 times)

0 Members and 1 Guest are viewing this topic.

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
shp file not compiling
« 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


efernal

  • Bull Frog
  • Posts: 206
Re: shp file not compiling
« Reply #1 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
e.fernal

efernal

  • Bull Frog
  • Posts: 206
Re: shp file not compiling
« Reply #2 on: March 25, 2012, 12:18:06 PM »
Opss, sucess now...
Code - C++: [Select]
  1. ;;;
  2. ; (C) Copyright 2012 Bruce Fillmore.
  3. ;;;  SA.SHP - shapes for custom linetypes
  4. ;;;
  5. *132,16,STONE
  6. 13,(3,0,-42),(0,-2,-31),(-3,0,-42),(0,2,-31),(0,0),0
  7.  
  8.  
e.fernal

efernal

  • Bull Frog
  • Posts: 206
Re: shp file not compiling
« Reply #3 on: March 25, 2012, 12:19:28 PM »
sa.shx
e.fernal

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: shp file not compiling
« Reply #4 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
« Last Edit: March 25, 2012, 01:19:16 PM by snownut2 »

efernal

  • Bull Frog
  • Posts: 206
Re: shp file not compiling
« Reply #5 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

e.fernal

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: shp file not compiling
« Reply #6 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