-
Notifications
You must be signed in to change notification settings - Fork 0
/
dwg_ac1006.ksy
1958 lines (1958 loc) · 43.1 KB
/
dwg_ac1006.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_ac1006
title: AutoCAD r10 drawing (AC1006)
application: AutoCAD
file-extension:
- dwg
xref:
justsolve: DWG
mime:
- application/x-dwg
- image/vnd.dwg
pronom:
fmt: 31
wikidata: Q27863123
license: CC0-1.0
endian: le
seq:
- id: header
type: header
- id: entities
type: real_entities
size: header.entities_end - header.entities_start
- id: blocks
type: block
repeat: expr
repeat-expr: header.table_block.num_items
- id: layers
type: layer
repeat: expr
repeat-expr: header.table_layer.num_items
- id: styles
type: style
repeat: expr
repeat-expr: header.table_style.num_items
- id: linetypes
type: linetype
repeat: expr
repeat-expr: header.table_linetype.num_items
- id: views
type: view
repeat: expr
repeat-expr: header.table_view.num_items
# TODO Je tady nejaka chyba (AC1006/from_autocad_r10/TUTORIAL.DWG)
- id: ucss
type: ucs
repeat: expr
repeat-expr: header.variables.table_ucs.num_items
- id: vports
type: vport
repeat: expr
repeat-expr: header.variables.table_vport.num_items
- id: appids
type: appid
repeat: expr
repeat-expr: header.variables.table_appid.num_items
if: header.num_header_vars == 160
- id: block_entities
type: real_entities
size: header.blocks_size
- 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
# FIXME
- id: u2
type: s1
- id: u3
type: s1
- id: u4
type: s1
- id: u5
type: s1
block_flag:
seq:
- id: flag128
type: b1
- id: referenced
type: b1
- id: xref_resolved
type: b1
- id: xref_dep
type: b1
- id: xref_overlaid
type: b1
- id: is_xref
type: b1
- id: has_attrs
type: b1
- id: anonymous
type: b1
header:
seq:
- id: magic
contents: AC1006
# [0x41, 0x43, 0x31, 0x30, 0x30, 0x36]
doc: 0x0000-0x0005, $ACADVER
- id: zeros
size: 6
- id: zero_one_or_three
type: s1
- id: unknown_3
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: blocks_start
type: s4
- id: blocks_size_raw
type: u4
- id: blocks_end
type: s4
- id: unknown4b
size: 2
- id: unknown4c
size: 2
- id: table_block
type: table
- id: table_layer
type: table
- id: table_style
type: table
- id: table_linetype
type: table
- id: table_view
type: table
- id: variables
type: header_variables
instances:
blocks_size_hi:
value: (blocks_size_raw & 0xff000000) >> 24
blocks_size:
value: (blocks_size_raw & 0x00ffffff)
table:
seq:
- id: size
type: u2
- id: num_items
type: u2
- id: flags
type: u2
- id: start
type: u4
header_variables:
seq:
- id: insertion_base
type: point_3d
doc: 0x005e-0x0075, $INSBASE/10|20|30
- id: plinegen
type: s2
doc: 0x0076-0x0077, $PLINEGEN/70
- 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_mode
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_mode
type: s2
doc: 0x0116-0x0117, $GRIDMODE
- id: grid_unit
type: point_2d
doc: 0x0118-0x0127, $GRIDUNIT/10|20
- id: ortho_mode
type: s2
doc: 0x0128-0x0129, $ORTHOMODE
- id: regen_mode
type: s2
doc: 0x012a-0x012b, $REGENMODE
- id: fill_mode
type: s2
doc: 0x012c-0x012d, $FILLMODE
- id: qtext_mode
type: s2
doc: 0x012e-0x012f, $QTEXTMODE
- id: drag_mode
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: celayer
type: s2
doc: 0x014a-0x014b, $CLAYER
- id: old_cecolor
type: f8
doc: 0x014c-0x0153
- id: unknown6
type: u2
doc: 0x0154-0x0155
- id: psltscale
type: u2
doc: 0x0156-0x0157, $PSLTSCALE/70
- id: unknown7c
size: 2
doc: 0x0158-0x0159
- id: unknown7d
size: 2
doc: 0x015a-0x015b
- id: unknown8
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/70
- 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/40
- 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_mode
enum: osnap_modes
type: s2
doc: 0x0190-0x0191, $OSMODE
- id: att_visibility
enum: att_visibility
type: s2
doc: 0x0192-0x0193, $ATTMODE
- 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
- id: unknown10a
type: u1
doc: 0x01fc,
- id: unknown10b
type: u1
- id: unknown10c
type: u1
- id: unknown10d
type: u1
- id: unknown10e
type: u1
- id: unknown10f
type: u1
- id: unknown10g
type: f8
- id: unknown10h
type: u1
- id: unknown10i
type: u1
- id: unknown10j
type: u1
- id: unknown10k
type: u1
- id: unknown10l
type: u1
- id: unknown10m
type: u1
- id: unknown10n
type: u1
- id: unknown10o
type: u1
- id: unknown10p
type: f8
- id: unknown10q
type: f8
- id: unknown10r
type: u2
- id: unknown10s
type: u2
- id: unknown10t
type: u1
- id: unknown10u
type: u1
- id: unknown10v
type: u1
- id: elevation
type: f8
doc: 0x0229-0x0230, $ELEVATION
- id: thickness
type: f8
doc: 0x0231-0x0238, $THICKNESS
- id: view_point
type: point_3d
doc: 0x0239-0x0251, $VIEWDIR/10|20|30
- id: unknown_repeating
type: unknown_repeating
doc: 0x0252-0x02e0
- id: unknown29
type: s2
doc: 0x02e1-0x02e2
- id: blip
type: s2
doc: 0x02e3-0x02e4, $BLIPMODE
- id: dim_suppression_of_zeros
type: s1
doc: 0x02e5, $DIMZIN
- id: dim_rounding
type: f8
doc: 0x02e6-0x02ed, $DIMRND
- id: dim_extension_line_extend2
type: f8
doc: 0x02ee-0x02f5, $DIMDLE
- id: dim_arrowhead_block
size: 33
type: str
encoding: ASCII
terminator: 0x00
doc: $DIMBLK
- id: circle_zoom_percent
type: s2
doc: 0x0317-0x0318
- id: coordinates
enum: coordinates
type: s2
doc: 0x0319-0x031a, $COORDS
- id: cecolor
enum: cecolor
type: s2
doc: 256d - bylayer, 0d - byblock, other index (1-255), $CECOLOR
- id: current_linetype
type: s2
doc: 256d - bylayer, 255d - byblock, other index, $CELTYPE
- id: create_date_days
type: u4
doc: $TDCREATE/days
- id: create_date_ms
type: u4
doc: $TDCREATE/ms
- id: update_date_days
type: u4
doc: $TDUPDATE/days
- id: update_date_ms
type: u4
doc: $TDUPDATE/ms
- id: total_editing_time_days
type: u4
doc: $TDINDWG/days
- id: total_editing_time_ms
type: u4
doc: $TDINDWG/ms
- id: user_elapsed_timer_days
type: u4
doc: $TDUSRTIMER/days
- id: user_elapsed_timer_ms
type: u4
doc: $TDUSRTIMER/ms
- id: user_timer
type: s2
doc: 0x033f-0x0340, $USRTIMER
- id: fast_zoom
type: u2
doc: 0x0341-0x0342, $FASTZOOM/70
- id: sketch_type
type: u2
doc: 0x0343-0x0344, $SKPOLY
- id: unknown_date
type: unknown_date
- id: angle_base
type: f8
doc: 0x0353-0x035a, $ANGBASE
- id: angle_direction
enum: angle_direction
type: s2
doc: 0x035b-0x035c, $ANGDIR
- id: point_mode
type: s2
doc: 0x035d-0x035e, $PDMODE
- id: point_size
type: f8
doc: $PDSIZE
- id: polyline_width
type: f8
doc: $PLINEWID
- id: user_integer_1
type: s2
doc: 0x035f-0x0360, $USERI1
- id: user_integer_2
type: s2
doc: 0x0361-0x0362, $USERI2
- id: user_integer_3
type: s2
doc: 0x0363-0x0364, $USERI3
- id: user_integer_4
type: s2
doc: 0x0365-0x0366, $USERI4
- id: user_integer_5
type: s2
doc: 0x0367-0x0368, $USERI5
- id: user_real_1
type: f8
doc: $USERR1
- id: user_real_2
type: f8
doc: $USERR2
- id: user_real_3
type: f8
doc: $USERR3
- id: user_real_4
type: f8
doc: $USERR4
- id: user_real_5
type: f8
doc: $USERR5
- id: dim_alternate_units
type: s1
doc: 0x03a1, $DIMALT
- id: dim_alternate_units_decimal_places
type: s1
doc: 0x03a2, $DIMALTD
- id: dim_associative
type: s1
doc: 0x03a3, $DIMASO
- id: dim_sho
type: s1
doc: 0x03a4, $DIMSHO
- id: dim_measurement_postfix
size: 16
type: str
encoding: ASCII
terminator: 0x00
doc: $DIMPOST, TODO And prefix?
- id: dim_alternate_measurement_postfix
size: 16
type: str
encoding: ASCII
terminator: 0x00
doc: $DIMAPOST, TODO And prefix
- id: dim_alternate_units_multiplier
type: f8
doc: 0x03c5-0x03cc, $DIMALTF
- id: dim_linear_measurements_scale_factor
type: f8
doc: 0x03cd-0x03d4, $DIMLFAC
- id: spline_segs
type: s2
doc: 0x03d5-0x03d6, $SPLINESEGS
- id: spline_frame
type: s2
doc: 0x03d7-0x03d8, $SPLFRAME
- id: attreq
type: u2
doc: 0x03d9-0x03da, $ATTREQ
- id: attdia
type: u2
doc: 0x03db-0x03dc, $ATTDIA
- id: chamfera
type: f8
doc: 0x03dd-0x04e4, $CHAMFERA/40
- id: chamferb
type: f8
doc: 0x04e5-0x04ec, $CHAMFERB/40
- id: mirror_text
type: s2
doc: 0x03ed-0x03ee, $MIRRTEXT
- id: table_ucs
type: table
doc: 0x03ef-0x03f9
- id: unknown37
size: 2
- id: ucs_origin_point
type: point_3d
doc: $UCSORG/10|20|30
- id: ucs_x_dir
type: point_3d
doc: $UCSXDIR/11|21|31 ~ $UCSXORI
- id: ucs_y_dir
type: point_3d
doc: $UCSYDIR/12|22|32 ~ $UCSYORI
- id: target
type: point_3d
doc: $TARGET
- id: lens_length
type: f8
doc: $LENSLENGTH
- id: view_rotation_angle_radians
type: f8
doc: $VIEWTWIST
- id: frontz_z
type: f8
doc: $FRONTZ
- id: backz_z
type: f8
doc: $BACKZ
- id: view_mode
type: u2
doc: $VIEWMODE
- id: dim_tofl
type: u1
doc: 0x047d, $DIMTOFL
- id: dim_arrowhead_block1
size: 33
type: str
encoding: ASCII
terminator: 0x00
doc: 0x047e-0x049e, $DIMBLK1
- id: dim_arrowhead_block2
size: 33
type: str
encoding: ASCII
terminator: 0x00
doc: 0x049f-0x04bf, $DIMBLK2
- id: dim_arrowhead_blocks_control
type: u1
doc: 0x04c0, $DIMSAH
- id: dim_text_between_ext_lines
type: u1
doc: 0x04c1, $DIMTIX
- id: dim_arrowhead_suppress
type: u1
doc: 0x04c2, $DIMSOXD
- id: dim_text_vertical_position_size
type: f8
doc: 0x04c3-0x4ca, $DIMTVP
- id: unknown_string
size: 33
type: str
encoding: ASCII
terminator: 0x00
- id: handling
type: u2
doc: 0x04ec-0x04ed, $HANDLING
- id: handseed
type: u8be
doc: 0x04ee-0x04f5, $HANDSEED, in hex
- id: surfu
type: u2
doc: 0x04f6-0x04f7, $SURFU
- id: surfv
type: u2
doc: 0x04f8-0x04f9, $SURFV
- id: surftype
type: u2
doc: 0x04fa-0x94fb, $SURFTYPE
- id: surftab1
type: u2
doc: 0x04fc-0x04fd, $SURFTAB1
- id: surftab2
type: u2
doc: 0x04fe-0x04ff, $SURFTAB2
- id: table_vport
type: table
doc: 0x0500-0x050a
- id: flatland
type: u2
doc: 0x050a-0x050b, $FLATLAND
- id: spline_type
type: u2
enum: spline_type
doc: 0x050c-0x050d, $SPLINETYPE
- id: ucs_icon
type: u2
doc: $UCSICON
- id: unknown47
type: u2
- id: table_appid
type: table
doc: 0x0512-0x051c
if: _parent.num_header_vars == 160
- id: world_view
type: u2
doc: 0x051d-0x051e, $WORLDVIEW/70
if: _parent.num_header_vars == 160
instances:
create_date:
value: create_date_days + (create_date_ms / 86400000.0)
update_date:
value: update_date_days + (update_date_ms / 86400000.0)
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
unknown_date:
seq:
- id: month
type: u2
- id: day
type: u2
- id: year
type: u2
- id: hour
type: u2
- id: minute
type: u2
- id: second
type: u2
- id: ms
type: u2
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::dim': entity_dim
'entities::face3d': entity_face3d
'entities::line': entity_line
'entities::line3d': entity_line3d
'entities::point': entity_point
'entities::polyline': entity_polyline
'entities::polyline2': entity_polyline
'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: entity_handling_flag
type: b1
- id: entity_xref_resolved
type: b1
- id: entity_xref_ref
type: b1
- id: entity_xref_dep
type: b1
- id: entity_thickness_flag
type: b1
- id: entity_elevation_flag
type: b1
- id: entity_linetype_flag
type: b1
- id: entity_color_flag
type: b1
entity_common:
seq:
- id: entity_mode
type: entity_mode
- id: entity_size
type: s2
- id: entity_layer_index
type: s1
- id: flag1
type: s1
- id: opt2_128
type: b1
- id: opt2_64
type: b1
- id: opt2_32
type: b1
- id: opt2_16
type: b1
- id: opt2_8
type: b1
- id: opt2_4
type: b1
- id: opt2_2
type: b1
- id: opt2_1
type: b1
- id: opt3_128
type: b1
- id: opt3_64
type: b1
- id: opt3_32
type: b1
- id: opt3_16
type: b1
- id: opt3_8
type: b1
- id: opt3_4
type: b1
- id: opt3_2
type: b1
- id: opt3_1
type: b1
- id: entity_color
type: s1
if: entity_mode.entity_color_flag
- id: entity_linetype_index
type: s1
if: entity_mode.entity_linetype_flag
- id: entity_thickness
type: f8
if: entity_mode.entity_thickness_flag
- id: handling_size
type: u1
if: entity_mode.entity_handling_flag
- id: handling_id
size: handling_size
if: entity_mode.entity_handling_flag
entity_arc:
seq:
- id: entity_common
type: entity_common
- id: x
type: f8
doc: ARC/10
- id: y
type: f8
doc: ARC/20
- id: z
type: f8
doc: ARC/30
if: entity_common.entity_mode.entity_elevation_flag == true
- id: radius
type: f8
doc: ARC/40
- id: angle_from
type: f8
doc: ARC/50
- id: angle_to
type: f8
doc: ARC/51
- id: extrusion_direction
type: point_3d
if: entity_common.opt2_1
doc: ARC/210|220|230
entity_attdef:
seq:
- id: entity_common
type: entity_common
- id: start_point
type: point_2d
doc: ATTDEF/10|20
- id: height
type: f8
doc: ATTDEF/40
- id: default_size
type: s2
- id: default
size: default_size
type: str
encoding: ASCII
terminator: 0x00
doc: ATTDEF/1
- id: prompt_size
type: s2
- id: prompt
size: prompt_size
type: str
encoding: ASCII
terminator: 0x00
doc: ATTDEF/3
- id: tag_size
type: s2
- id: tag
size: tag_size
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.opt2_2
doc: ATTDEF/50
- id: width_scale_factor
type: f8
if: entity_common.opt2_4
doc: ATTDEF/41
- id: unknown_index
type: u1
if: entity_common.opt2_16
- id: flags2
type: attdef_flags2
if: entity_common.opt2_64
doc: ATTDEF/72
- id: end_point
type: point_2d
if: entity_common.opt2_128
doc: ATTDEF/11|21
entity_attrib:
seq:
- id: entity_common
type: entity_common
- id: u1
type: f8
doc: ATTRIB/10
- id: u2
type: f8
doc: ATTRIB/20
- id: u3
type: f8
doc: ATRRIB/40
- id: size
type: s2
- id: text
size: size
doc: ATRRIB/1
- id: size2
type: s2
- id: text2
size: size2
doc: ATRRIB/2
- id: u4
type: u1
- id: u5
type: f8
if: entity_common.opt2_2
doc: ATRRIB/50
- id: u6
type: u1
if: entity_common.opt2_16
- id: u7
type: u1
if: entity_common.opt2_64
# 1, 2 nebo 7?
- id: aligned_to
type: point_2d
if: entity_common.opt2_128
doc: ATTRIB/11|21
entity_block_begin:
seq:
- id: entity_common
type: entity_common
- id: x
type: f8
- id: y
type: f8
entity_block_end:
seq:
- id: entity_common
type: entity_common
entity_insert:
seq:
- id: entity_common
type: entity_common
- id: block_index
type: s2
doc: INSERT/2
- id: x
type: f8
doc: INSERT/10
- id: y
type: f8
doc: INSERT/20
- id: z