DrawCSV_Layer_test.csv 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ; ---------------------------------------------------------------------------- ;
  2. ; Layer test file for QCAD3 DrawFromCSV script (C) by CVH 2021 ;
  3. ; Auto CSV style (Written in CSVsemicolon/comma style) ;
  4. ; ---------------------------------------------------------------+ by CVH +--- ;
  5. ; ;
  6. ; Layers are NOT created on any faults in a 'NewLayer' switch. ;
  7. ; Faulty attributes off an entity revert to their default. ;
  8. ; One can't use, change nor switch to a non existing layer. ;
  9. ; Layer names & custom properties are literal. ;
  10. ; Others text is case insensitive. ;
  11. ; All text is without quotation marks. ;
  12. ; ---------------------------------------------------------------------------- ;
  13. ; Casting from 4 out of 90 text lines. 13 Errors on purpose.
  14. ; Forced CSV style
  15. CSVsemicolon/comma
  16. ; Vectors with an invalid layer:
  17. ; Fails when layer '0 Entity Colors' doesn't exist!
  18. Vector;-01;-01;10;195;&[Attrib;Layer:0 Entity Colors;color:ByLayer;Lineweight:050]
  19. ; Layers with an invalid entry:
  20. ; Layers are NOT created on any attribute fault!
  21. NewLayer;Invalid=`name`;Black;015;Continuous;true;true
  22. NewLayer;Invalid color;ByBlock;025;Continuous;true;true
  23. NewLayer;Invalid Lineweight;Black;999;Continuous;true;true
  24. NewLayer;Invalid Linetype;Black;015;Orange line;true;true
  25. ; Sub-layers of non existent parent layers:
  26. ; Fails when the parent layer doesn't exist.
  27. NewLayer;MyLayer/Invalid parent;red;025;Continuous;true;true
  28. ; Handling non existent layers:
  29. HideLayer;Invalid Hide
  30. FreezeLayer;Invalid Freeze/Invalid SUB
  31. LockLayer;Invalid Lock
  32. LockLayer;Invalid=`name`
  33. AllowLayer;Invalid Allow
  34. Layer;Invalid layer switch
  35. Layer;Invalid=`name`
  36. ; Valid layers:
  37. NewLayer;01 Green;lime;025;Continuous;true;true
  38. NewLayer;02 Parent1;blue;025;Continuous;true;true
  39. NewLayer;02 Parent1/Sub1;cyan;025;Continuous;true;true
  40. NewLayer;02 Parent1/Sub1/SubSub1 %;magenta;025;Continuous;true;true
  41. NewLayer;03 Parent2;blue;025;Continuous;true;true
  42. NewLayer;03 Parent2/Sub2;cyan;025;Continuous;true;true
  43. NewLayer;03 Parent2/Sub2/SubSub2;magenta;025;Continuous;true;true
  44. NewLayer;04 Parent3;blue;025;Continuous;true;true
  45. NewLayer;04 Parent3/Sub3;cyan;025;Continuous;true;true
  46. NewLayer;04 Parent3/Sub3/SubSub3;magenta;025;Continuous;true;true
  47. NewLayer;Last New &Current;black;025;Continuous;true;true
  48. ; Layer handling:
  49. HideLayer;03 Parent2
  50. FreezeLayer;03 Parent2/Sub2
  51. LockLayer;03 Parent2/Sub2/SubSub2
  52. HideLayer;04 Parent3
  53. FreezeLayer;04 Parent3
  54. LockLayer;04 Parent3
  55. HideLayer;04 Parent3/Sub3
  56. FreezeLayer;04 Parent3/Sub3
  57. LockLayer;04 Parent3/Sub3
  58. HideLayer;04 Parent3/Sub3/SubSub3
  59. FreezeLayer;04 Parent3/Sub3/SubSub3
  60. LockLayer;04 Parent3/Sub3/SubSub3
  61. AllowLayer;04 Parent3
  62. ; Draw on 'Last New &Current' layer:
  63. Vector;01;01;15;15
  64. ; Switch to an existing layer:
  65. Layer;02 Parent1/Sub1/SubSub1 %
  66. ; Draw on current '02 Parent1/Sub1/SubSub1 %' layer:
  67. Vector;02;02;15;15
  68. ; Draw on a different layer as the current layer:
  69. Vector;03;03;15;15;&[Attrib;layer:02 Parent1]
  70. ; Finally switch to '02 Parent1/Sub1/SubSub1 %' and set active:
  71. Layer;02 Parent1/Sub1/SubSub1 %
  72. ; Select all new shapes and zoom to selected:
  73. SelectAll
  74. ZoomToAll
  75. ; ============================================================== End of file ===