;run thisfile in zcad by command: ExecuteFile($(ZCADPath)/components/blockpreviewexport.cmd)
DWGNew

InsertLayersFromBase(*)
LayerOff(SYS_PIN)
LayerOff(EL_DEVICE_NAME)

BlocksInBasePreViewExport(DEVICE_*|DEVICE_EL_VL_MOTOR1;DEVICE_EL_VL_HEATER1;DEVICE_EL_VL_DEVICE1|48|<>|$(ZCADPath)/images/palettes/<>_300.png)
BlocksInBasePreViewExport(DEVICE_*|DEVICE_EL_VL_MOTOR1;DEVICE_EL_VL_HEATER1;DEVICE_EL_VL_DEVICE1|24|<>|$(ZCADPath)/images/palettes/<>_150.png)
BlocksInBasePreViewExport(DEVICE_*|DEVICE_EL_VL_MOTOR1;DEVICE_EL_VL_HEATER1;DEVICE_EL_VL_DEVICE1|24|<>|$(ZCADPath)/images/palettes/<>.png)

BlockPreViewExport(24|A4K|$(ZCADPath)/images/palettes/A4K.png)
BlockPreViewExport(24|A4K|$(ZCADPath)/images/palettes/A4K_150.png)
BlockPreViewExport(48|A4K|$(ZCADPath)/images/palettes/A4K_300.png)

BlockPreViewExport(24|A3K|$(ZCADPath)/images/palettes/A3K.png)
BlockPreViewExport(24|A3K|$(ZCADPath)/images/palettes/A3K_150.png)
BlockPreViewExport(48|A3K|$(ZCADPath)/images/palettes/A3K_300.png)

BlockPreViewExport(24|A3A|$(ZCADPath)/images/palettes/A3A.png)
BlockPreViewExport(24|A3A|$(ZCADPath)/images/palettes/A3A_150.png)
BlockPreViewExport(48|A3A|$(ZCADPath)/images/palettes/A3A_300.png)

BlockPreViewExport(24|A3A+|$(ZCADPath)/images/palettes/A3A+.png)
BlockPreViewExport(24|A3A+|$(ZCADPath)/images/palettes/A3A+_150.png)
BlockPreViewExport(48|A3A+|$(ZCADPath)/images/palettes/A3A+_300.png)

BlockPreViewExport(24|A3A++|$(ZCADPath)/images/palettes/A3A++.png)
BlockPreViewExport(24|A3A++|$(ZCADPath)/images/palettes/A3A++_150.png)
BlockPreViewExport(48|A3A++|$(ZCADPath)/images/palettes/A3A++_300.png)

BlockPreViewExport(24|A2K|$(ZCADPath)/images/palettes/A2K.png)
BlockPreViewExport(24|A2K|$(ZCADPath)/images/palettes/A2K_150.png)
BlockPreViewExport(48|A2K|$(ZCADPath)/images/palettes/A2K_300.png)

BlockPreViewExport(24|A2A|$(ZCADPath)/images/palettes/A2A.png)
BlockPreViewExport(24|A2A|$(ZCADPath)/images/palettes/A2A_150.png)
BlockPreViewExport(48|A2A|$(ZCADPath)/images/palettes/A2A_300.png)

BlockPreViewExport(24|A2A+|$(ZCADPath)/images/palettes/A2A+.png)
BlockPreViewExport(24|A2A+|$(ZCADPath)/images/palettes/A2A+_150.png)
BlockPreViewExport(48|A2A+|$(ZCADPath)/images/palettes/A2A+_300.png)

BlockPreViewExport(24|A2A++|$(ZCADPath)/images/palettes/A2A++.png)
BlockPreViewExport(24|A2A++|$(ZCADPath)/images/palettes/A2A++_150.png)
BlockPreViewExport(48|A2A++|$(ZCADPath)/images/palettes/A2A++_300.png)

