-
Notifications
You must be signed in to change notification settings - Fork 0
/
dwg_ac1_50.ksy
1620 lines (1620 loc) · 36.6 KB
/
dwg_ac1_50.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
meta:
id: dwg_ac1_50
title: AutoCAD drawing (AC1003)
application: AutoCAD
file-extension:
- dwg
xref:
justsolve: DWG
pronom:
fmt: 25
mime:
- application/x-dwg
- image/vnd.dwg
wikidata: Q27863113
license: CC0-1.0
endian: le
seq:
- id: header
type: header
- id: entities
type: real_entities
size: header.entities_end - header.entities_start
- id: table_blocks
type: block
repeat: expr
repeat-expr: header.table_block.items
- id: table_layers
type: layer
repeat: expr
repeat-expr: header.table_layer.items
- id: table_styles
type: style
repeat: expr
repeat-expr: header.table_style.items
- id: table_linetypes
type: linetype
repeat: expr
repeat-expr: header.table_linetype.items
- id: table_views
type: view
repeat: expr
repeat-expr: header.table_view.items
- id: entities_block
type: real_entities
size: header.block_entities_size
- id: entities_extra
type: real_entities
size: header.extra_entities_size
if: header.extra_entities_start > 0
- id: todo
size-eos: true
repeat: eos
if: not _io.eof
types:
block:
seq:
- id: flag
type: block_flag
doc: BLOCK/70
- id: block_name
size: 32
type: str
encoding: ASCII
terminator: 0x00
doc: BLOCK/2
- id: begin_address_in_block_table
type: u4
- id: u1
type: s1
if: _root.header.table_block.item_size > 37
block_flag:
seq:
- id: flag1
type: b1
- id: referenced
type: b1
- id: flag3
type: b1
- id: flag4
type: b1
- id: flag5
type: b1
- id: flag6
type: b1
- id: has_attributes
type: b1
- id: anonymous
type: b1
header:
seq:
- id: magic
size: 12
type: str
encoding: ASCII
terminator: 0x00
doc: 0x0000-0x000b, $ACADVER
- id: zero_one_or_three
type: s1
- id: num_entity_sections
type: s2
- id: num_sections
type: s2
- id: num_header_vars
type: s2
- id: dwg_version
type: s1
- id: entities_start
type: s4
- id: entities_end
type: s4
- id: block_entities_start
type: s4
- id: block_entities_size_raw
type: u4
- id: extra_entities_start
type: s4
- id: extra_entities_size_raw
type: u4
- id: table_block
type: header_table
- id: table_layer
type: header_table
- id: table_style
type: header_table
- id: table_linetype
type: header_table
- id: table_view
type: header_table
- id: variables
type: header_variables
instances:
entities_size:
value: entities_end - entities_start
extra_entities_size_unknown:
value: (extra_entities_size_raw & 0xff000000) >> 24
extra_entities_size:
value: (extra_entities_size_raw & 0x00ffffff)
block_entities_size_unknown:
value: (block_entities_size_raw & 0xff000000) >> 24
block_entities_size:
value: (block_entities_size_raw & 0x00ffffff)
header_table:
seq:
- id: item_size
type: u2
- id: items
type: u2
- id: unknown
size: 2
- id: begin
type: u4
header_variables:
seq:
- id: insertion_base
type: point_3d
doc: 0x005e-0x0075, $INSBASE/10|20|30
- id: num_entities
type: u2
doc: 0x0076-0x0077
- id: drawing_first
type: point_3d
doc: 0x0078-0x008f, $EXTMIN/10|20|30
- id: drawing_second
type: point_3d
doc: 0x0090-0x00a7, $EXTMAX/10|20|30
- id: limits_min
type: point_2d
doc: 0x00a8-0x00b7, $LIMMIN/10|20
- id: limits_max
type: point_2d
doc: 0x00b8-0x00c7, $LIMMAX/10|20
- id: view_ctrl
type: point_3d
doc: 0x00c8-0x00da, $VIEWCTRL/10|20|30
- id: view_size
type: f8
doc: 0x00e0-0x00e7, $VIEWSIZE/40
- id: snap
type: s2
doc: 0x00e8-0x00e9, $SNAPMODE
- id: snap_resolution
type: point_2d
doc: 0x00ea-0x00f9, $SNAPUNIT/10|20
- id: snap_base
type: point_2d
doc: 0x00fa-0x0109, $SNAPBASE/10|20
- id: snap_angle
type: f8
doc: 0x010a-0x0111, $SNAPANG
- id: snap_style
type: s2
doc: 0x0112-0x0113, $SNAPSTYLE
- id: snap_iso_pair
type: s2
enum: iso_plane
doc: 0x0114-0x0115, $SNAPISOPAIR
- id: grid
type: s2
doc: 0x0116-0x0117, $GRIDMODE
- id: grid_unit
type: point_2d
doc: 0x0118-0x0127, $GRIDUNIT/10|20
- id: ortho
type: s2
doc: 0x0128-0x0129, $ORTHOMODE
- id: regen
type: s2
doc: 0x012a-0x012b, $REGENMODE
- id: fill
type: s2
doc: 0x012c-0x012d, $FILLMODE
- id: qtext
type: s2
doc: 0x012e-0x012f, $QTEXTMODE
- id: drag
type: s2
doc: 0x0130-0x0131, $DRAGMODE
- id: linetype_scale
type: f8
doc: 0x0132-0x0139, $LTSCALE
- id: text_size
type: f8
doc: 0x013a-0x0141, $TEXTSIZE
- id: trace_width
type: f8
doc: 0x0142-0x0149, $TRACEWID
- id: current_layer_index
type: s2
doc: 0x014a-0x014b, $CLAYER
- id: current_color_convert_lo
type: s4
doc: 0x014c-0x014f
- id: current_color_convert_hi
type: s4
doc: 0x0150-0x0153
- id: unknown1
type: s2
doc: 0x0154-0x0155
- id: unknown2
type: s2
doc: 0x0156-0x0157
- id: unknown3
type: s2
doc: 0x0158-0x0159
- id: unknown4
type: s2
doc: 0x015a-0x015b
- id: aspect_ratio
type: f8
doc: 0x015c-0x0163
- id: linear_units_format
enum: unit_types
type: s2
doc: 0x0164-0x0165, $LUNITS
- id: linear_units_precision
type: s2
doc: 0x0166-0x0167, $LUPREC
- id: axis
type: s2
doc: 0x0168-0x0169, $AXISMODE
- id: axis_value
type: point_2d
doc: 0x016a-0x0179, $AXISUNIT/10|20
- id: sketch_increment
type: f8
doc: 0x017a-0x0181, $SKETCHINC
- id: fillet_radius
type: f8
doc: $FILLETRAD
- id: units_for_angles
enum: units_for_angles
type: s2
doc: $AUNITS
- id: angular_precision
type: s2
doc: $AUPREC
- id: text_style_index
type: s2
doc: 0x018e-0x018f, $TEXTSTYLE (index)
- id: osnap
enum: osnap_modes
type: s2
doc: 0x0190-0x0191, $OSMODE
- id: attributes
enum: attributes
type: s2
doc: 0x0192-0x0193, $ATTMODE/70
- id: menu
size: 15
type: str
encoding: ASCII
terminator: 0x00
doc: 0x0194-0x01a2, $MENU
- id: dim_scale
type: f8
doc: 0x01a3-0x01aa, $DIMSCALE
- id: dim_arrowhead_size
type: f8
doc: $DIMASZ
- id: dim_extension_line_offset
type: f8
doc: $DIMEXO
- id: dim_baseline_spacing
type: f8
doc: $DIMDLI
- id: dim_extension_line_extend
type: f8
doc: $DIMEXE
- id: dim_maximum_tolerance_limit
type: f8
doc: 0x01cb-0x01d2, $DIMTP
- id: dim_minimum_tolerance_limit
type: f8
doc: 0x01d3-0x01da, $DIMTM
- id: dim_text_height
type: f8
doc: 0x01db-0x01e2, $DIMTXT
- id: dim_center_mark_control
type: f8
doc: 0x01e3-0x01ea, $DIMCEN
- id: dim_oblique_stroke_size
type: f8
doc: 0x01eb-0x01f2, $DIMTSZ
- id: dim_tolerances
type: s1
doc: 0x01f3, $DIMTOL
- id: dim_limits_default_text
type: s1
doc: 0x01f4, $DIMLIM
- id: dim_text_ext_inside_line_position
type: s1
doc: 0x01f5, $DIMTIH
- id: dim_text_ext_outside_line_position
type: s1
doc: 0x01f6, $DIMTOH
- id: dim_extension_line_first_suppress
type: s1
doc: 0x01f7, $DIMSE1
- id: dim_extension_line_second_suppress
type: s1
doc: 0x01f8, $DIMSE2
- id: dim_text_vertical_position
type: s1
doc: 0x01f9, $DIMTAD
- id: limits_check
enum: limits_check
type: s2
doc: 0x01fa-0x01fb, $LIMCHECK
if: _parent.num_header_vars == 83
- id: menu2
size: 45
type: str
encoding: ASCII
terminator: 0x00
if: _parent.num_header_vars == 83
doc: 0x01fc-0x0228, $MENU continues
- id: elevation
type: f8
doc: 0x0229-0x0230, $ELEVATION
if: _parent.num_header_vars == 83
- id: thickness
type: f8
doc: 0x0231-0x0238, $THICKNESS
if: _parent.num_header_vars == 83
- id: view_point
type: point_3d
doc: 0x0239-0x0251, $VIEWDIR/10|20|30
if: _parent.num_header_vars == 83
- id: unknown_repeating
type: unknown_repeating
doc: 0x0252-0x02e0
if: _parent.num_header_vars == 83
- id: unknown29
type: s2
doc: 0x02e1-0x02e2
if: _parent.num_header_vars == 83
- id: blip
type: s2
doc: 0x02e3-0x02e4, $BLIPMODE
if: _parent.num_header_vars == 83
unknown_repeating:
seq:
- id: unknown_repeating1
type: f8
- id: unknown_repeating2
type: f8
- id: unknown_repeating3
type: f8
- id: unknown_repeating4
type: f8
- id: unknown_repeating5
type: f8
- id: unknown_repeating6
type: f8
- id: unknown_repeating7
type: f8
- id: unknown_repeating8
type: f8
- id: unknown_repeating9
type: f8
- id: unknown_repeating10
type: f8
- id: unknown_repeating11
type: f8
- id: unknown_repeating12
type: f8
- id: unknown_repeating13
type: f8
- id: unknown_repeating14
type: f8
- id: unknown_repeating15
type: f8
- id: unknown_repeating16
type: f8
- id: unknown_repeating17
type: f8
- id: unknown_repeating18
type: f8
entity:
seq:
- id: entity_type
type: s1
enum: entities
- id: data
type:
switch-on: entity_type
cases:
'entities::arc': entity_arc
'entities::attdef': entity_attdef
'entities::attrib': entity_attrib
'entities::block_begin': entity_block_begin
'entities::block_end': entity_block_end
'entities::insert' : entity_insert
'entities::circle': entity_circle
'entities::jump': entity_jump
'entities::line': entity_line
'entities::point': entity_point
'entities::polyline': entity_polyline
'entities::repeat_begin': entity_repeat_begin
'entities::repeat_end': entity_repeat_end
'entities::seqend': entity_seqend
'entities::shape': entity_shape
'entities::solid': entity_solid
'entities::text': entity_text
'entities::trace': entity_trace
'entities::vertex': entity_vertex
_: entity_tmp
entity_mode:
seq:
- id: has_attributes
type: b1
- id: entity_mode2
type: b1
- id: entity_mode3
type: b1
- id: entity_mode4
type: b1
- id: has_thickness
type: b1
- id: has_elevation
type: b1
- id: has_linetype
type: b1
- id: has_color
type: b1
entity_common:
seq:
- id: flag2_1
type: b1
- id: flag2_2
type: b1
- id: flag2_3
type: b1
- id: flag2_4
type: b1
- id: flag2_5
type: b1
- id: flag2_6
type: b1
- id: flag2_7
type: b1
- id: flag2_8
type: b1
- id: flag3_1
type: b1
- id: flag3_2
type: b1
- id: flag3_3
type: b1
- id: flag3_4
type: b1
- id: flag3_5
type: b1
- id: flag3_6
type: b1
- id: flag3_7
type: b1
- id: flag3_8
type: b1
entity_arc:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: center_point
type: point_2d
doc: ARC/10|20
- id: radius
type: f8
doc: ARC/40
- id: angle_from
type: f8
doc: ARC/50
- id: angle_to
type: f8
doc: ARC/51
entity_attdef:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: start_point
type: point_2d
doc: ATTDEF/10|20
- id: height
type: f8
doc: ATTDEF/40
- id: len_default
type: s2
- id: default
size: len_default
type: str
encoding: ASCII
terminator: 0x00
doc: ATTDEF/1
- id: len_prompt
type: s2
- id: prompt
size: len_prompt
type: str
encoding: ASCII
terminator: 0x00
doc: ATTDEF/3
- id: len_tag
type: s2
- id: tag
size: len_tag
type: str
encoding: ASCII
terminator: 0x00
doc: ATTDEF/2
- id: flags
type: attdef_flags
doc: ATTDEF/70
- id: rotation_angle_in_radians
type: f8
if: entity_common.flag2_7
doc: ATTDEF/50
- id: width_scale_factor
type: f8
if: entity_common.flag2_6
doc: ATTDEF/41
- id: obliquing_angle_in_radians
type: f8
if: entity_common.flag2_5
doc: ATTDEF/51
- id: text_style_index
type: u1
if: entity_common.flag2_4
doc: ATTDEF/7
- id: generation
type: generation_flags
if: entity_common.flag2_3
doc: ATTDEF/71
- id: horiz_alignment
type: u1
enum: horiz_alignment
if: entity_common.flag2_2
doc: ATTDEF/72
- id: end_point
type: point_2d
if: entity_common.flag2_1
doc: ATTDEF/11|21
attdef_flags:
seq:
- id: flag_1
type: b1
- id: flag_2
type: b1
- id: flag_3
type: b1
- id: flag_4
type: b1
- id: flag_5
type: b1
- id: verify
type: b1
- id: constant
type: b1
- id: invisible
type: b1
entity_attrib:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: point_from
type: point_2d
doc: ATTRIB/10|20
- id: height
type: f8
doc: ATTRIB/40
- id: len_value
type: s2
- id: value
size: len_value
type: str
encoding: ASCII
terminator: 0x00
doc: ATTRIB/1
- id: len_tag
type: s2
- id: tag
size: len_tag
type: str
encoding: ASCII
terminator: 0x00
doc: ATTRIB/2
- id: flags
type: attr_flags
doc: ATTRIB/70
- id: rotation_angle_in_radians
type: f8
if: entity_common.flag2_7
doc: ATTRIB/50
- id: width_scale_factor
type: f8
if: entity_common.flag2_6
doc: ATTRIB/41
- id: obliquing_angle_in_radians
type: f8
if: entity_common.flag2_5
doc: ATTRIB/51
- id: text_style_index
type: u1
if: entity_common.flag2_4
doc: ATTRIB/7
- id: generation
type: generation_flags
if: entity_common.flag2_3
doc: ATTRIB/71
- id: horiz_alignment
type: u1
enum: horiz_alignment
if: entity_common.flag2_2
doc: ATTRIB/72
- id: aligned_to
type: point_2d
if: entity_common.flag2_1
doc: ATTRIB/11|21
attr_flags:
seq:
- id: flag1
type: b1
- id: flag2
type: b1
- id: flag3
type: b1
- id: flag4
type: b1
- id: flag5
type: b1
- id: verify
type: b1
- id: constant
type: b1
- id: invisible
type: b1
entity_block_begin:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: insert_point
type: point_2d
doc: BLOCK/10|20
entity_block_end:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
entity_insert:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: block_index
type: s2
doc: INSERT/2
- id: x
type: f8
doc: INSERT/10
- id: y
type: f8
doc: INSERT/20
- id: x_scale
type: f8
if: entity_common.flag2_8
doc: INSERT/41
- id: y_scale
type: f8
if: entity_common.flag2_7
doc: INSERT/42
- id: rotation_angle_in_radians
type: f8
if: entity_common.flag2_6
doc: INSERT/50
- id: z_scale
type: f8
if: entity_common.flag2_5
doc: INSERT/43
- id: columns
type: u2
if: entity_common.flag2_4
doc: INSERT/70
- id: rows
type: u2
if: entity_common.flag2_3
doc: INSERT/71
- id: column_spacing
type: f8
if: entity_common.flag2_2
doc: INSERT/44
- id: row_spacing
type: f8
if: entity_common.flag2_1
doc: INSERT/45
entity_circle:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: center_point
type: point_2d
doc: CIRCLE/10|20
- id: radius
type: f8
doc: CIRCLE/40
entity_jump:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: address_raw
type: u4
- id: unknown_data
size: entity_size - 8
if: entity_size > 8
instances:
address_flag:
value: (address_raw & 0xff000000) >> 24
address:
value: (address_raw & 0x00ffffff)
entity_line:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: x1
type: f8
doc: LINE/10
- id: y1
type: f8
doc: LINE/20
- id: x2
type: f8
doc: LINE/11
- id: y2
type: f8
doc: LINE/21
entity_tmp:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: xxx
size: entity_size - 4
entity_point:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: x
type: f8
doc: POINT/10
- id: y
type: f8
doc: POINT/20
entity_polyline:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s2
- id: entity_common
type: entity_common
- id: entity_color
type: s1
if: entity_mode.has_color
- id: entity_linetype_index
type: s1
if: entity_mode.has_linetype
- id: entity_elevation
type: f8
if: entity_mode.has_elevation
- id: entity_thickness
type: f8
if: entity_mode.has_thickness
- id: flag
type: polyline_flags
if: entity_common.flag2_8
doc: POLYLINE/70
- id: start_width
type: f8
if: entity_common.flag2_7
doc: POLYLINE/40
- id: end_width
type: f8
if: entity_common.flag2_6
doc: POLYLINE/41
polyline_flags:
seq:
- id: flag1
type: b1
- id: flag2
type: b1
- id: flag3
type: b1
- id: flag4
type: b1
- id: flag5
type: b1
- id: flag6