Support Forum

Layer mapping on load

User
LayoutEditorFull
Monday 22nd April 2024
I am working on different technologies and have an exported layer definition macro for each (mapping gds layer types to different LayoutEditor layers). I have map layer on open/save ticked in gds set up. To avoid issues when changing between technologies, I currently open a blank layout and execute the appropriate layer macro before loading a file. Would I be better to enable load layer setting in working folder (under the user interface)? Alternatively, is there an option to specify the layer definition as part of the program execution command?
Jürgen
LayoutEditorFull
Monday 22nd April 2024
As you have described it, there are more than one ways to load the layer setup. Anyone has pro and cons. Which one works best for you, only yourself can decide. As you use a layer-mapping you need to run a macro. This can be called from the menu or called automatically by placing a *autoLayerMacro.layout* macro file next to the design and activating the mentioned autoload option. The autoload option can be activated in the setup or by the '-a' command line option. The autoload option will only be affective when opening a design by double click or calling it from the command line. A file/open operation will not trigger it. There is currently no command line option to specify the name of the setup macro. However a startup script for the LayoutEditor doing that by copying the correct macro as *autoLayerMacro.layout* next to the design and then start the LayoutEditor itself with a '-a' option should be straight forward.
User
LayoutEditorFull
Friday 26th April 2024
Thanks, your reply includes all the information I was after.
Николай

