reflinks.py 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # Autodesk DXF 2018 Reference
  2. link_tpl = 'http://help.autodesk.com/view/OARX/2018/ENU/?guid={guid}'
  3. # Autodesk DXF 2014 Reference
  4. # link_tpl = 'http://docs.autodesk.com/ACD/2014/ENU/files/{guid}.htm'
  5. main_index_guid = 'GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3' # main index
  6. reference_guids = {
  7. "HEADER": "GUID-EA9CDD11-19D1-4EBC-9F56-979ACF679E3C",
  8. "CLASSES": "GUID-6160F1F1-2805-4C69-8077-CA1AEB6B1005",
  9. "TABLES": "GUID-A9FD9590-C97B-4E41-9F26-BD82C34A4F9F",
  10. "BLOCKS": "GUID-1D14A213-5E4D-4EA6-A6B5-8709EB925D01",
  11. "ENTITIES": "GUID-7D07C886-FD1D-4A0C-A7AB-B4D21F18E484",
  12. "OBJECTS": "GUID-2D71EE99-A6BE-4060-9B43-808CF1E201C6",
  13. "THUMBNAILIMAGE": "GUID-792F79DC-0D5D-43B5-AB0E-212E0EDF6BAE",
  14. "APPIDS": "GUID-6E3140E9-E560-4C77-904E-480382F0553E",
  15. "BLOCK_RECORDS": "GUID-A1FD1934-7EF5-4D35-A4B0-F8AE54A9A20A",
  16. "DIMSTYLES": "GUID-F2FAD36F-0CE3-4943-9DAD-A9BCD2AE81DA",
  17. "LAYERS": "GUID-D94802B0-8BE8-4AC9-8054-17197688AFDB",
  18. "LINETYPES": "GUID-F57A316C-94A2-416C-8280-191E34B182AC",
  19. "STYLES": "GUID-EF68AF7C-13EF-45A1-8175-ED6CE66C8FC9",
  20. "UCS": "GUID-1906E8A7-3393-4BF9-BD27-F9AE4352FB8B",
  21. "VIEWS": "GUID-CF3094AB-ECA9-43C1-8075-7791AC84F97C",
  22. "VIEWPORTS": "GUID-8CE7CC87-27BD-4490-89DA-C21F516415A9",
  23. "BLOCK": "GUID-66D32572-005A-4E23-8B8B-8726E8C14302",
  24. "ENDBLK": "GUID-27F7CC8A-E340-4C7F-A77F-5AF139AD502D",
  25. "3DFACE": "GUID-747865D5-51F0-45F2-BEFE-9572DBC5B151",
  26. "3DSOLID": "GUID-19AB1C40-0BE0-4F32-BCAB-04B37044A0D3",
  27. "ACAD_PROXY_ENTITY": "GUID-89A690F9-E859-4D57-89EA-750F3FB76C6B",
  28. "ARC": "GUID-0B14D8F1-0EBA-44BF-9108-57D8CE614BC8",
  29. "ATTDEF": "GUID-F0EA099B-6F88-4BCC-BEC7-247BA64838A4",
  30. "ATTRIB": "GUID-7DD8B495-C3F8-48CD-A766-14F9D7D0DD9B",
  31. "BODY": "GUID-7FB91514-56FF-4487-850E-CF1047999E77",
  32. "CIRCLE": "GUID-8663262B-222C-414D-B133-4A8506A27C18",
  33. "DIMENSION": "GUID-239A1BDD-7459-4BB9-8DD7-08EC79BF1EB0",
  34. "ELLIPSE": "GUID-107CB04F-AD4D-4D2F-8EC9-AC90888063AB",
  35. "HATCH": "GUID-C6C71CED-CE0F-4184-82A5-07AD6241F15B",
  36. "HELIX": "GUID-76DB3ABF-3C8C-47D1-8AFB-72942D9AE1FF",
  37. "IMAGE": "GUID-3A2FF847-BE14-4AC5-9BD4-BD3DCAEF2281",
  38. "INSERT": "GUID-28FA4CFB-9D5E-4880-9F11-36C97578252F",
  39. "LEADER": "GUID-396B2369-F89F-47D7-8223-8B7FB794F9F3",
  40. "LIGHT": "GUID-1A23DB42-6A92-48E9-9EB2-A7856A479930",
  41. "LINE": "GUID-FCEF5726-53AE-4C43-B4EA-C84EB8686A66",
  42. "LWPOLYLINE": "GUID-748FC305-F3F2-4F74-825A-61F04D757A50",
  43. "MESH": "GUID-4B9ADA67-87C8-4673-A579-6E4C76FF7025",
  44. "MLINE": "GUID-590E8AE3-C6D9-4641-8485-D7B3693E432C",
  45. "MLEADERSTYLE": "GUID-0E489B69-17A4-4439-8505-9DCE032100B4",
  46. "MLEADER": "GUID-72D20B8C-0F5E-4993-BEB7-0FCF94F32BE0",
  47. "MTEXT": "GUID-5E5DB93B-F8D3-4433-ADF7-E92E250D2BAB",
  48. "OLEFRAME": "GUID-4A10EF68-35A3-4961-8B15-1222ECE5E8C6",
  49. "OLE2FRAME": "GUID-77747CE6-82C6-4452-97ED-4CEEB38BE960",
  50. "POINT": "GUID-9C6AD32D-769D-4213-85A4-CA9CCB5C5317",
  51. "POLYLINE": "GUID-ABF6B778-BE20-4B49-9B58-A94E64CEFFF3",
  52. "RAY": "GUID-638B9F01-5D86-408E-A2DE-FA5D6ADBD415",
  53. "REGION": "GUID-644BF0F0-FD79-4C5E-AD5A-0053FCC5A5A4",
  54. "SECTION": "GUID-8B60CBAB-B226-4A5F-ABB1-46FD8AABB928",
  55. "SEQEND": "GUID-FD4FAA74-1F6D-45F6-B132-BF0C4BE6CC3B",
  56. "SHAPE": "GUID-0988D755-9AAB-4D6C-8E26-EC636F507F2C",
  57. "SOLID": "GUID-E0C5F04E-D0C5-48F5-AC09-32733E8848F2",
  58. "SPLINE": "GUID-E1F884F8-AA90-4864-A215-3182D47A9C74",
  59. "SUN": "GUID-BB191D89-9302-45E4-9904-108AB418FAE1",
  60. "SURFACE": "GUID-BB62483A-89C3-47C4-80E5-EA3F08979863",
  61. "TABLE": "GUID-D8CCD2F0-18A3-42BB-A64D-539114A07DA0",
  62. "TEXT": "GUID-62E5383D-8A14-47B4-BFC4-35824CAE8363",
  63. "TOLERANCE": "GUID-ADFCED35-B312-4996-B4C1-61C53757B3FD",
  64. "TRACE": "GUID-EA6FBCA8-1AD6-4FB2-B149-770313E93511",
  65. "UNDERLAY": "GUID-3EC8FBCC-A85A-4B0B-93CD-C6C785959077",
  66. "VERTEX": "GUID-0741E831-599E-4CBF-91E1-8ADBCFD6556D",
  67. "VIEWPORT": "GUID-2602B0FB-02E4-4B9A-B03C-B1D904753D34",
  68. "WIPEOUT": "GUID-2229F9C4-3C80-4C67-9EDA-45ED684808DC",
  69. "XLINE": "GUID-55080553-34B6-40AA-9EE2-3F3A3A2A5C0A",
  70. "ACAD_PROXY_OBJECT": "GUID-F59F0EC3-D34D-4C1A-91AC-7FDA569EF016",
  71. "ACDBDICTIONARYWDFLT": "GUID-A6605C05-1CF4-42A4-95EC-42190B2424EE",
  72. "ACDBPLACEHOLDER": "GUID-3BC75FF1-6139-49F4-AEBB-AE2AB4F437E4",
  73. "DATATABLE": "GUID-D09D0650-B926-40DD-A2F2-4FD5BDDFC330",
  74. "DICTIONARY": "GUID-40B92C63-26F0-485B-A9C2-B349099B26D0",
  75. "DICTIONARYVAR": "GUID-D305303C-F9CE-4714-9C92-607BFDA891B4",
  76. "DIMASSOC": "GUID-C0B96256-A911-4B4D-85E6-EB4AF2C91E27",
  77. "FIELD": "GUID-51B921F2-16CA-4948-AC75-196198DD1796",
  78. "GEODATA": "GUID-104FE0E2-4801-4AC8-B92C-1DDF5AC7AB64",
  79. "GROUP": "GUID-5F1372C4-37C8-4056-9303-EE1715F58E67",
  80. "IDBUFFER": "GUID-7A243F2B-72D8-4C48-A29A-3F251B86D03F",
  81. "IMAGEDEF": "GUID-EFE5319F-A71A-4612-9431-42B6C7C3941F",
  82. "IMAGEDEF_REACTOR": "GUID-46C12333-1EDA-4619-B2C9-D7D2607110C8",
  83. "LAYER_INDEX": "GUID-17560B05-31B9-44A5-BA92-E92C799398C0",
  84. "LAYER_FILTER": "GUID-3B44DCFD-FA96-482B-8468-37B3C5B5F289",
  85. "LAYOUT": "GUID-433D25BF-655D-4697-834E-C666EDFD956D",
  86. "LIGHTLIST": "GUID-C4E7FFF8-C3ED-43DD-854D-304F87FFCF06",
  87. "MATERIAL": "GUID-E540C5BB-E166-44FA-B36C-5C739878B272",
  88. "MLINESTYLE": "GUID-3EC12E5B-F5F6-484D-880F-D69EBE186D79",
  89. "OBJECT_PTR": "GUID-6D6885E2-281C-410A-92FB-8F6A7F54C9DF",
  90. "PLOTSETTINGS": "GUID-1113675E-AB07-4567-801A-310CDE0D56E9",
  91. "RASTERVARIABLES": "GUID-DDCC21A4-822A-469B-9954-1E1EC4F6DF82",
  92. "SPATIAL_INDEX": "GUID-CD1E44DA-CDBA-4AA7-B08E-C53F71648984",
  93. "SPATIAL_FILTER": "GUID-34F179D8-2030-47E4-8D49-F87B6538A05A",
  94. "SORTENTSTABLE": "GUID-462F4378-F850-4E89-90F2-3C1880F55779",
  95. "SUNSTUDY": "GUID-1C7C073F-4CFD-4939-97D9-7AB0C1E163A3",
  96. "TABLESTYLE": "GUID-0DBCA057-9F6C-4DEB-A66F-8A9B3C62FB1A",
  97. "UNDERLAYDEFINITION": "GUID-A4FF15D3-F745-4E1F-94D4-1DC3DF297B0F",
  98. "VISUALSTYLE": "GUID-8A8BF2C4-FC56-44EC-A8C4-A60CE33A530C",
  99. "VBA_PROJECT": "GUID-F247DB75-5C4D-4944-8C20-1567480221F4",
  100. "WIPEOUTVARIABLES": "GUID-CD28B95F-483C-4080-82A6-420606F88356",
  101. "XRECORD": "GUID-24668FAF-AE03-41AE-AFA4-276C3692827F",
  102. }
  103. def get_reference_link(name: str) -> str:
  104. guid = reference_guids.get(name, main_index_guid)
  105. return link_tpl.format(guid=guid)