BlockPreViewExport(24|A1K|$(ZCADPath)/images/palettes/A1K.png)
BlockPreViewExport(24|A1K|$(ZCADPath)/images/palettes/A1K_150.png)
BlockPreViewExport(48|A1K|$(ZCADPath)/images/palettes/A1K_300.png)

BlockPreViewExport(24|A1A|$(ZCADPath)/images/palettes/A1A.png)
BlockPreViewExport(24|A1A|$(ZCADPath)/images/palettes/A1A_150.png)
BlockPreViewExport(48|A1A|$(ZCADPath)/images/palettes/A1A_300.png)

BlockPreViewExport(24|A1A+|$(ZCADPath)/images/palettes/A1A+.png)
BlockPreViewExport(24|A1A+|$(ZCADPath)/images/palettes/A1A+_150.png)
BlockPreViewExport(48|A1A+|$(ZCADPath)/images/palettes/A1A+_300.png)

BlockPreViewExport(24|A0K|$(ZCADPath)/images/palettes/A0K.png)
BlockPreViewExport(24|A0K|$(ZCADPath)/images/palettes/A0K_150.png)
BlockPreViewExport(48|A0K|$(ZCADPath)/images/palettes/A0K_300.png)

BlockPreViewExport(24|A0A|$(ZCADPath)/images/palettes/A0A.png)
BlockPreViewExport(24|A0A|$(ZCADPath)/images/palettes/A0A_150.png)
BlockPreViewExport(48|A0A|$(ZCADPath)/images/palettes/A0A_300.png)

BlockPreViewExport(24|A0A+|$(ZCADPath)/images/palettes/A0A+.png)
BlockPreViewExport(24|A0A+|$(ZCADPath)/images/palettes/A0A+_150.png)
BlockPreViewExport(48|A0A+|$(ZCADPath)/images/palettes/A0A+_300.png)

