33 #include "dl_global.h" 37 #endif // _MSC_VER > 1000 39 #if defined(__OS2__)||defined(__EMX__) 40 #define strcasecmp(s,t) stricmp(s,t) 44 #define strcasecmp(s,t) _stricmp(s,t) 50 #define M_PI 3.14159265358979323846 51 #pragma warning(disable : 4800) 55 #define M_PI 3.1415926535897932384626433832795 58 #define DL_DXF_MAXLINE 1024 59 #define DL_DXF_MAXGROUPCODE 1100 109 const double dxfColors[][3] = {
371 #define DL_VERSION_R12 DL_Codes::AC1009 372 #define DL_VERSION_LT2 DL_Codes::AC1009 373 #define DL_VERSION_R13 DL_Codes::AC1012 // not supported yet 374 #define DL_VERSION_LT95 DL_Codes::AC1012 // not supported yet 375 #define DL_VERSION_R14 DL_Codes::AC1014 // not supported yet 376 #define DL_VERSION_LT97 DL_Codes::AC1014 // not supported yet 377 #define DL_VERSION_LT98 DL_Codes::AC1014 // not supported yet 378 #define DL_VERSION_2000 DL_Codes::AC1015 379 #define DL_VERSION_2002 DL_Codes::AC1015 385 #define DL_STRGRP_START 0 386 #define DL_STRGRP_END 9 389 #define DL_CRDGRP_START 10 390 #define DL_CRDGRP_END 19 393 #define DL_RLGRP_START 38 394 #define DL_RLGRP_END 59 397 #define DL_SHOGRP_START 60 398 #define DL_SHOGRP_END 79 401 #define DL_SUBCLASS 100 404 #define DL_CRD2GRP_START 210 405 #define DL_CRD2GRP_END 239 408 #define DL_ESTRGRP_START 1000 409 #define DL_ESTRGRP_END 1009 412 #define DL_ERLGRP_START 1010 413 #define DL_ERLGRP_END 1059 416 #define DL_Y8_COORD_CODE 28 417 #define DL_Z0_COORD_CODE 30 418 #define DL_Z8_COORD_CODE 38 420 #define DL_POINT_COORD_CODE 10 421 #define DL_INSERT_COORD_CODE 10 423 #define DL_CRD2GRP_START 210 424 #define DL_CRD2GRP_END 239 426 #define DL_THICKNESS 39 427 #define DL_FIRST_REAL_CODE THICKNESS 428 #define DL_LAST_REAL_CODE 59 429 #define DL_FIRST_INT_CODE 60 430 #define DL_ATTFLAGS_CODE 70 431 #define DL_PLINE_FLAGS_CODE 70 432 #define DL_LAYER_FLAGS_CODE 70 433 #define DL_FLD_LEN_CODE 73 // Inside ATTRIB resbuf 434 #define DL_LAST_INT_CODE 79 435 #define DL_X_EXTRU_CODE 210 436 #define DL_Y_EXTRU_CODE 220 437 #define DL_Z_EXTRU_CODE 230 438 #define DL_COMMENT_CODE 999 441 #define DL_LINE_START_CODE 10 // Followed by x coord 442 #define DL_LINE_END_CODE 11 // Followed by x coord 445 #define DL_BLOCK_FLAGS_CODE 70 // An int containing flags 446 #define DL_BLOCK_BASE_CODE 10 // Origin of block definition 447 #define DL_XREF_DEPENDENT 16 // If a block contains an XREF 448 #define DL_XREF_RESOLVED 32 // If a XREF resolved ok 449 #define DL_REFERENCED 64 // If a block is ref'd in DWG 451 #define DL_XSCALE_CODE 41 452 #define DL_YSCALE_CODE 42 453 #define DL_ANGLE_CODE 50 454 #define DL_INS_POINT_CODE 10 // Followed by x of ins pnt 455 #define DL_NAME2_CODE 3 // Second appearance of name 458 #define DL_CENTER_CODE 10 // Followed by x of center 459 #define DL_RADIUS_CODE 40 // Followd by radius of circle 461 #define DL_COND_OP_CODE -4 // Conditional op,ads_ssget 464 #define DL_ENTITY_TYPE_CODE 0 // Then there is LINE, 3DFACE.. 465 #define DL_SES_CODE 0 // Start End String Code 466 #define DL_FILE_SEP_CODE 0 // File separator 467 #define DL_SOT_CODE 0 // Start Of Table 468 #define DL_TEXTVAL_CODE 1 469 #define DL_NAME_CODE 2 470 #define DL_BLOCK_NAME_CODE 2 471 #define DL_SECTION_NAME_CODE 2 472 #define DL_ENT_HAND_CODE 5 // What follows is hexa string 473 #define DL_TXT_STYLE_CODE 7 // Inside attributes 474 #define DL_LAYER_NAME_CODE 8 // What follows is layer name 475 #define DL_FIRST_XCOORD_CODE 10 // Group code x of 1st coord 476 #define DL_FIRST_YCOORD_CODE 20 // Group code y of 1st coord 477 #define DL_FIRST_ZCOORD_CODE 30 // Group code z of 1st coord 478 #define DL_L_START_CODE 10 479 #define DL_L_END_CODE 11 480 #define DL_TXTHI_CODE 40 481 #define DL_SCALE_X_CODE 41 482 #define DL_SCALE_Y_CODE 42 483 #define DL_SCALE_Z_CODE 43 484 #define DL_BULGE_CODE 42 // Used in PLINE verts for arcs 485 #define DL_ROTATION_CODE 50 486 #define DL_COLOUR_CODE 62 // What follows is a color int 487 #define DL_LTYPE_CODE 6 // What follows is a linetype 491 #define DL_ATTS_FOLLOW_CODE 66 492 #define DL_ATT_TAG_CODE 2 493 #define DL_ATT_VAL_CODE 1 494 #define DL_ATT_FLAGS_CODE 70 // 4 1 bit flags as follows... 495 #define DL_ATT_INVIS_FLAG 1 496 #define DL_ATT_CONST_FLAG 2 497 #define DL_ATT_VERIFY_FLAG 4 // Prompt and verify 498 #define DL_ATT_PRESET_FLAG 8 // No prompt and no verify 502 #define DL_OPEN_PLINE 0x00 503 #define DL_CLOSED_PLINE 0x01 504 #define DL_POLYLINE3D 0x80 505 #define DL_PFACE_MESH 0x40 506 #define DL_PGON_MESH 0x10 508 #define DL_VERTS_FOLLOW_CODE 66 // Value should always be 1 509 #define DL_VERTEX_COORD_CODE 10 514 #define DL_FROZEN_BY_DEF 2 516 #define DL_OBJECT_USED 64 // Object is ref'd in the dwg 518 #define DL_BLOCK_EN_CODE -2 // Block entity definition 519 #define DL_E_NAME -1 // Entity name 522 #define DL_EXTD_SENTINEL (-3) 523 #define DL_EXTD_STR 1000 524 #define DL_EXTD_APP_NAME 1001 525 #define DL_EXTD_CTL_STR 1002 526 #define DL_EXTD_LYR_STR 1003 527 #define DL_EXTD_CHUNK 1004 528 #define DL_EXTD_HANDLE 1005 529 #define DL_EXTD_POINT 1010 530 #define DL_EXTD_POS 1011 531 #define DL_EXTD_DISP 1012 532 #define DL_EXTD_DIR 1013 533 #define DL_EXTD_FLOAT 1040 534 #define DL_EXTD_DIST 1041 535 #define DL_EXTD_SCALE 1042 536 #define DL_EXTD_INT16 1070 537 #define DL_EXTD_INT32 1071 540 #define DL_WCS_TRANS_CODE 0 541 #define DL_UCS_TRANS_CODE 1 542 #define DL_DCS_TRANS_CODE 2 543 #define DL_PCS_TRANS_CODE 3 version
Version numbers for the DXF Format.
Definition: dl_codes.h:96
color
Standard DXF colors.
Definition: dl_codes.h:72
Codes for colors and DXF versions.
Definition: dl_codes.h:67