Friday 21st June 2024
I am working on different technologies too and write two macro for layer setup my files. First of them create layer setup macro from current layer manager settings and save it in current directory under the name of the current file, but with the extension .layout. For example for file "ThisFile.GDS" first macro creates layer macro "ThisFile.layout" Second macro read the name of current topology file ("ThisFile.GDS" for example) and if there is a layer-macro of the same name ( "ThisFile.layout") in the same directory, it runs it. If there is no such layer-macro, then it prompts you to manually select the layer-macro file. First ``` #!/usr/bin/layout #codec=UTF-8 #name=AutoGen_Layer_Map_20231222 #help=Date 22.12.2023 // ------------------------------------------------------------- // AutoGenerator Layer Map Macro ver.20231030 // ------------------------------------------------------------- // Разместить макрос в директории макросов, по умолчанию ~\layout\macros\layout-macros\Layer\ // Описание. // Макрос автогенерации слоев топологии. При выполнении создает макрос настроек слоев, одноименный с открытым файлом топологии. // Проверяется существование макроса. Если такой макрос уже существует, то предлагается перезаписать существующий файл или отказаться. // Сохраняются свойства слоев - имена, цвета, штриховки. Обрабатываются текущие открытые слои. // !!! Также обрабатываются отключенные, но используемые слои. Такие слои в макросе включаются и показываются. // (т.е. при последующем выполнении сгенеренного макроса, будут подключены все использованные в проекте слои вне зависимости, от их текущего Enable|Diasable) // int main(){ layout->drawing->databaseunits=1e-9; layout->drawing->userunits=1e-3; string tmpMarcoName="AutoGen_Layer_Map_20231222"; string layResetText; // Reset Layers Setup Block of layer macro (синтез текста явного сброса настроек всех слоев) layResetText =""; layResetText+="\t// Явный сброс настроек всех слоев.\n"; layResetText+="\tlayers::enableAllLayer();\n"; layResetText+="\tlayers::reset3dView(); // сброс толщин всех слоев\n"; layResetText+="\tlayers::technologyLayerRemoveAll(); // сброс технологических параметров всех слоев (conductor / via / etc)\n\n"; layResetText+="\tlayers::num[0].name=\"0\";\tlayers::num[0].setStyle(0);\tlayers::num[0].setColor(130,43,43);\tlayers::num[0].mapToLayer= 0;\tlayers::num[0].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[1].name=\"1\";\tlayers::num[1].setStyle(1);\tlayers::num[1].setColor(197,217,43);\tlayers::num[1].mapToLayer= 1;\tlayers::num[1].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[2].name=\"2\";\tlayers::num[2].setStyle(2);\tlayers::num[2].setColor(12,194,55);\tlayers::num[2].mapToLayer= 2;\tlayers::num[2].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[3].name=\"3\";\tlayers::num[3].setStyle(3);\tlayers::num[3].setColor(45,127,171);\tlayers::num[3].mapToLayer= 3;\tlayers::num[3].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[4].name=\"4\";\tlayers::num[4].setStyle(4);\tlayers::num[4].setColor(148,47,19);\tlayers::num[4].mapToLayer= 4;\tlayers::num[4].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[5].name=\"5\";\tlayers::num[5].setStyle(5);\tlayers::num[5].setColor(183,235,78);\tlayers::num[5].mapToLayer= 5;\tlayers::num[5].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[6].name=\"6\";\tlayers::num[6].setStyle(6);\tlayers::num[6].setColor(42,212,119);\tlayers::num[6].mapToLayer= 6;\tlayers::num[6].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[7].name=\"7\";\tlayers::num[7].setStyle(7);\tlayers::num[7].setColor(12,89,189);\tlayers::num[7].mapToLayer= 7;\tlayers::num[7].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[8].name=\"8\";\tlayers::num[8].setStyle(8);\tlayers::num[8].setColor(166,97,44);\tlayers::num[8].mapToLayer= 8;\tlayers::num[8].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[9].name=\"9\";\tlayers::num[9].setStyle(9);\tlayers::num[9].setColor(75,143,19);\tlayers::num[9].mapToLayer= 9;\tlayers::num[9].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[10].name=\"10\";\tlayers::num[10].setStyle(10);\tlayers::num[10].setColor(76,230,179);\tlayers::num[10].mapToLayer= 10;\tlayers::num[10].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[11].name=\"11\";\tlayers::num[11].setStyle(11);\tlayers::num[11].setColor(41,77,207);\tlayers::num[11].mapToLayer= 11;\tlayers::num[11].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[12].name=\"12\";\tlayers::num[12].setStyle(12);\tlayers::num[12].setColor(184,124,12);\tlayers::num[12].mapToLayer= 12;\tlayers::num[12].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[13].name=\"13\";\tlayers::num[13].setStyle(13);\tlayers::num[13].setColor(70,161,43);\tlayers::num[13].mapToLayer= 13;\tlayers::num[13].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[14].name=\"14\";\tlayers::num[14].setStyle(14);\tlayers::num[14].setColor(18,138,124);\tlayers::num[14].mapToLayer= 14;\tlayers::num[14].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[15].name=\"15\";\tlayers::num[15].setStyle(15);\tlayers::num[15].setColor(75,75,225);\tlayers::num[15].mapToLayer= 15;\tlayers::num[15].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[16].name=\"16\";\tlayers::num[16].setStyle(16);\tlayers::num[16].setColor(202,181,40);\tlayers::num[16].mapToLayer= 16;\tlayers::num[16].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[17].name=\"17\";\tlayers::num[17].setStyle(17);\tlayers::num[17].setColor(14,179,11);\tlayers::num[17].mapToLayer= 17;\tlayers::num[17].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[18].name=\"18\";\tlayers::num[18].setStyle(18);\tlayers::num[18].setColor(41,145,156);\tlayers::num[18].mapToLayer= 18;\tlayers::num[18].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[19].name=\"19\";\tlayers::num[19].setStyle(19);\tlayers::num[19].setColor(42,17,133);\tlayers::num[19].mapToLayer= 19;\tlayers::num[19].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[20].name=\"20\";\tlayers::num[20].setStyle(20);\tlayers::num[20].setColor(208,220,73);\tlayers::num[20].mapToLayer= 20;\tlayers::num[20].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[21].name=\"21\";\tlayers::num[21].setStyle(21);\tlayers::num[21].setColor(39,197,71);\tlayers::num[21].mapToLayer= 21;\tlayers::num[21].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[22].name=\"22\";\tlayers::num[22].setStyle(22);\tlayers::num[22].setColor(11,123,174);\tlayers::num[22].mapToLayer= 22;\tlayers::num[22].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[23].name=\"23\";\tlayers::num[23].setStyle(23);\tlayers::num[23].setColor(151,60,40);\tlayers::num[23].mapToLayer= 23;\tlayers::num[23].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[24].name=\"24\";\tlayers::num[24].setStyle(24);\tlayers::num[24].setColor(176,238,31);\tlayers::num[24].mapToLayer= 24;\tlayers::num[24].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[25].name=\"25\";\tlayers::num[25].setStyle(25);\tlayers::num[25].setColor(71,215,131);\tlayers::num[25].mapToLayer= 25;\tlayers::num[25].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[26].name=\"26\";\tlayers::num[26].setStyle(26);\tlayers::num[26].setColor(38,110,192);\tlayers::num[26].mapToLayer= 26;\tlayers::num[26].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[27].name=\"27\";\tlayers::num[27].setStyle(27);\tlayers::num[27].setColor(169,74,11);\tlayers::num[27].mapToLayer= 27;\tlayers::num[27].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[28].name=\"28\";\tlayers::num[28].setStyle(28);\tlayers::num[28].setColor(91,146,39);\tlayers::num[28].mapToLayer= 28;\tlayers::num[28].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[29].name=\"29\";\tlayers::num[29].setStyle(0);\tlayers::num[29].setColor(31,233,159);\tlayers::num[29].mapToLayer= 29;\tlayers::num[29].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[30].name=\"30\";\tlayers::num[30].setStyle(1);\tlayers::num[30].setColor(70,105,210);\tlayers::num[30].mapToLayer= 30;\tlayers::num[30].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[31].name=\"31\";\tlayers::num[31].setStyle(2);\tlayers::num[31].setColor(187,130,37);\tlayers::num[31].mapToLayer= 31;\tlayers::num[31].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[32].name=\"32\";\tlayers::num[32].setStyle(3);\tlayers::num[32].setColor(51,164,10);\tlayers::num[32].mapToLayer= 32;\tlayers::num[32].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[33].name=\"33\";\tlayers::num[33].setStyle(4);\tlayers::num[33].setColor(37,141,125);\tlayers::num[33].mapToLayer= 33;\tlayers::num[33].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[34].name=\"34\";\tlayers::num[34].setStyle(5);\tlayers::num[34].setColor(30,37,228);\tlayers::num[34].mapToLayer= 34;\tlayers::num[34].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[35].name=\"35\";\tlayers::num[35].setStyle(6);\tlayers::num[35].setColor(205,182,68);\tlayers::num[35].mapToLayer= 35;\tlayers::num[35].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[36].name=\"36\";\tlayers::num[36].setStyle(7);\tlayers::num[36].setColor(43,182,36);\tlayers::num[36].mapToLayer= 36;\tlayers::num[36].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[37].name=\"37\";\tlayers::num[37].setStyle(8);\tlayers::num[37].setColor(10,149,159);\tlayers::num[37].mapToLayer= 37;\tlayers::num[37].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[38].name=\"38\";\tlayers::num[38].setStyle(9);\tlayers::num[38].setColor(54,36,136);\tlayers::num[38].mapToLayer= 38;\tlayers::num[38].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[39].name=\"39\";\tlayers::num[39].setStyle(10);\tlayers::num[39].setColor(214,223,29);\tlayers::num[39].mapToLayer= 39;\tlayers::num[39].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[40].name=\"40\";\tlayers::num[40].setStyle(11);\tlayers::num[40].setColor(66,200,89);\tlayers::num[40].mapToLayer= 40;\tlayers::num[40].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[41].name=\"41\";\tlayers::num[41].setStyle(12);\tlayers::num[41].setColor(35,137,177);\tlayers::num[41].mapToLayer= 41;\tlayers::num[41].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[42].name=\"42\";\tlayers::num[42].setStyle(13);\tlayers::num[42].setColor(154,31,10);\tlayers::num[42].mapToLayer= 42;\tlayers::num[42].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[43].name=\"43\";\tlayers::num[43].setStyle(14);\tlayers::num[43].setColor(105,131,35);\tlayers::num[43].mapToLayer= 43;\tlayers::num[43].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[44].name=\"44\";\tlayers::num[44].setStyle(15);\tlayers::num[44].setColor(29,218,101);\tlayers::num[44].mapToLayer= 44;\tlayers::num[44].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[45].name=\"45\";\tlayers::num[45].setStyle(16);\tlayers::num[45].setColor(65,130,195);\tlayers::num[45].mapToLayer= 45;\tlayers::num[45].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[46].name=\"46\";\tlayers::num[46].setStyle(17);\tlayers::num[46].setColor(172,85,34);\tlayers::num[46].mapToLayer= 46;\tlayers::num[46].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[47].name=\"47\";\tlayers::num[47].setStyle(18);\tlayers::num[47].setColor(82,149,9);\tlayers::num[47].mapToLayer= 47;\tlayers::num[47].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[48].name=\"48\";\tlayers::num[48].setStyle(19);\tlayers::num[48].setColor(63,236,167);\tlayers::num[48].mapToLayer= 48;\tlayers::num[48].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[49].name=\"49\";\tlayers::num[49].setStyle(20);\tlayers::num[49].setColor(28,81,213);\tlayers::num[49].mapToLayer= 49;\tlayers::num[49].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[50].name=\"50\";\tlayers::num[50].setStyle(21);\tlayers::num[50].setColor(190,137,63);\tlayers::num[50].mapToLayer= 50;\tlayers::num[50].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[51].name=\"51\";\tlayers::num[51].setStyle(22);\tlayers::num[51].setColor(73,167,33);\tlayers::num[51].mapToLayer= 51;\tlayers::num[51].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[52].name=\"52\";\tlayers::num[52].setStyle(23);\tlayers::num[52].setColor(9,144,119);\tlayers::num[52].mapToLayer= 52;\tlayers::num[52].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[53].name=\"53\";\tlayers::num[53].setStyle(24);\tlayers::num[53].setColor(61,73,231);\tlayers::num[53].mapToLayer= 53;\tlayers::num[53].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[54].name=\"54\";\tlayers::num[54].setStyle(25);\tlayers::num[54].setColor(208,172,27);\tlayers::num[54].mapToLayer= 54;\tlayers::num[54].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[55].name=\"55\";\tlayers::num[55].setStyle(26);\tlayers::num[55].setColor(72,185,61);\tlayers::num[55].mapToLayer= 55;\tlayers::num[55].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[56].name=\"56\";\tlayers::num[56].setStyle(27);\tlayers::num[56].setColor(32,158,162);\tlayers::num[56].mapToLayer= 56;\tlayers::num[56].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[57].name=\"57\";\tlayers::num[57].setStyle(28);\tlayers::num[57].setColor(28,9,139);\tlayers::num[57].mapToLayer= 57;\tlayers::num[57].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[58].name=\"58\";\tlayers::num[58].setStyle(0);\tlayers::num[58].setColor(224,226,60);\tlayers::num[58].mapToLayer= 58;\tlayers::num[58].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[59].name=\"59\";\tlayers::num[59].setStyle(1);\tlayers::num[59].setColor(27,203,50);\tlayers::num[59].mapToLayer= 59;\tlayers::num[59].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[60].name=\"60\";\tlayers::num[60].setStyle(2);\tlayers::num[60].setColor(60,150,180);\tlayers::num[60].mapToLayer= 60;\tlayers::num[60].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[61].name=\"61\";\tlayers::num[61].setStyle(3);\tlayers::num[61].setColor(157,46,31);\tlayers::num[61].mapToLayer= 61;\tlayers::num[61].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[62].name=\"62\";\tlayers::num[62].setStyle(4);\tlayers::num[62].setColor(105,134,8);\tlayers::num[62].mapToLayer= 62;\tlayers::num[62].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[63].name=\"63\";\tlayers::num[63].setStyle(5);\tlayers::num[63].setColor(59,221,116);\tlayers::num[63].mapToLayer= 63;\tlayers::num[63].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[64].name=\"64\";\tlayers::num[64].setStyle(6);\tlayers::num[64].setColor(26,118,198);\tlayers::num[64].mapToLayer= 64;\tlayers::num[64].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[65].name=\"65\";\tlayers::num[65].setStyle(7);\tlayers::num[65].setColor(175,97,58);\tlayers::num[65].mapToLayer= 65;\tlayers::num[65].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[66].name=\"66\";\tlayers::num[66].setStyle(8);\tlayers::num[66].setColor(97,152,30);\tlayers::num[66].mapToLayer= 66;\tlayers::num[66].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[67].name=\"67\";\tlayers::num[67].setStyle(9);\tlayers::num[67].setColor(15,239,142);\tlayers::num[67].mapToLayer= 67;\tlayers::num[67].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[68].name=\"68\";\tlayers::num[68].setStyle(10);\tlayers::num[68].setColor(57,108,216);\tlayers::num[68].mapToLayer= 68;\tlayers::num[68].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[69].name=\"69\";\tlayers::num[69].setStyle(11);\tlayers::num[69].setColor(193,118,25);\tlayers::num[69].mapToLayer= 69;\tlayers::num[69].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[70].name=\"70\";\tlayers::num[70].setStyle(12);\tlayers::num[70].setColor(94,170,56);\tlayers::num[70].mapToLayer= 70;\tlayers::num[70].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[71].name=\"71\";\tlayers::num[71].setStyle(13);\tlayers::num[71].setColor(29,147,121);\tlayers::num[71].mapToLayer= 71;\tlayers::num[71].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[72].name=\"72\";\tlayers::num[72].setStyle(14);\tlayers::num[72].setColor(15,37,234);\tlayers::num[72].mapToLayer= 72;\tlayers::num[72].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[73].name=\"73\";\tlayers::num[73].setStyle(15);\tlayers::num[73].setColor(211,175,56);\tlayers::num[73].mapToLayer= 73;\tlayers::num[73].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[74].name=\"74\";\tlayers::num[74].setStyle(16);\tlayers::num[74].setColor(44,188,25);\tlayers::num[74].mapToLayer= 74;\tlayers::num[74].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[75].name=\"75\";\tlayers::num[75].setStyle(17);\tlayers::num[75].setColor(55,165,165);\tlayers::num[75].mapToLayer= 75;\tlayers::num[75].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[76].name=\"76\";\tlayers::num[76].setStyle(18);\tlayers::num[76].setColor(41,28,142);\tlayers::num[76].mapToLayer= 76;\tlayers::num[76].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[77].name=\"77\";\tlayers::num[77].setStyle(19);\tlayers::num[77].setColor(229,226,15);\tlayers::num[77].mapToLayer= 77;\tlayers::num[77].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[78].name=\"78\";\tlayers::num[78].setStyle(20);\tlayers::num[78].setColor(55,206,70);\tlayers::num[78].mapToLayer= 78;\tlayers::num[78].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[79].name=\"79\";\tlayers::num[79].setStyle(21);\tlayers::num[79].setColor(24,149,183);\tlayers::num[79].mapToLayer= 79;\tlayers::num[79].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[80].name=\"80\";\tlayers::num[80].setStyle(22);\tlayers::num[80].setColor(160,62,53);\tlayers::num[80].mapToLayer= 80;\tlayers::num[80].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[81].name=\"81\";\tlayers::num[81].setStyle(23);\tlayers::num[81].setColor(115,137,27);\tlayers::num[81].mapToLayer= 81;\tlayers::num[81].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[82].name=\"82\";\tlayers::num[82].setStyle(24);\tlayers::num[82].setColor(14,224,81);\tlayers::num[82].mapToLayer= 82;\tlayers::num[82].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[83].name=\"83\";\tlayers::num[83].setStyle(25);\tlayers::num[83].setColor(53,137,201);\tlayers::num[83].mapToLayer= 83;\tlayers::num[83].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[84].name=\"84\";\tlayers::num[84].setStyle(26);\tlayers::num[84].setColor(178,70,23);\tlayers::num[84].mapToLayer= 84;\tlayers::num[84].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[85].name=\"85\";\tlayers::num[85].setStyle(27);\tlayers::num[85].setColor(112,155,51);\tlayers::num[85].mapToLayer= 85;\tlayers::num[85].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[86].name=\"86\";\tlayers::num[86].setStyle(28);\tlayers::num[86].setColor(26,132,83);\tlayers::num[86].mapToLayer= 86;\tlayers::num[86].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[87].name=\"87\";\tlayers::num[87].setStyle(0);\tlayers::num[87].setColor(14,86,219);\tlayers::num[87].mapToLayer= 87;\tlayers::num[87].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[88].name=\"88\";\tlayers::num[88].setStyle(1);\tlayers::num[88].setColor(196,127,52);\tlayers::num[88].mapToLayer= 88;\tlayers::num[88].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[89].name=\"89\";\tlayers::num[89].setStyle(2);\tlayers::num[89].setColor(78,173,23);\tlayers::num[89].mapToLayer= 89;\tlayers::num[89].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[90].name=\"90\";\tlayers::num[90].setStyle(3);\tlayers::num[90].setColor(50,150,125);\tlayers::num[90].mapToLayer= 90;\tlayers::num[90].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[91].name=\"91\";\tlayers::num[91].setStyle(4);\tlayers::num[91].setColor(47,72,237);\tlayers::num[91].mapToLayer= 91;\tlayers::num[91].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[92].name=\"92\";\tlayers::num[92].setStyle(5);\tlayers::num[92].setColor(214,161,14);\tlayers::num[92].mapToLayer= 92;\tlayers::num[92].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[93].name=\"93\";\tlayers::num[93].setStyle(6);\tlayers::num[93].setColor(72,191,51);\tlayers::num[93].mapToLayer= 93;\tlayers::num[93].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[94].name=\"94\";\tlayers::num[94].setStyle(7);\tlayers::num[94].setColor(22,168,163);\tlayers::num[94].mapToLayer= 94;\tlayers::num[94].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[95].name=\"95\";\tlayers::num[95].setStyle(8);\tlayers::num[95].setColor(56,48,145);\tlayers::num[95].mapToLayer= 95;\tlayers::num[95].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[96].name=\"96\";\tlayers::num[96].setStyle(9);\tlayers::num[96].setColor(232,223,46);\tlayers::num[96].mapToLayer= 96;\tlayers::num[96].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[97].name=\"97\";\tlayers::num[97].setStyle(10);\tlayers::num[97].setColor(13,209,27);\tlayers::num[97].mapToLayer= 97;\tlayers::num[97].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[98].name=\"98\";\tlayers::num[98].setStyle(11);\tlayers::num[98].setColor(49,161,186);\tlayers::num[98].mapToLayer= 98;\tlayers::num[98].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[99].name=\"99\";\tlayers::num[99].setStyle(12);\tlayers::num[99].setColor(163,28,21);\tlayers::num[99].mapToLayer= 99;\tlayers::num[99].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[100].name=\"100\";\tlayers::num[100].setStyle(13);\tlayers::num[100].setColor(124,140,46);\tlayers::num[100].mapToLayer= 100;\tlayers::num[100].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[101].name=\"101\";\tlayers::num[101].setStyle(14);\tlayers::num[101].setColor(45,227,97);\tlayers::num[101].mapToLayer= 101;\tlayers::num[101].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[102].name=\"102\";\tlayers::num[102].setStyle(15);\tlayers::num[102].setColor(13,128,204);\tlayers::num[102].mapToLayer= 102;\tlayers::num[102].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[103].name=\"103\";\tlayers::num[103].setStyle(16);\tlayers::num[103].setColor(181,83,48);\tlayers::num[103].mapToLayer= 103;\tlayers::num[103].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[104].name=\"104\";\tlayers::num[104].setStyle(17);\tlayers::num[104].setColor(105,158,21);\tlayers::num[104].mapToLayer= 104;\tlayers::num[104].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[105].name=\"105\";\tlayers::num[105].setStyle(18);\tlayers::num[105].setColor(45,135,90);\tlayers::num[105].mapToLayer= 105;\tlayers::num[105].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[106].name=\"106\";\tlayers::num[106].setStyle(19);\tlayers::num[106].setColor(44,112,222);\tlayers::num[106].mapToLayer= 106;\tlayers::num[106].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[107].name=\"107\";\tlayers::num[107].setStyle(20);\tlayers::num[107].setColor(199,103,13);\tlayers::num[107].mapToLayer= 107;\tlayers::num[107].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[108].name=\"108\";\tlayers::num[108].setStyle(21);\tlayers::num[108].setColor(98,176,47);\tlayers::num[108].mapToLayer= 108;\tlayers::num[108].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[109].name=\"109\";\tlayers::num[109].setStyle(22);\tlayers::num[109].setColor(20,153,115);\tlayers::num[109].mapToLayer= 109;\tlayers::num[109].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[110].name=\"110\";\tlayers::num[110].setStyle(23);\tlayers::num[110].setColor(43,58,130);\tlayers::num[110].mapToLayer= 110;\tlayers::num[110].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[111].name=\"111\";\tlayers::num[111].setStyle(24);\tlayers::num[111].setColor(217,165,43);\tlayers::num[111].mapToLayer= 111;\tlayers::num[111].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[112].name=\"112\";\tlayers::num[112].setStyle(25);\tlayers::num[112].setColor(46,194,12);\tlayers::num[112].mapToLayer= 112;\tlayers::num[112].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[113].name=\"113\";\tlayers::num[113].setStyle(26);\tlayers::num[113].setColor(45,171,163);\tlayers::num[113].mapToLayer= 113;\tlayers::num[113].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[114].name=\"114\";\tlayers::num[114].setStyle(27);\tlayers::num[114].setColor(26,19,148);\tlayers::num[114].mapToLayer= 114;\tlayers::num[114].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[115].name=\"115\";\tlayers::num[115].setStyle(28);\tlayers::num[115].setColor(235,222,78);\tlayers::num[115].mapToLayer= 115;\tlayers::num[115].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[116].name=\"116\";\tlayers::num[116].setStyle(0);\tlayers::num[116].setColor(42,212,48);\tlayers::num[116].mapToLayer= 116;\tlayers::num[116].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[117].name=\"117\";\tlayers::num[117].setStyle(1);\tlayers::num[117].setColor(12,163,189);\tlayers::num[117].mapToLayer= 117;\tlayers::num[117].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[118].name=\"118\";\tlayers::num[118].setStyle(2);\tlayers::num[118].setColor(166,46,44);\tlayers::num[118].mapToLayer= 118;\tlayers::num[118].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[119].name=\"119\";\tlayers::num[119].setStyle(3);\tlayers::num[119].setColor(126,143,19);\tlayers::num[119].mapToLayer= 119;\tlayers::num[119].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[120].name=\"120\";\tlayers::num[120].setStyle(4);\tlayers::num[120].setColor(76,230,115);\tlayers::num[120].mapToLayer= 120;\tlayers::num[120].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[121].name=\"121\";\tlayers::num[121].setStyle(5);\tlayers::num[121].setColor(41,146,207);\tlayers::num[121].mapToLayer= 121;\tlayers::num[121].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[122].name=\"122\";\tlayers::num[122].setStyle(6);\tlayers::num[122].setColor(184,52,12);\tlayers::num[122].mapToLayer= 122;\tlayers::num[122].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[123].name=\"123\";\tlayers::num[123].setStyle(7);\tlayers::num[123].setColor(120,161,43);\tlayers::num[123].mapToLayer= 123;\tlayers::num[123].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[124].name=\"124\";\tlayers::num[124].setStyle(8);\tlayers::num[124].setColor(18,138,74);\tlayers::num[124].mapToLayer= 124;\tlayers::num[124].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[125].name=\"125\";\tlayers::num[125].setStyle(9);\tlayers::num[125].setColor(75,138,225);\tlayers::num[125].mapToLayer= 125;\tlayers::num[125].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[126].name=\"126\";\tlayers::num[126].setStyle(10);\tlayers::num[126].setColor(202,113,40);\tlayers::num[126].mapToLayer= 126;\tlayers::num[126].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[127].name=\"127\";\tlayers::num[127].setStyle(11);\tlayers::num[127].setColor(84,179,11);\tlayers::num[127].mapToLayer= 127;\tlayers::num[127].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[128].name=\"128\";\tlayers::num[128].setStyle(12);\tlayers::num[128].setColor(41,156,120);\tlayers::num[128].mapToLayer= 128;\tlayers::num[128].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[129].name=\"129\";\tlayers::num[129].setStyle(13);\tlayers::num[129].setColor(17,40,133);\tlayers::num[129].mapToLayer= 129;\tlayers::num[129].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[130].name=\"130\";\tlayers::num[130].setStyle(14);\tlayers::num[130].setColor(220,171,73);\tlayers::num[130].mapToLayer= 130;\tlayers::num[130].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[131].name=\"131\";\tlayers::num[131].setStyle(15);\tlayers::num[131].setColor(73,197,39);\tlayers::num[131].mapToLayer= 131;\tlayers::num[131].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[132].name=\"132\";\tlayers::num[132].setStyle(16);\tlayers::num[132].setColor(11,174,158);\tlayers::num[132].mapToLayer= 132;\tlayers::num[132].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[133].name=\"133\";\tlayers::num[133].setStyle(17);\tlayers::num[133].setColor(42,40,151);\tlayers::num[133].mapToLayer= 133;\tlayers::num[133].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[134].name=\"134\";\tlayers::num[134].setStyle(18);\tlayers::num[134].setColor(238,214,31);\tlayers::num[134].mapToLayer= 134;\tlayers::num[134].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[135].name=\"135\";\tlayers::num[135].setStyle(19);\tlayers::num[135].setColor(71,215,71);\tlayers::num[135].mapToLayer= 135;\tlayers::num[135].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[136].name=\"136\";\tlayers::num[136].setStyle(20);\tlayers::num[136].setColor(38,174,192);\tlayers::num[136].mapToLayer= 136;\tlayers::num[136].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[137].name=\"137\";\tlayers::num[137].setStyle(21);\tlayers::num[137].setColor(48,11,169);\tlayers::num[137].mapToLayer= 137;\tlayers::num[137].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[138].name=\"138\";\tlayers::num[138].setStyle(22);\tlayers::num[138].setColor(135,146,39);\tlayers::num[138].mapToLayer= 138;\tlayers::num[138].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[139].name=\"139\";\tlayers::num[139].setStyle(23);\tlayers::num[139].setColor(31,233,75);\tlayers::num[139].mapToLayer= 139;\tlayers::num[139].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[140].name=\"140\";\tlayers::num[140].setStyle(24);\tlayers::num[140].setColor(70,163,210);\tlayers::num[140].mapToLayer= 140;\tlayers::num[140].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[141].name=\"141\";\tlayers::num[141].setStyle(25);\tlayers::num[141].setColor(187,67,37);\tlayers::num[141].mapToLayer= 141;\tlayers::num[141].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[142].name=\"142\";\tlayers::num[142].setStyle(26);\tlayers::num[142].setColor(115,164,10);\tlayers::num[142].mapToLayer= 142;\tlayers::num[142].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[143].name=\"143\";\tlayers::num[143].setStyle(27);\tlayers::num[143].setColor(37,141,82);\tlayers::num[143].mapToLayer= 143;\tlayers::num[143].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[144].name=\"144\";\tlayers::num[144].setStyle(28);\tlayers::num[144].setColor(30,119,228);\tlayers::num[144].mapToLayer= 144;\tlayers::num[144].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[145].name=\"145\";\tlayers::num[145].setStyle(0);\tlayers::num[145].setColor(205,125,68);\tlayers::num[145].mapToLayer= 145;\tlayers::num[145].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[146].name=\"146\";\tlayers::num[146].setStyle(1);\tlayers::num[146].setColor(104,182,36);\tlayers::num[146].mapToLayer= 146;\tlayers::num[146].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[147].name=\"147\";\tlayers::num[147].setStyle(2);\tlayers::num[147].setColor(10,159,107);\tlayers::num[147].mapToLayer= 147;\tlayers::num[147].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[148].name=\"148\";\tlayers::num[148].setStyle(3);\tlayers::num[148].setColor(36,59,136);\tlayers::num[148].mapToLayer= 148;\tlayers::num[148].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[149].name=\"149\";\tlayers::num[149].setStyle(4);\tlayers::num[149].setColor(223,152,29);\tlayers::num[149].mapToLayer= 149;\tlayers::num[149].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[150].name=\"150\";\tlayers::num[150].setStyle(5);\tlayers::num[150].setColor(100,200,66);\tlayers::num[150].mapToLayer= 150;\tlayers::num[150].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[151].name=\"151\";\tlayers::num[151].setStyle(6);\tlayers::num[151].setColor(35,177,158);\tlayers::num[151].mapToLayer= 151;\tlayers::num[151].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[152].name=\"152\";\tlayers::num[152].setStyle(7);\tlayers::num[152].setColor(10,12,154);\tlayers::num[152].mapToLayer= 152;\tlayers::num[152].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[153].name=\"153\";\tlayers::num[153].setStyle(8);\tlayers::num[153].setColor(131,117,35);\tlayers::num[153].mapToLayer= 153;\tlayers::num[153].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[154].name=\"154\";\tlayers::num[154].setStyle(9);\tlayers::num[154].setColor(35,218,29);\tlayers::num[154].mapToLayer= 154;\tlayers::num[154].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[155].name=\"155\";\tlayers::num[155].setStyle(10);\tlayers::num[155].setColor(65,184,195);\tlayers::num[155].mapToLayer= 155;\tlayers::num[155].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[156].name=\"156\";\tlayers::num[156].setStyle(11);\tlayers::num[156].setColor(62,34,172);\tlayers::num[156].mapToLayer= 156;\tlayers::num[156].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[157].name=\"157\";\tlayers::num[157].setStyle(12);\tlayers::num[157].setColor(140,149,9);\tlayers::num[157].mapToLayer= 157;\tlayers::num[157].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[158].name=\"158\";\tlayers::num[158].setStyle(13);\tlayers::num[158].setColor(63,236,95);\tlayers::num[158].mapToLayer= 158;\tlayers::num[158].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[159].name=\"159\";\tlayers::num[159].setStyle(14);\tlayers::num[159].setColor(28,158,213);\tlayers::num[159].mapToLayer= 159;\tlayers::num[159].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[160].name=\"160\";\tlayers::num[160].setStyle(15);\tlayers::num[160].setColor(190,84,63);\tlayers::num[160].mapToLayer= 160;\tlayers::num[160].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[161].name=\"161\";\tlayers::num[161].setStyle(16);\tlayers::num[161].setColor(129,167,33);\tlayers::num[161].mapToLayer= 161;\tlayers::num[161].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[162].name=\"162\";\tlayers::num[162].setStyle(17);\tlayers::num[162].setColor(9,144,63);\tlayers::num[162].mapToLayer= 162;\tlayers::num[162].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[163].name=\"163\";\tlayers::num[163].setStyle(18);\tlayers::num[163].setColor(61,144,231);\tlayers::num[163].mapToLayer= 163;\tlayers::num[163].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[164].name=\"164\";\tlayers::num[164].setStyle(19);\tlayers::num[164].setColor(208,97,27);\tlayers::num[164].mapToLayer= 164;\tlayers::num[164].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[165].name=\"165\";\tlayers::num[165].setStyle(20);\tlayers::num[165].setColor(123,185,61);\tlayers::num[165].mapToLayer= 165;\tlayers::num[165].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[166].name=\"166\";\tlayers::num[166].setStyle(21);\tlayers::num[166].setColor(32,162,112);\tlayers::num[166].mapToLayer= 166;\tlayers::num[166].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[167].name=\"167\";\tlayers::num[167].setStyle(22);\tlayers::num[167].setColor(9,44,139);\tlayers::num[167].mapToLayer= 167;\tlayers::num[167].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[168].name=\"168\";\tlayers::num[168].setStyle(23);\tlayers::num[168].setColor(226,160,60);\tlayers::num[168].mapToLayer= 168;\tlayers::num[168].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[169].name=\"169\";\tlayers::num[169].setStyle(24);\tlayers::num[169].setColor(77,203,27);\tlayers::num[169].mapToLayer= 169;\tlayers::num[169].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[170].name=\"170\";\tlayers::num[170].setStyle(25);\tlayers::num[170].setColor(60,180,160);\tlayers::num[170].mapToLayer= 170;\tlayers::num[170].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[171].name=\"171\";\tlayers::num[171].setStyle(26);\tlayers::num[171].setColor(31,37,157);\tlayers::num[171].mapToLayer= 171;\tlayers::num[171].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[172].name=\"172\";\tlayers::num[172].setStyle(27);\tlayers::num[172].setColor(134,111,8);\tlayers::num[172].mapToLayer= 172;\tlayers::num[172].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[173].name=\"173\";\tlayers::num[173].setStyle(28);\tlayers::num[173].setColor(70,221,59);\tlayers::num[173].mapToLayer= 173;\tlayers::num[173].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[174].name=\"174\";\tlayers::num[174].setStyle(0);\tlayers::num[174].setColor(26,190,198);\tlayers::num[174].mapToLayer= 174;\tlayers::num[174].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[175].name=\"175\";\tlayers::num[175].setStyle(1);\tlayers::num[175].setColor(78,58,175);\tlayers::num[175].mapToLayer= 175;\tlayers::num[175].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[176].name=\"176\";\tlayers::num[176].setStyle(2);\tlayers::num[176].setColor(148,152,30);\tlayers::num[176].mapToLayer= 176;\tlayers::num[176].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[177].name=\"177\";\tlayers::num[177].setStyle(3);\tlayers::num[177].setColor(15,239,49);\tlayers::num[177].mapToLayer= 177;\tlayers::num[177].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[178].name=\"178\";\tlayers::num[178].setStyle(4);\tlayers::num[178].setColor(57,174,216);\tlayers::num[178].mapToLayer= 178;\tlayers::num[178].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[179].name=\"179\";\tlayers::num[179].setStyle(5);\tlayers::num[179].setColor(193,48,25);\tlayers::num[179].mapToLayer= 179;\tlayers::num[179].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[180].name=\"180\";\tlayers::num[180].setStyle(6);\tlayers::num[180].setColor(142,170,56);\tlayers::num[180].mapToLayer= 180;\tlayers::num[180].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[181].name=\"181\";\tlayers::num[181].setStyle(7);\tlayers::num[181].setColor(29,147,72);\tlayers::num[181].mapToLayer= 181;\tlayers::num[181].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[182].name=\"182\";\tlayers::num[182].setStyle(8);\tlayers::num[182].setColor(15,128,234);\tlayers::num[182].mapToLayer= 182;\tlayers::num[182].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[183].name=\"183\";\tlayers::num[183].setStyle(9);\tlayers::num[183].setColor(211,110,56);\tlayers::num[183].mapToLayer= 183;\tlayers::num[183].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[184].name=\"184\";\tlayers::num[184].setStyle(10);\tlayers::num[184].setColor(112,188,25);\tlayers::num[184].mapToLayer= 184;\tlayers::num[184].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[185].name=\"185\";\tlayers::num[185].setStyle(11);\tlayers::num[185].setColor(55,165,119);\tlayers::num[185].mapToLayer= 185;\tlayers::num[185].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[186].name=\"186\";\tlayers::num[186].setStyle(12);\tlayers::num[186].setColor(28,62,142);\tlayers::num[186].mapToLayer= 186;\tlayers::num[186].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[187].name=\"187\";\tlayers::num[187].setStyle(13);\tlayers::num[187].setColor(229,136,15);\tlayers::num[187].mapToLayer= 187;\tlayers::num[187].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[188].name=\"188\";\tlayers::num[188].setStyle(14);\tlayers::num[188].setColor(103,206,55);\tlayers::num[188].mapToLayer= 188;\tlayers::num[188].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[189].name=\"189\";\tlayers::num[189].setStyle(15);\tlayers::num[189].setColor(24,183,151);\tlayers::num[189].mapToLayer= 189;\tlayers::num[189].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[190].name=\"190\";\tlayers::num[190].setStyle(16);\tlayers::num[190].setColor(53,62,160);\tlayers::num[190].mapToLayer= 190;\tlayers::num[190].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[191].name=\"191\";\tlayers::num[191].setStyle(17);\tlayers::num[191].setColor(137,113,27);\tlayers::num[191].mapToLayer= 191;\tlayers::num[191].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[192].name=\"192\";\tlayers::num[192].setStyle(18);\tlayers::num[192].setColor(35,224,14);\tlayers::num[192].mapToLayer= 192;\tlayers::num[192].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[193].name=\"193\";\tlayers::num[193].setStyle(19);\tlayers::num[193].setColor(53,199,201);\tlayers::num[193].mapToLayer= 193;\tlayers::num[193].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[194].name=\"194\";\tlayers::num[194].setStyle(20);\tlayers::num[194].setColor(44,23,178);\tlayers::num[194].mapToLayer= 194;\tlayers::num[194].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[195].name=\"195\";\tlayers::num[195].setStyle(21);\tlayers::num[195].setColor(155,155,51);\tlayers::num[195].mapToLayer= 195;\tlayers::num[195].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[196].name=\"196\";\tlayers::num[196].setStyle(22);\tlayers::num[196].setColor(26,132,38);\tlayers::num[196].mapToLayer= 196;\tlayers::num[196].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[197].name=\"197\";\tlayers::num[197].setStyle(23);\tlayers::num[197].setColor(14,171,219);\tlayers::num[197].mapToLayer= 197;\tlayers::num[197].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[198].name=\"198\";\tlayers::num[198].setStyle(24);\tlayers::num[198].setColor(196,66,52);\tlayers::num[198].mapToLayer= 198;\tlayers::num[198].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[199].name=\"199\";\tlayers::num[199].setStyle(25);\tlayers::num[199].setColor(141,173,23);\tlayers::num[199].mapToLayer= 199;\tlayers::num[199].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[200].name=\"200\";\tlayers::num[200].setStyle(26);\tlayers::num[200].setColor(50,150,83);\tlayers::num[200].mapToLayer= 200;\tlayers::num[200].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[201].name=\"201\";\tlayers::num[201].setStyle(27);\tlayers::num[201].setColor(47,152,237);\tlayers::num[201].mapToLayer= 201;\tlayers::num[201].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[202].name=\"202\";\tlayers::num[202].setStyle(28);\tlayers::num[202].setColor(214,77,14);\tlayers::num[202].mapToLayer= 202;\tlayers::num[202].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[203].name=\"203\";\tlayers::num[203].setStyle(0);\tlayers::num[203].setColor(130,191,51);\tlayers::num[203].mapToLayer= 203;\tlayers::num[203].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[204].name=\"204\";\tlayers::num[204].setStyle(1);\tlayers::num[204].setColor(22,168,102);\tlayers::num[204].mapToLayer= 204;\tlayers::num[204].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[205].name=\"205\";\tlayers::num[205].setStyle(2);\tlayers::num[205].setColor(48,80,145);\tlayers::num[205].mapToLayer= 205;\tlayers::num[205].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[206].name=\"206\";\tlayers::num[206].setStyle(3);\tlayers::num[206].setColor(232,145,46);\tlayers::num[206].mapToLayer= 206;\tlayers::num[206].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[207].name=\"207\";\tlayers::num[207].setStyle(4);\tlayers::num[207].setColor(82,209,13);\tlayers::num[207].mapToLayer= 207;\tlayers::num[207].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[208].name=\"208\";\tlayers::num[208].setStyle(5);\tlayers::num[208].setColor(49,186,154);\tlayers::num[208].mapToLayer= 208;\tlayers::num[208].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[209].name=\"209\";\tlayers::num[209].setStyle(6);\tlayers::num[209].setColor(21,38,163);\tlayers::num[209].mapToLayer= 209;\tlayers::num[209].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[210].name=\"210\";\tlayers::num[210].setStyle(7);\tlayers::num[210].setColor(140,117,46);\tlayers::num[210].mapToLayer= 210;\tlayers::num[210].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[211].name=\"211\";\tlayers::num[211].setStyle(8);\tlayers::num[211].setColor(69,227,45);\tlayers::num[211].mapToLayer= 211;\tlayers::num[211].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[212].name=\"212\";\tlayers::num[212].setStyle(9);\tlayers::num[212].setColor(13,204,201);\tlayers::num[212].mapToLayer= 212;\tlayers::num[212].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[213].name=\"213\";\tlayers::num[213].setStyle(10);\tlayers::num[213].setColor(61,48,181);\tlayers::num[213].mapToLayer= 213;\tlayers::num[213].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[214].name=\"214\";\tlayers::num[214].setStyle(11);\tlayers::num[214].setColor(158,154,21);\tlayers::num[214].mapToLayer= 214;\tlayers::num[214].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[215].name=\"215\";\tlayers::num[215].setStyle(12);\tlayers::num[215].setColor(45,135,52);\tlayers::num[215].mapToLayer= 215;\tlayers::num[215].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[216].name=\"216\";\tlayers::num[216].setStyle(13);\tlayers::num[216].setColor(44,187,222);\tlayers::num[216].mapToLayer= 216;\tlayers::num[216].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[217].name=\"217\";\tlayers::num[217].setStyle(14);\tlayers::num[217].setColor(199,25,13);\tlayers::num[217].mapToLayer= 217;\tlayers::num[217].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[218].name=\"218\";\tlayers::num[218].setStyle(15);\tlayers::num[218].setColor(152,176,47);\tlayers::num[218].mapToLayer= 218;\tlayers::num[218].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[219].name=\"219\";\tlayers::num[219].setStyle(16);\tlayers::num[219].setColor(20,153,60);\tlayers::num[219].mapToLayer= 219;\tlayers::num[219].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[220].name=\"220\";\tlayers::num[220].setStyle(17);\tlayers::num[220].setColor(43,94,130);\tlayers::num[220].mapToLayer= 220;\tlayers::num[220].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[221].name=\"221\";\tlayers::num[221].setStyle(18);\tlayers::num[221].setColor(217,92,43);\tlayers::num[221].mapToLayer= 221;\tlayers::num[221].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[222].name=\"222\";\tlayers::num[222].setStyle(19);\tlayers::num[222].setColor(122,194,12);\tlayers::num[222].mapToLayer= 222;\tlayers::num[222].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[223].name=\"223\";\tlayers::num[223].setStyle(20);\tlayers::num[223].setColor(45,171,110);\tlayers::num[223].mapToLayer= 223;\tlayers::num[223].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[224].name=\"224\";\tlayers::num[224].setStyle(21);\tlayers::num[224].setColor(19,67,148);\tlayers::num[224].mapToLayer= 224;\tlayers::num[224].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[225].name=\"225\";\tlayers::num[225].setStyle(22);\tlayers::num[225].setColor(235,157,78);\tlayers::num[225].mapToLayer= 225;\tlayers::num[225].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[226].name=\"226\";\tlayers::num[226].setStyle(23);\tlayers::num[226].setColor(107,212,42);\tlayers::num[226].mapToLayer= 226;\tlayers::num[226].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[227].name=\"227\";\tlayers::num[227].setStyle(24);\tlayers::num[227].setColor(12,189,142);\tlayers::num[227].mapToLayer= 227;\tlayers::num[227].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[228].name=\"228\";\tlayers::num[228].setStyle(25);\tlayers::num[228].setColor(44,62,166);\tlayers::num[228].mapToLayer= 228;\tlayers::num[228].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[229].name=\"229\";\tlayers::num[229].setStyle(26);\tlayers::num[229].setColor(143,108,19);\tlayers::num[229].mapToLayer= 229;\tlayers::num[229].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[230].name=\"230\";\tlayers::num[230].setStyle(27);\tlayers::num[230].setColor(102,230,76);\tlayers::num[230].mapToLayer= 230;\tlayers::num[230].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[231].name=\"231\";\tlayers::num[231].setStyle(28);\tlayers::num[231].setColor(41,207,199);\tlayers::num[231].mapToLayer= 231;\tlayers::num[231].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[232].name=\"232\";\tlayers::num[232].setStyle(0);\tlayers::num[232].setColor(23,12,184);\tlayers::num[232].mapToLayer= 232;\tlayers::num[232].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[233].name=\"233\";\tlayers::num[233].setStyle(1);\tlayers::num[233].setColor(161,153,43);\tlayers::num[233].mapToLayer= 233;\tlayers::num[233].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[234].name=\"234\";\tlayers::num[234].setStyle(2);\tlayers::num[234].setColor(18,138,24);\tlayers::num[234].mapToLayer= 234;\tlayers::num[234].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[235].name=\"235\";\tlayers::num[235].setStyle(3);\tlayers::num[235].setColor(75,200,225);\tlayers::num[235].mapToLayer= 235;\tlayers::num[235].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[236].name=\"236\";\tlayers::num[236].setStyle(4);\tlayers::num[236].setColor(202,45,40);\tlayers::num[236].mapToLayer= 236;\tlayers::num[236].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[237].name=\"237\";\tlayers::num[237].setStyle(5);\tlayers::num[237].setColor(154,179,11);\tlayers::num[237].mapToLayer= 237;\tlayers::num[237].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[238].name=\"238\";\tlayers::num[238].setStyle(6);\tlayers::num[238].setColor(41,156,72);\tlayers::num[238].mapToLayer= 238;\tlayers::num[238].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[239].name=\"239\";\tlayers::num[239].setStyle(7);\tlayers::num[239].setColor(17,89,133);\tlayers::num[239].mapToLayer= 239;\tlayers::num[239].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[240].name=\"240\";\tlayers::num[240].setStyle(8);\tlayers::num[240].setColor(220,110,73);\tlayers::num[240].mapToLayer= 240;\tlayers::num[240].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[241].name=\"241\";\tlayers::num[241].setStyle(9);\tlayers::num[241].setColor(139,197,39);\tlayers::num[241].mapToLayer= 241;\tlayers::num[241].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[242].name=\"242\";\tlayers::num[242].setStyle(10);\tlayers::num[242].setColor(11,174,90);\tlayers::num[242].mapToLayer= 242;\tlayers::num[242].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[243].name=\"243\";\tlayers::num[243].setStyle(11);\tlayers::num[243].setColor(40,84,151);\tlayers::num[243].mapToLayer= 243;\tlayers::num[243].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[244].name=\"244\";\tlayers::num[244].setStyle(12);\tlayers::num[244].setColor(238,128,31);\tlayers::num[244].mapToLayer= 244;\tlayers::num[244].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[245].name=\"245\";\tlayers::num[245].setStyle(13);\tlayers::num[245].setColor(131,215,71);\tlayers::num[245].mapToLayer= 245;\tlayers::num[245].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[246].name=\"246\";\tlayers::num[246].setStyle(14);\tlayers::num[246].setColor(38,192,146);\tlayers::num[246].mapToLayer= 246;\tlayers::num[246].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[247].name=\"247\";\tlayers::num[247].setStyle(15);\tlayers::num[247].setColor(11,40,169);\tlayers::num[247].mapToLayer= 247;\tlayers::num[247].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[248].name=\"248\";\tlayers::num[248].setStyle(16);\tlayers::num[248].setColor(146,112,39);\tlayers::num[248].mapToLayer= 248;\tlayers::num[248].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[249].name=\"249\";\tlayers::num[249].setStyle(17);\tlayers::num[249].setColor(71,233,31);\tlayers::num[249].mapToLayer= 249;\tlayers::num[249].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[250].name=\"250\";\tlayers::num[250].setStyle(18);\tlayers::num[250].setColor(70,210,199);\tlayers::num[250].mapToLayer= 250;\tlayers::num[250].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[251].name=\"251\";\tlayers::num[251].setStyle(19);\tlayers::num[251].setColor(42,37,187);\tlayers::num[251].mapToLayer= 251;\tlayers::num[251].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[252].name=\"252\";\tlayers::num[252].setStyle(20);\tlayers::num[252].setColor(164,149,10);\tlayers::num[252].mapToLayer= 252;\tlayers::num[252].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[253].name=\"253\";\tlayers::num[253].setStyle(21);\tlayers::num[253].setColor(37,141,39);\tlayers::num[253].mapToLayer= 253;\tlayers::num[253].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[254].name=\"254\";\tlayers::num[254].setStyle(22);\tlayers::num[254].setColor(30,202,228);\tlayers::num[254].mapToLayer= 254;\tlayers::num[254].mapToDatatype= -1;\n"; layResetText+="\tlayers::num[255].name=\"255\";\tlayers::num[255].setStyle(23);\tlayers::num[255].setColor(205,68,68);\tlayers::num[255].mapToLayer= 255;\tlayers::num[255].mapToDatatype= -1;\n\n"; layResetText+="\tint errLay=250; // слой ошибок\n"; layResetText+="\tint maskLay=251; // слой в SCREEN\n"; layResetText+="\tint phshLay=252; // слой в PHSH\n"; layResetText+="\tlayers::num[errLay].enable(); layers::num[errLay].name=\"ERROR_Layer\"; layers::num[errLay].setStyle(0); layers::num[errLay].setColor(255,0,0); layers::num[errLay].set3dView(0,0);\n"; layResetText+="\tlayers::num[maskLay].enable(); layers::num[maskLay].name=\"Mask_Layer\"; layers::num[maskLay].setStyle(22); layers::num[maskLay].setColor(170,0,127); layers::num[maskLay].set3dView(0,0);\n"; layResetText+="\tlayers::num[phshLay].enable(); layers::num[phshLay].name=\"Phsh_Layer\"; layers::num[phshLay].setStyle(26); layers::num[phshLay].setColor(0,170,0); layers::num[phshLay].set3dView(0,0);\n\n"; layResetText+="\tlayers::disableAllLayer();\n"; layResetText+="\t// ----------\n\n"; // The MAIN code START (ГЛАВНОЕ начало) file LayMapFile; int i; bool flag=false; string LayMapFileText; string layNum; string tmpStr; LayMapFile.filename=layout->filename; LayMapFileText =""; //заголовочные строки макроса LayMapFileText+="#!/usr/bin/layout\n"; LayMapFileText+="#codec = UTF-8\n"; LayMapFileText+="#name = AutoGenLayerMap_"+LayMapFile.baseName()+"."+LayMapFile.suffix()+"\n"; LayMapFileText+="#help = Date of creation: "+tmpStr.setDateTime("dd MMM yyyy")+"\n\n"; // дата создания макроса LayMapFileText+="// Файл сгенерирован автоматически макросом "+tmpMarcoName+"\n\n\n"; if (LayMapFile.filename!=""){ LayMapFile.filename=LayMapFile.path()+"/"+LayMapFile.baseName()+".layout"; if (LayMapFile.exists()){ flag=layout->getBool("ВНИМАНИЕ !","Файл настроек слоев\n"+LayMapFile.filename+"\nуже существует!\nПерезаписать?"); if (flag==true){ layout->showMessage("ВЫХОД !","Файл настроек слоев обновлен не будет.\n\nВЫХОД!"); return 1; } } LayMapFileText+="void main() {\n\n"; LayMapFileText+=layResetText; // Insert text of layers reset to marco code (синтез текста явного сброса настроек всех слоев) flag=false; // Create text of marco code for current used layers (составление текста перенастройки включенных и используемых слоев) for (i=0;i<256;i++){ if (layout->drawing->useLayer(i)==true || layers::num[i].isEnabled()){ // (задел на будущее) stringList свойств (индекс - назначение): // 0 - num номер слоя // 1 - name имя // 2 - style стиль штриховки // 3 - red цвет, степень красного // 4 - green цвет, степень зеленого // 5 - blue цвет, степень синего // 6 - mapToLayer // 7 - mapToDatatype // 8 - 3dLevel 3д уровень, высота нижнего края слоя // 9 - 3dThickness 3д толщина слоя // 10 - techType технологический тип (1 - via_V; 2 - conductor_C; 0 - остальное) // 11 - parnum_0 номер в иерархии проводимости (этажерка connectivity) // 12 - parnum_1 минимальный размер (С&V) // 13 - parnum_2 минимальный зазор (С), мин.перекрытие нижним слоем (V) // 14 - parnum_3 мин.перекрытие верхим слоем (V), =-1 (С) // 15 - parnum_4 минимальный зазор (V), =-1 (С) // 16 - parnum_5 глобальное окно 0/1=нет/да (V), =-1 (С) layNum.setNum(i); // stringList 0 LayMapFileText+="\t// Cлой "+layNum+" \""+layers::num[i].name+"\"\n"; // установки свойств 2D LayMapFileText+="\tlayers::num["+layNum+"].enable();"; // включение слоя LayMapFileText+="\tlayers::num["+layNum+"].name=\""+layers::num[i].name+"\";\n"; // stringList 1 LayMapFileText+="\tlayers::num["+layNum+"].setStyle("+tmpStr.setNum(layers::num[i].getStyle())+");"; // stringList 2 LayMapFileText+="\tlayers::num["+layNum+"].setColor("+tmpStr.setNum(layers::num[i].red())+","+tmpStr.setNum(layers::num[i].green())+","+tmpStr.setNum(layers::num[i].blue())+");\n"; // stringList 3,4,5 LayMapFileText+="\tlayers::num["+layNum+"].mapToLayer= "+layNum+";"; // stringList 6 LayMapFileText+="\tlayers::num["+layNum+"].mapToDatatype= -1;\n"; // stringList 7 // установки свойств 3D и технологических параметров LayMapFileText+="\tlayers::num["+layNum+"].set3dView("+tmpStr.setNum(layers::num[i].get3dLevel())+","+tmpStr.setNum(layers::num[i].get3dThickness())+");\n"; // stringList 8, 9 LayMapFileText+="\tlayers::technologyLayerAdd("+layNum+","+tmpStr.setNum(layers::technologyLayerGetType(i))+");\n"; // stringList 10 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",0,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,0))+");\n"; // stringList 11 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",1,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,1))+");\n"; // stringList 12 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",2,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,2))+");\n"; // stringList 13 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",3,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,3))+");\n"; // stringList 14 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",4,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,4))+");\n"; // stringList 15 LayMapFileText+="\tlayers::technologyLayerSetParameter("+layNum+",5,"+tmpStr.setNum(layers::technologyLayerGetParameter(i,5))+");\n"; // stringList 16 } } // последние добавки к тексту // LayMapFileText+="layers::technologyLevelFrom3d();\n"; LayMapFileText+="\n\n"; LayMapFileText+="setup::setBackgroundColor(0, 0, 0);\n"; LayMapFileText+="setup::setMouseColor(255, 255, 255);\n"; LayMapFileText+="setup::showGrid=true;\n"; LayMapFileText+="\tsetup::paintEngine=2;\n"; LayMapFileText+="\n"; LayMapFileText+="return 0;\n"; LayMapFileText+="}"; flag=LayMapFile.open(false); LayMapFile.setCodec("UTF-8"); if (flag==true) { LayMapFile.write(LayMapFileText); LayMapFile.close(); } else { layout->showMessage("ERROR !","!!!\tОШИБКА\t!!!\n\nМакрос слоев создать не удалось!\n\nХЗ почему."); return 1; } // ГЛАВНОЕ конец } else { layout->showMessage("ERROR !","Не найден открытый файл топологии.\n\nВЫХОД!"); return 1; } layout->showMessage("SAVE","Layer setup macro "+LayMapFile.baseName()+"."+LayMapFile.suffix()+" was saved.\n\nEXIT!"); return 0; } ``` Second ``` #!/usr/bin/layout #codec=UTF-8 #name=AutoLoad_Layer_Map_20231030 #help=Date 30.10.2023 //#shortcut=Shift+F // ------------------------------------------------------------- // Load Layer Map Macro ver.20231030 // ------------------------------------------------------------- // Разместить макрос в директории макросов, по умолчанию ~\layout\macros\layout-macros\Layer\ // Описание. // Макрос автонастройки слоев топологии. При выполнении сбрасывает свойства всех слоев к системным значениям по умолчанию. // Затем пытается обнаружить layout макрос настроек слоев, одноименный с текущим файлом топологии и находящийся в той же директории. // Если одноименный макрос настроек отображения слоев не найден, то предлагает открыть окно файлового менеджера для выбора подходящего макроса вручную. // // В ходе работы проверяется расширение выбранного файла, оно должно быть ".layout". В противном случае запуск выполняться не будет. // int main(){ layout->drawing->databaseunits=1e-9; layout->drawing->userunits=1e-3; file LayMapFile; int i; int flag=0; LayMapFile.filename=layout->filename; if(LayMapFile.filename!=""){ LayMapFile.filename=LayMapFile.path()+"/"+LayMapFile.baseName()+".layout"; if (LayMapFile.exists()){ layout->showMessage("ATTENTION !","The layer setup macro \n\n"+LayMapFile.filename+"\n\nwill be executed!"); //resetLayers(); // May be uncommented for reset layers, but it is in the file of layer settings macro AutoGen_Layer_Map_YYYYMMDD (Применять нет необходимости, т.к. сброс слоев явно прописан в автомакросе) layout->executeMacro(LayMapFile.filename,""); for (i=0;i<=255;i++) { if (layout->drawing->useLayer(i)) layers::num[i].enable(); } } else { flag=layout->getBool("ERROR !","Не найден файл макроса настроек слоев.\nЖелаете открыть файл настроек слоев вручную?\n"); if (flag==1) { layout->showMessage("ERROR !","Работа макроса выполнена без настроек слоев.\n\nВЫХОД!"); return 1; } else { LayMapFile.filename=layout->getOpenFilename(); if (LayMapFile.exists()==false){ layout->showMessage("ERROR","Файл не выбран, выбран неправильно или выполнение макроса отменено!\n\tВЫХОД"); return 1; } else{ if (LayMapFile.suffix()!=("layout")){ layout->showMessage("ERROR","Расширение выбранного файла не \"*.layout\".\nВыполнение настроек слоев отменяется!\n\nВЫХОД!\n"+LayMapFile.suffix()); return 1; } else{ // resetLayers(); layout->executeMacro(LayMapFile.filename,""); } } } } } else { layout->showMessage("ERROR !","Не найден открытый файл топологии.\n\nВЫХОД!"); return 1; } return 0; } ```