BlockPreViewExport(24|EL_VL_REPORT1_1|$(ZCADPath)/images/palettes/EL_VL_REPORT1_1+.png)
BlockPreViewExport(24|EL_VL_REPORT1_1|$(ZCADPath)/images/palettes/EL_VL_REPORT1_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT1_1|$(ZCADPath)/images/palettes/EL_VL_REPORT1_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT2_1|$(ZCADPath)/images/palettes/EL_VL_REPORT2_1+.png)
BlockPreViewExport(24|EL_VL_REPORT2_1|$(ZCADPath)/images/palettes/EL_VL_REPORT2_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT2_1|$(ZCADPath)/images/palettes/EL_VL_REPORT2_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT4_1|$(ZCADPath)/images/palettes/EL_VL_REPORT4_1.png)
BlockPreViewExport(24|EL_VL_REPORT4_1|$(ZCADPath)/images/palettes/EL_VL_REPORT4_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT4_1|$(ZCADPath)/images/palettes/EL_VL_REPORT4_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT6_1|$(ZCADPath)/images/palettes/EL_VL_REPORT6_1+.png)
BlockPreViewExport(24|EL_VL_REPORT6_1|$(ZCADPath)/images/palettes/EL_VL_REPORT6_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT6_1|$(ZCADPath)/images/palettes/EL_VL_REPORT6_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT7_1|$(ZCADPath)/images/palettes/EL_VL_REPORT7_1.png)
BlockPreViewExport(24|EL_VL_REPORT7_1|$(ZCADPath)/images/palettes/EL_VL_REPORT7_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT7_1|$(ZCADPath)/images/palettes/EL_VL_REPORT7_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT8_1|$(ZCADPath)/images/palettes/EL_VL_REPORT8_1.png)
BlockPreViewExport(24|EL_VL_REPORT8_1|$(ZCADPath)/images/palettes/EL_VL_REPORT8_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT8_1|$(ZCADPath)/images/palettes/EL_VL_REPORT8_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT9_1|$(ZCADPath)/images/palettes/EL_VL_REPORT9_1.png)
BlockPreViewExport(24|EL_VL_REPORT9_1|$(ZCADPath)/images/palettes/EL_VL_REPORT9_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT9_1|$(ZCADPath)/images/palettes/EL_VL_REPORT9_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT10_1|$(ZCADPath)/images/palettes/EL_VL_REPORT10_1.png)
BlockPreViewExport(24|EL_VL_REPORT10_1|$(ZCADPath)/images/palettes/EL_VL_REPORT10_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT10_1|$(ZCADPath)/images/palettes/EL_VL_REPORT10_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT11_1|$(ZCADPath)/images/palettes/EL_VL_REPORT11_1.png)
BlockPreViewExport(24|EL_VL_REPORT11_1|$(ZCADPath)/images/palettes/EL_VL_REPORT11_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT11_1|$(ZCADPath)/images/palettes/EL_VL_REPORT11_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT12_1|$(ZCADPath)/images/palettes/EL_VL_REPORT12_1.png)
BlockPreViewExport(24|EL_VL_REPORT12_1|$(ZCADPath)/images/palettes/EL_VL_REPORT12_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT12_1|$(ZCADPath)/images/palettes/EL_VL_REPORT12_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT13_1|$(ZCADPath)/images/palettes/EL_VL_REPORT13_1.png)
BlockPreViewExport(24|EL_VL_REPORT13_1|$(ZCADPath)/images/palettes/EL_VL_REPORT13_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT13_1|$(ZCADPath)/images/palettes/EL_VL_REPORT13_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT14_1|$(ZCADPath)/images/palettes/EL_VL_REPORT14_1.png)
BlockPreViewExport(24|EL_VL_REPORT14_1|$(ZCADPath)/images/palettes/EL_VL_REPORT14_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT14_1|$(ZCADPath)/images/palettes/EL_VL_REPORT14_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT15_1|$(ZCADPath)/images/palettes/EL_VL_REPORT15_1.png)
BlockPreViewExport(24|EL_VL_REPORT15_1|$(ZCADPath)/images/palettes/EL_VL_REPORT15_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT15_1|$(ZCADPath)/images/palettes/EL_VL_REPORT15_1_300.png)

BlockPreViewExport(24|EL_VL_REPORT16_1|$(ZCADPath)/images/palettes/EL_VL_REPORT16_1.png)
BlockPreViewExport(24|EL_VL_REPORT16_1|$(ZCADPath)/images/palettes/EL_VL_REPORT16_1_150.png)
BlockPreViewExport(48|EL_VL_REPORT16_1|$(ZCADPath)/images/palettes/EL_VL_REPORT16_1_300.png)

BlockPreViewExport(24|EL_VL_VEDOMOSTI1_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI1_1.png)
BlockPreViewExport(24|EL_VL_VEDOMOSTI1_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI1_1_150.png)
BlockPreViewExport(48|EL_VL_VEDOMOSTI1_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI1_1_300.png)

BlockPreViewExport(24|EL_VL_VEDOMOSTI2_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI2_1.png)
BlockPreViewExport(24|EL_VL_VEDOMOSTI2_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI2_1_150.png)
BlockPreViewExport(48|EL_VL_VEDOMOSTI2_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI2_1_300.png)

BlockPreViewExport(24|EL_VL_VEDOMOSTI4_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI4_1.png)
BlockPreViewExport(24|EL_VL_VEDOMOSTI4_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI4_1_150.png)
BlockPreViewExport(48|EL_VL_VEDOMOSTI4_1|$(ZCADPath)/images/palettes/EL_VL_VEDOMOSTI4_1_300.png)

BlockPreViewExport(24|DIAGRAM_CN0|$(ZCADPath)/images/palettes/DIAGRAM_CN0.png)
BlockPreViewExport(24|DIAGRAM_CN0|$(ZCADPath)/images/palettes/DIAGRAM_CN0_150.png)
BlockPreViewExport(48|DIAGRAM_CN0|$(ZCADPath)/images/palettes/DIAGRAM_CN0_300.png)

BlockPreViewExport(24|DIAGRAM_CN1|$(ZCADPath)/images/palettes/DIAGRAM_CN1.png)
BlockPreViewExport(24|DIAGRAM_CN1|$(ZCADPath)/images/palettes/DIAGRAM_CN1_150.png)
BlockPreViewExport(48|DIAGRAM_CN1|$(ZCADPath)/images/palettes/DIAGRAM_CN1_300.png)

BlockPreViewExport(24|DIAGRAM_PE1|$(ZCADPath)/images/palettes/DIAGRAM_PE1.png)
BlockPreViewExport(24|DIAGRAM_PE1|$(ZCADPath)/images/palettes/DIAGRAM_PE1_150.png)
BlockPreViewExport(48|DIAGRAM_PE1|$(ZCADPath)/images/palettes/DIAGRAM_PE1_300.png)

BlockPreViewExport(24|DIAGRAM_PE2|$(ZCADPath)/images/palettes/DIAGRAM_PE2.png)
BlockPreViewExport(24|DIAGRAM_PE2|$(ZCADPath)/images/palettes/DIAGRAM_PE2_150.png)
BlockPreViewExport(48|DIAGRAM_PE2|$(ZCADPath)/images/palettes/DIAGRAM_PE2_300.png)

BlockPreViewExport(24|DIAGRAM_H0|$(ZCADPath)/images/palettes/DIAGRAM_H0.png)
BlockPreViewExport(24|DIAGRAM_H0|$(ZCADPath)/images/palettes/DIAGRAM_H0_150.png)
BlockPreViewExport(48|DIAGRAM_H0|$(ZCADPath)/images/palettes/DIAGRAM_H0_300.png)

BlockPreViewExport(24|DIAGRAM_FD0|$(ZCADPath)/images/palettes/DIAGRAM_FD0.png)
BlockPreViewExport(24|DIAGRAM_FD0|$(ZCADPath)/images/palettes/DIAGRAM_FD0_150.png)
BlockPreViewExport(48|DIAGRAM_FD0|$(ZCADPath)/images/palettes/DIAGRAM_FD0_300.png)

BlockPreViewExport(24|DIAGRAM_FD1|$(ZCADPath)/images/palettes/DIAGRAM_FD1.png)
BlockPreViewExport(24|DIAGRAM_FD1|$(ZCADPath)/images/palettes/DIAGRAM_FD1_150.png)
BlockPreViewExport(48|DIAGRAM_FD1|$(ZCADPath)/images/palettes/DIAGRAM_FD1_300.png)

BlockPreViewExport(24|DIAGRAM_QF1|$(ZCADPath)/images/palettes/DIAGRAM_QF1.png)
BlockPreViewExport(24|DIAGRAM_QF1|$(ZCADPath)/images/palettes/DIAGRAM_QF1_150.png)
BlockPreViewExport(48|DIAGRAM_QF1|$(ZCADPath)/images/palettes/DIAGRAM_QF1_300.png)

BlockPreViewExport(24|EL_VL_LINE4_1|$(ZCADPath)/images/palettes/EL_VL_LINE4_1.png)
BlockPreViewExport(24|EL_VL_LINE4_1|$(ZCADPath)/images/palettes/EL_VL_LINE4_1_150.png)
BlockPreViewExport(48|EL_VL_LINE4_1|$(ZCADPath)/images/palettes/EL_VL_LINE4_1_300.png)

BlockPreViewExport(24|EL_VL_LINE4_2|$(ZCADPath)/images/palettes/EL_VL_LINE4_2.png)
BlockPreViewExport(24|EL_VL_LINE4_2|$(ZCADPath)/images/palettes/EL_VL_LINE4_2_150.png)
BlockPreViewExport(48|EL_VL_LINE4_2|$(ZCADPath)/images/palettes/EL_VL_LINE4_2_300.png)

BlockPreViewExport(24|EL_VL_SCHEMA1_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA1_0.png)
BlockPreViewExport(24|EL_VL_SCHEMA1_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA1_0_150.png)
BlockPreViewExport(48|EL_VL_SCHEMA1_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA1_0_300.png)

BlockPreViewExport(24|EL_VL_SCHEMA2_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA2_0.png)
BlockPreViewExport(24|EL_VL_SCHEMA2_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA2_0_150.png)
BlockPreViewExport(48|EL_VL_SCHEMA2_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA2_0_300.png)

BlockPreViewExport(24|EL_VL_SCHEMA3_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA3_0.png)
BlockPreViewExport(24|EL_VL_SCHEMA3_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA3_0_150.png)
BlockPreViewExport(48|EL_VL_SCHEMA3_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA3_0_300.png)

BlockPreViewExport(24|EL_VL_SCHEMA4_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA4_0.png)
BlockPreViewExport(24|EL_VL_SCHEMA4_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA4_0_150.png)
BlockPreViewExport(48|EL_VL_SCHEMA4_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA4_0_300.png)

BlockPreViewExport(24|EL_VL_SCHEMA5_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA5_0.png)
BlockPreViewExport(24|EL_VL_SCHEMA5_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA5_0_150.png)
BlockPreViewExport(48|EL_VL_SCHEMA5_0|$(ZCADPath)/images/palettes/EL_VL_SCHEMA5_0_300.png)

BlockPreViewExport(24|EL_VL_HIGH_L1|$(ZCADPath)/images/palettes/EL_VL_HIGH_L1.png)
BlockPreViewExport(24|EL_VL_HIGH_L1|$(ZCADPath)/images/palettes/EL_VL_HIGH_L1_150.png)
BlockPreViewExport(48|EL_VL_HIGH_L1|$(ZCADPath)/images/palettes/EL_VL_HIGH_L1_300.png)

BlockPreViewExport(24|EL_VL_HIGH_CZ1|$(ZCADPath)/images/palettes/EL_VL_HIGH_CZ1.png)
BlockPreViewExport(24|EL_VL_HIGH_CZ1|$(ZCADPath)/images/palettes/EL_VL_HIGH_CZ1_150.png)
BlockPreViewExport(48|EL_VL_HIGH_CZ1|$(ZCADPath)/images/palettes/EL_VL_HIGH_CZ1_300.png)

BlockPreViewExport(24|EL_VL_HIGH_FD0|$(ZCADPath)/images/palettes/EL_VL_HIGH_FD0.png)
BlockPreViewExport(24|EL_VL_HIGH_FD0|$(ZCADPath)/images/palettes/EL_VL_HIGH_FD0_150.png)
BlockPreViewExport(48|EL_VL_HIGH_FD0|$(ZCADPath)/images/palettes/EL_VL_HIGH_FD0_300.png)

BlockPreViewExport(24|UNIT_GRID1|$(ZCADPath)/images/palettes/UNIT_GRID1.png)
BlockPreViewExport(24|UNIT_GRID1|$(ZCADPath)/images/palettes/UNIT_GRID1_150.png)
BlockPreViewExport(48|UNIT_GRID1|$(ZCADPath)/images/palettes/UNIT_GRID1_300.png)

BlockPreViewExport(24|UNIT_GRID2|$(ZCADPath)/images/palettes/UNIT_GRID2.png)
BlockPreViewExport(24|UNIT_GRID2|$(ZCADPath)/images/palettes/UNIT_GRID2_150.png)
BlockPreViewExport(48|UNIT_GRID2|$(ZCADPath)/images/palettes/UNIT_GRID2_300.png)

LayerOff(TEXT)

BlocksInBasePreViewExport(comp*||48|<>|$(ZCADPath)/images/palettes/<>_300.png)
BlocksInBasePreViewExport(comp*||24|<>|$(ZCADPath)/images/palettes/<>_150.png)
