Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lxplan [2026/01/16 14:06] – ssm2017 | lxplan [2026/01/27 12:47] (current) – [js version] ssm2017 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== fields ==== | ==== fields ==== | ||
| === graphic fields === | === graphic fields === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ |
| - | loc_x : Location X | + | | loc_x | Location X | |
| - | loc_y : Location Y | + | | loc_y | Location Y | |
| - | loc_z : Location Z | + | | loc_z | Location Z | |
| - | size_w | + | | size_w |
| - | size_h | + | | size_h |
| - | start_x | + | | start_x |
| - | start_y | + | | start_y |
| - | end_x : End X | + | | end_x | End X | |
| - | end_y : End Y | + | | end_y | End Y | |
| - | len : Length | + | | len | Length |
| - | dir : Direction | + | | dir | Direction |
| - | ctl1_x | + | | ctl1_x |
| - | ctl1_y | + | | ctl1_y |
| - | ctl2_x | + | | ctl2_x |
| - | ctl2_y | + | | ctl2_y |
| - | scale_w | + | | scale_w |
| - | scale_h | + | | scale_h |
| - | draw_fl | + | | draw_fl |
| - | dr_st : Draw Stroke | + | | dr_st | Draw Stroke |
| - | fl_color | + | | fl_color |
| - | st_color | + | | st_color |
| - | st_w : Stroke Width | + | | st_w | Stroke Width | |
| - | ln_style | + | | ln_style |
| - | ch_font | + | | ch_font |
| - | font : Font | + | | font | Font | |
| - | rotate | + | | rotate |
| - | id : Key ID | + | | id | Key ID | |
| - | loc_l : Left | + | | loc_l | Left | |
| - | loc_r : Right | + | | loc_r | Right | |
| - | loc_t : Top | + | | loc_t | Top | |
| - | loc_b : Bottom | + | | loc_b | Bottom |
| - | start_z | + | | start_z |
| - | end_z : End Z | + | | end_z | End Z | |
| - | n_sides | + | | n_sides |
| - | crop_l | + | | crop_l |
| - | crop_r | + | | crop_r |
| - | crop_t | + | | crop_t |
| - | crop_b | + | | crop_b |
| - | 3dtype | + | | 3dtype |
| - | </ | + | |
| === report fields === | === report fields === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ |
| - | space : Space | + | | space | Space | |
| - | color+frame | + | | color+frame |
| - | color+type | + | | color+type |
| - | pdist : Location | + | | pdist | Location |
| - | foc_pt | + | | foc_pt |
| - | bnc_pt | + | | bnc_pt |
| - | INPUT : Input | + | | INPUT | Input | |
| - | sheets | + | | sheets |
| - | full_cname | + | | full_cname |
| - | patch : Patch | + | | patch | Patch | |
| - | uuid : UUID | + | | uuid | UUID | |
| - | keep : Keep | + | | keep | Keep | |
| - | </ | + | |
| === key fields === | === key fields === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ RPT ^ |
| - | name : Type | + | | name | Type | | |
| - | fname : Full Name | + | | fname | Full Name | | |
| - | id : ID | + | | id | ID | n | |
| - | sid : Symbol ID | + | | sid | Symbol ID | | |
| - | have : Inventory | + | | have | Inventory |
| - | balance | + | | balance |
| - | lamp : Lamp | + | | lamp | Lamp | | |
| - | watts : Watts | + | | watts | Watts | | |
| - | frame : Color Frame | + | | frame | Color Frame | | |
| - | beam : Field Angle | + | | beam | Field Angle | n | |
| - | bm_x : Field X | + | | bm_x | Field X | n | |
| - | bm_y : Field Y | + | | bm_y | Field Y | n | |
| - | bm_w : Field Wide | + | | bm_w | Field Wide | n | |
| - | bm_t : Field Tight | + | | bm_t | Field Tight | n | |
| - | cd : Candela | + | | cd | Candela |
| - | cd_w : Candela Wide | + | | cd_w | Candela Wide | n | |
| - | cd_t : Candela Tight | + | | cd_t | Candela Tight | n | |
| - | abm : Beam Angle | + | | abm | Beam Angle | n | |
| - | abm_x : Beam X | + | | abm_x | Beam X | n | |
| - | abm_y : Beam Y | + | | abm_y | Beam Y | n | |
| - | abm_w : Beam Wide | + | | abm_w | Beam Wide | n | |
| - | abm_t : Beam Tight | + | | abm_t | Beam Tight | n | |
| - | wt : Weight | + | | wt | Weight |
| - | cpf : Sections Per Fixture | + | | cpf | Sections Per Fixture |
| - | lpc : Lamps Per Circuit | + | | lpc | Lamps Per Circuit |
| - | dbl : Distance Between Lamps | + | | dbl | Distance Between Lamps | n | |
| - | note : More Info | + | | note | More Info | | |
| - | scroll | + | | scroll |
| - | dmode : Mode | + | | dmode | Mode | n | |
| - | mixtype | + | | mixtype |
| - | d_mk : Default Mark | + | | d_mk | Default Mark | n | |
| - | acc_loc | + | | acc_loc |
| - | d_adj_x | + | | d_adj_x |
| - | d_adj_y | + | | d_adj_y |
| - | d_adj_z | + | | d_adj_z |
| - | </ | + | |
| === kinds === | === kinds === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ Keyfields ^ Infofields ^ |
| - | ers : Leko / ERS | + | | ers | Leko / ERS | name, fname, id, sid, have, lamp, watts, frame, beam, cd, abm, wt, note, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, gobo, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, adj_x, adj_y, adj_z | |
| - | zers : Zoom Leko / ERS | + | | zers | Zoom Leko / ERS | name, fname, id, sid, have, lamp, watts, frame, bm_w, bm_t, cd_w, cd_t, abm_w, abm_t, wt, note, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, gobo, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, vbeam, vcd, adj_x, adj_y, adj_z | |
| - | fres : Fresnel / PC | + | | fres | Fresnel / PC | name, fname, id, sid, have, lamp, watts, frame, bm_w, bm_t, cd_w, cd_t, abm_w, abm_t, wt, note, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, vbeam, vcd, adj_x, adj_y, adj_z | |
| - | par : PAR | + | | par | PAR | name, fname, id, sid, have, lamp, watts, frame, bm_x, bm_y, cd, abm_x, abm_y, wt, note, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, foc_a, adj_x, adj_y, adj_z | |
| - | fl : Flood | + | | fl | Flood | name, fname, id, sid, have, lamp, watts, frame, beam, cd, abm, wt, note, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, adj_x, adj_y, adj_z | |
| - | strip : Striplight | + | | strip | Striplight |
| - | scroll | + | | scroll |
| - | mirror | + | | mirror |
| - | focus : Focus Point | + | | focus | Focus Point | name, fname, id, sid | use, foc_x, foc_y, foc_z | |
| - | misc : Other | + | | misc | Other | name, fname, id, sid, have, acc_loc | | |
| - | mover : Automated Fixture | + | | mover | Automated Fixture |
| - | cmymvr | + | | cmymvr |
| - | rgb : Color Mixing Rectangular Beam (obsolete rgb) | + | | rgb | Color Mixing Rectangular Beam (obsolete rgb) | name, fname, id, sid, have, lamp, watts, frame, bm_x, bm_y, cd, abm_x, abm_y, wt, note, scroll, dmode, mixtype, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, dtable, adj_x, adj_y, adj_z | |
| - | rgba : Color Mixing Rectangular Beam (obsolete rgba) | + | | rgba | Color Mixing Rectangular Beam (obsolete rgba) | name, fname, id, sid, have, lamp, watts, frame, bm_x, bm_y, cd, abm_x, abm_y, wt, note, scroll, dmode, mixtype, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, dtable, adj_x, adj_y, adj_z | |
| - | led7 : Color Mixing Rectangular Beam | + | | led7 | Color Mixing Rectangular Beam | name, fname, id, sid, have, lamp, watts, frame, bm_x, bm_y, cd, abm_x, abm_y, wt, note, scroll, dmode, mixtype, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, foc_a, dtable, adj_x, adj_y, adj_z | |
| - | led7s : Color Mixing Striplight | + | | led7s | Color Mixing Striplight |
| - | cmers : Color Mixing Leko / ERS | + | | cmers | Color Mixing Leko / ERS | name, fname, id, sid, have, lamp, watts, frame, beam, cd, abm, wt, note, scroll, dmode, mixtype, d_mk, d_adj_x, d_adj_y, d_adj_z | hang, num, color, color2, chan, chpt, cir, dim, gobo, use, grp, mk, note, user1, user2, user3, userF1, userF2, userF3, foc_x, foc_y, foc_z, glr, dtable, adj_x, adj_y, adj_z | |
| - | cmzers | + | | cmzers |
| - | cmscroll | + | | cmscroll |
| - | netnode | + | | netnode |
| - | </ | + | |
| === categories === | === categories === | ||
| - | <sxh> | + | <code> |
| Hide | Hide | ||
| Position | Position | ||
| Line 129: | Line 125: | ||
| Device | Device | ||
| 3D | 3D | ||
| - | </sxh> | + | </code> |
| === sub indices === | === sub indices === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ Subindex ^ Abbr ^ GDTF ^ |
| - | shutter | + | | shutter |
| - | strobe | + | | strobe |
| - | wh1 ; Gobo Wheel ; 130 ; gW ; Gobo1 | + | | wh1 | Gobo Wheel | 130 | gW | Gobo1 | |
| - | wh1rot | + | | wh1rot |
| - | wh1fun | + | | wh1fun |
| - | wh2rot | + | | wh2rot |
| - | wh2fun | + | | wh2fun |
| - | shut1a | + | | shut1a |
| - | shut1b | + | | shut1b |
| - | shut2a | + | | shut2a |
| - | shut2b | + | | shut2b |
| - | shut3a | + | | shut3a |
| - | shut3b | + | | shut3b |
| - | shut4a | + | | shut4a |
| - | shut4b | + | | shut4b |
| - | shutrot | + | | shutrot |
| - | spd_c ; Color Speed ; 171 ; clrspd | + | | spd_c | Color Speed | 171 | clrspd |
| - | spd_pt | + | | spd_pt |
| - | spd_b ; Beam Speed ; 174 ; bmspd ; IrisMSpeed, | + | | spd_b | Beam Speed | 174 | bmspd | IrisMSpeed, |
| - | spd_e ; Edge Speed ; 175 ; edgspd | + | | spd_e | Edge Speed | 175 | edgspd |
| - | spd_fn | + | | spd_fn |
| - | fx ; FX ; 180 ; FX | + | | fx | FX | 180 | FX | | |
| - | fx1rot | + | | fx1rot |
| - | prism ; Prism ; 189 ; pri ; Prism1 | + | | prism | Prism | 189 | pri | Prism1 |
| - | cntl ; Control | + | | cntl | Control |
| - | mac ; Macros | + | | mac | Macros |
| - | mac_c ; Color Macros | + | | mac_c | Color Macros |
| - | reset ; Reset ; 199 ; Rst ; FixtureCalibrationReset | + | | reset | Reset | 199 | Rst | FixtureCalibrationReset |
| - | Mode ; Mode ; 200 ; mode ; Mode | + | | Mode | Mode | 200 | mode | Mode | |
| - | </ | + | |
| === lt info fields === | === lt info fields === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ Inner ^ Single ^ Numeric ^ Angle ^ Dist ^ Category ^ Subindex ^ Abbr ^ GDTF ^ Control ^ Font Name ^ Font Size ^ RPT ^ |
| - | hang ; Position | + | | hang | Position |
| - | num ; # ; y ; y ; 0.0 ; 0.0 ; 2 | + | | num | # | y | | y | 0.0 | 0.0 | 2 | | | | | Helvetica | 6 | | |
| - | color ; Color ; 2 ; frame ; Color1 ; y ; 0.0 ; 7.0 ; 2 | + | | color | Color | | | | 0.0 | 7.0 | 2 | 2 | frame | Color1 | y | Times-Italic | 9 | | |
| - | color2 | + | | color2 |
| - | chan ; Channel | + | | chan | Channel |
| - | chpt ; Channel Part ; y ; 0.0 ; 0.0 ; 0 | + | | chpt | Channel Part | | | y | 0.0 | 0.0 | 0 | | | | | Helvetica | 12 | | |
| - | cir ; Circuit | + | | cir | Circuit |
| - | dim ; Address | + | | dim | Address |
| - | gobo ; Template | + | | gobo | Template |
| - | use ; Use ; 0.0 ; 20.0 ; 2 | + | | use | Use | | | | 0.0 | 20.0 | 2 | | | | | Helvetica | 10 | | |
| - | grp ; Group ; 0.0 ; 0.0 ; 2 | + | | grp | Group | | | | 0.0 | 0.0 | 2 | | | | | Helvetica | 10 | | |
| - | mk ; Mark ; y ; 0.0 ; 6.0 ; 3 | + | | mk | Mark | y | | | 0.0 | 6.0 | 3 | | | | | Helvetica | 6 | | |
| - | note ; Note ; 0.0 ; 0.0 ; 3 | + | | note | Note | | | | 0.0 | 0.0 | 3 | | | | | Helvetica | 10 | | |
| - | user1 ; User Data ; 0.0 ; 0.0 ; 0 | + | | user1 | User Data | | | | 0.0 | 0.0 | 0 | | | | | Helvetica | 12 | | |
| - | user2 ; User Data 2 ; 0.0 ; 0.0 ; 0 | + | | user2 | User Data 2 | | | | 0.0 | 0.0 | 0 | | | | | Helvetica | 12 | | |
| - | user3 ; User Data 3 ; 0.0 ; 0.0 ; 0 | + | | user3 | User Data 3 | | | | 0.0 | 0.0 | 0 | | | | | Helvetica | 12 | | |
| - | userF1 | + | | userF1 |
| - | userF2 | + | | userF2 |
| - | userF3 | + | | userF3 |
| - | foc_x ; Focus X ; 0.0 ; 0.0 ; 4 | + | | foc_x | Focus X | | | | 0.0 | 0.0 | 4 | | | | | Helvetica | 10 | | |
| - | foc_y ; Focus Y ; 0.0 ; 0.0 ; 4 | + | | foc_y | Focus Y | | | | 0.0 | 0.0 | 4 | | | | | Helvetica | 10 | | |
| - | foc_z ; Focus Height | + | | foc_z | Focus Height |
| - | glr ; Rendering | + | | glr | Rendering |
| - | edge ; Edge ; 13 ; edge ; Focus1 ; y ; 0.0 ; 0.0 ; 4 | + | | edge | Edge | | | | 0.0 | 0.0 | 4 | 13 | edge | Focus1 | y | Helvetica | 12 | n | |
| - | vbeam ; Spot/ | + | | vbeam | Spot/ |
| - | vcd ; Cd@Spot/ | + | | vcd | Cd@Spot/ |
| - | foc_a ; Beam Axis ; 12 ; Bma ; ShaperRot ; y ; 0.0 ; 0.0 ; 4 | + | | foc_a | Beam Axis | | | | 0.0 | 0.0 | 4 | 12 | Bma | ShaperRot | y | Helvetica | 10 | | |
| - | chans ; Channels | + | | chans | Channels |
| - | owner ; Owner ID ; 0.0 ; 0.0 ; 5 | + | | owner | Owner ID | | | | 0.0 | 0.0 | 5 | | | | | Helvetica | 10 | | |
| - | dtable | + | | dtable |
| - | mpan ; Pan ; 3 ; pan ; Pan ; y ; 0.0 ; 0.0 ; 5 | + | | mpan | Pan | | | | 0.0 | 0.0 | 5 | 3 | pan | Pan | y | Helvetica | 12 | n | |
| - | mtilt ; Tilt ; 5 ; tilt ; Tilt ; y ; 0.0 ; 0.0 ; 5 | + | | mtilt | Tilt | | | | 0.0 | 0.0 | 5 | 5 | tilt | Tilt | y | Helvetica | 12 | n | |
| - | vbm_per ; Iris% ; 7 ; iris ; Iris ; y ; y ; 0.0 ; 0.0 ; 5 | + | | vbm_per | Iris% | | y | | 0.0 | 0.0 | 5 | 7 | iris | Iris | y | Helvetica | 12 | n | |
| - | intensity ; Intensity ; 1 ; int% ; Dimmer | + | | intensity | Intensity | | | | 0.0 | 0.0 | 5 | 1 | int% | Dimmer |
| - | mixHue ; Hue ; 19 ; hue ; HSB_Hue | + | | mixHue | Hue | | | | 0.0 | 0.0 | 5 | 19 | hue | HSB_Hue |
| - | mixSat ; Saturation ; 20 ; sat. ; HSB_Saturation | + | | mixSat | Saturation | | | | 0.0 | 0.0 | 5 | 20 | sat. | HSB_Saturation |
| - | mixCy ; Cyan ; 21 ; Cy ; ColorSub_C, | + | | mixCy | Cyan | | | | 0.0 | 0.0 | 5 | 21 | Cy | ColorSub_C, |
| - | mixCIEx ; Color X ; 17 ; cX ; CIE_X ; y ; 0.0 ; 0.0 ; 5 | + | | mixCIEx | Color X | | | | 0.0 | 0.0 | 5 | 17 | cX | CIE_X | y | Helvetica | 12 | n | |
| - | mixCIEy ; Color Y ; 18 ; cY ; CIE_Y ; y ; 0.0 ; 0.0 ; 5 | + | | mixCIEy | Color Y | | | | 0.0 | 0.0 | 5 | 18 | cY | CIE_Y | y | Helvetica | 12 | n | |
| - | mixMg ; Magenta ; 22 ; Mg ; ColorSub_M, | + | | mixMg | Magenta | | | | 0.0 | 0.0 | 5 | 22 | Mg | ColorSub_M, |
| - | mixYl ; Yellow ; 23 ; Yl ; ColorSub_Y, | + | | mixYl | Yellow | | | | 0.0 | 0.0 | 5 | 23 | Yl | ColorSub_Y, |
| - | mixRd ; Red ; 24 ; Rd ; ColorAdd_R, | + | | mixRd | Red | | | | 0.0 | 0.0 | 5 | 24 | Rd | ColorAdd_R, |
| - | mixGn ; Green ; 25 ; Gn ; ColorAdd_G, | + | | mixGn | Green | | | | 0.0 | 0.0 | 5 | 25 | Gn | ColorAdd_G, |
| - | mixBl ; Blue ; 26 ; Bl ; ColorAdd_B, | + | | mixBl | Blue | | | | 0.0 | 0.0 | 5 | 26 | Bl | ColorAdd_B, |
| - | mixRo ; Red-Orange ; 27 ; Ro ; y ; 0.0 ; 0.0 ; 5 | + | | mixRo | Red-Orange | | | | 0.0 | 0.0 | 5 | 27 | Ro | | y | Helvetica | 12 | n | |
| - | mixAm ; Amber ; 28 ; Am ; ColorAdd_RY, | + | | mixAm | Amber | | | | 0.0 | 0.0 | 5 | 28 | Am | ColorAdd_RY, |
| - | mixIn ; Indigo ; 29 ; Ig ; ColorAdd_BM | + | | mixIn | Indigo | | | | 0.0 | 0.0 | 5 | 29 | Ig | ColorAdd_BM |
| - | mixWh ; White ; 30 ; Wh ; ColorAdd_W | + | | mixWh | White | | | | 0.0 | 0.0 | 5 | 30 | Wh | ColorAdd_W |
| - | mixWW ; Warm White ; 31 ; wW ; ColorAdd_WW | + | | mixWW | Warm White | | | | 0.0 | 0.0 | 5 | 31 | wW | ColorAdd_WW |
| - | mixCW ; Cool White ; 32 ; cW ; ColorAdd_CW | + | | mixCW | Cool White | | | | 0.0 | 0.0 | 5 | 32 | cW | ColorAdd_CW |
| - | mixLm ; Lime ; 33 ; Lm ; ColorAdd_GY, | + | | mixLm | Lime | | | | 0.0 | 0.0 | 5 | 33 | Lm | ColorAdd_GY, |
| - | mixUV ; UV ; 34 ; uv ; ColorAdd_UV | + | | mixUV | UV | | | | 0.0 | 0.0 | 5 | 34 | uv | ColorAdd_UV |
| - | adj_x ; X offset | + | | adj_x | X offset |
| - | adj_y ; Y offset | + | | adj_y | Y offset |
| - | adj_z ; Z offset | + | | adj_z | Z offset |
| - | ipaddr | + | | ipaddr |
| - | mode ; Mode ; 0.0 ; 0.0 ; 5 | + | | mode | Mode | | | | 0.0 | 0.0 | 5 | | | | | ArialNarrow | 12 | | |
| - | univ ; Universe | + | | univ | Universe |
| - | </ | + | |
| === pos info fields === | === pos info fields === | ||
| - | <sxh> | + | ^ Key ^ Human Key ^ Inner ^ Single ^ Angle ^ Dist ^ Category ^ Font Name ^ Font Size ^ |
| - | pname ; Name ; y ; 0.0 ; 10.0 ; 1 | + | | pname | Name | y | | 0.0 | 10.0 | 1 | Helvetica-BoldOblique | 12 | |
| - | ht ; Height | + | | ht | Height |
| - | n_o ; Numbering | + | | n_o | Numbering |
| - | l_o ; Layout | + | | l_o | Layout |
| - | space ; Spacing | + | | space | Spacing |
| - | l_off ; Offset Layout | + | | l_off | Offset Layout |
| - | pnote ; Note ; y" single=" | + | | pnote | Note | y | y | 0.0 | 0.0 | 1 | Helvetica | 10 | |
| - | map_st_x | + | | map_st_x |
| - | map_st_y | + | | map_st_y |
| - | map_st_z | + | | map_st_z |
| - | map_ed_x | + | | map_ed_x |
| - | map_ed_y | + | | map_ed_y |
| - | map_ed_z | + | | map_ed_z |
| - | map_axis | + | | map_axis |
| - | </ | + | |
| ==== Examples ==== | ==== Examples ==== | ||
| - | <sxh xml> | + | |
| + | ===== template ===== | ||
| + | <code xml> | ||
| + | <?xml version=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | #Thu Jan 15 16:34:27 CET 2026 | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | #Thu Jan 15 16:34:27 CET 2026 | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | < | ||
| <?xml version=" | <?xml version=" | ||
| <key> | <key> | ||
| Line 1614: | Line 1679: | ||
| < | < | ||
| </ | </ | ||
| - | </sxh> | + | </code> |
| - | ===== template ===== | + | ==== Lib maker ==== |
| - | <sxh xml> | + | made with claude.ai. create symbol with lxplan or import dxf then keep only one layer and then embed the symbol inside a group and then run the python script. |
| - | <?xml version=" | + | <code python> |
| - | <key> | + | import tkinter as tk |
| - | < | + | from tkinter import filedialog, messagebox, ttk |
| - | < | + | import xml.etree.ElementTree as ET |
| - | #Thu Jan 15 16:34:27 CET 2026 | + | import os |
| - | </ | + | class XMLExtractorApp: |
| - | | + | |
| - | | + | self.root = root |
| - | | + | self.root.title(" |
| - | #Thu Jan 15 16:34:27 CET 2026 | + | self.root.geometry(" |
| + | self.root.resizable(False, | ||
| + | |||
| + | self.input_file = None | ||
| + | self.tree = None | ||
| + | |||
| + | self.create_widgets() | ||
| + | |||
| + | def create_widgets(self): | ||
| + | # Title | ||
| + | title = tk.Label(self.root, | ||
| + | font=(" | ||
| + | title.pack(pady=10) | ||
| + | |||
| + | # Info label | ||
| + | info = tk.Label(self.root, | ||
| + | | ||
| + | info.pack() | ||
| + | |||
| + | # Input file frame | ||
| + | input_frame = tk.Frame(self.root) | ||
| + | input_frame.pack(pady=10, | ||
| + | |||
| + | tk.Label(input_frame, | ||
| + | font=(" | ||
| + | |||
| + | file_display_frame = tk.Frame(input_frame) | ||
| + | file_display_frame.pack(fill=tk.X, | ||
| + | |||
| + | self.file_label = tk.Label(file_display_frame, | ||
| + | | ||
| + | self.file_label.pack(side=tk.LEFT, | ||
| + | |||
| + | browse_btn = tk.Button(file_display_frame, | ||
| + | command=self.browse_file) | ||
| + | browse_btn.pack(side=tk.RIGHT) | ||
| + | |||
| + | # Output file frame | ||
| + | output_frame = tk.Frame(self.root) | ||
| + | output_frame.pack(pady=10, | ||
| + | |||
| + | tk.Label(output_frame, | ||
| + | font=(" | ||
| + | |||
| + | self.output_entry = tk.Entry(output_frame, | ||
| + | self.output_entry.pack(fill=tk.X, | ||
| + | self.output_entry.insert(0, | ||
| + | |||
| + | # Additional fields frame | ||
| + | fields_frame = tk.Frame(self.root) | ||
| + | fields_frame.pack(pady=10, | ||
| + | |||
| + | tk.Label(fields_frame, | ||
| + | font=(" | ||
| + | |||
| + | # Name field (displayed as " | ||
| + | name_frame = tk.Frame(fields_frame) | ||
| + | name_frame.pack(fill=tk.X, | ||
| + | tk.Label(name_frame, | ||
| + | self.name_entry = tk.Entry(name_frame, | ||
| + | self.name_entry.pack(side=tk.LEFT, | ||
| + | |||
| + | # ID field | ||
| + | id_frame = tk.Frame(fields_frame) | ||
| + | id_frame.pack(fill=tk.X, | ||
| + | tk.Label(id_frame, | ||
| + | self.id_entry = tk.Entry(id_frame, | ||
| + | self.id_entry.pack(side=tk.LEFT, | ||
| + | |||
| + | # Fname field | ||
| + | fname_frame = tk.Frame(fields_frame) | ||
| + | fname_frame.pack(fill=tk.X, | ||
| + | tk.Label(fname_frame, | ||
| + | self.fname_entry = tk.Entry(fname_frame, | ||
| + | self.fname_entry.pack(side=tk.LEFT, | ||
| + | |||
| + | # Kind field (dropdown) | ||
| + | kind_frame = tk.Frame(fields_frame) | ||
| + | kind_frame.pack(fill=tk.X, | ||
| + | tk.Label(kind_frame, | ||
| + | |||
| + | # Dictionary mapping display names to values | ||
| + | self.kind_options = { | ||
| + | "eko / ERS": " | ||
| + | "Zoom Leko / ERS": " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | "DMX Device": | ||
| + | " | ||
| + | "Focus Point": | ||
| + | " | ||
| + | " | ||
| + | "Color Mixing Automated Fixture": | ||
| + | "Color Mixing Rectangular Beam (obsolete rgb)": " | ||
| + | "Color Mixing Rectangular Beam (obsolete rgba)": | ||
| + | "Color Mixing Rectangular Beam": " | ||
| + | "Color Mixing Striplight": | ||
| + | "Color Mixing Leko / ERS": " | ||
| + | "Color Mixing Zoom ERS": " | ||
| + | "Color Mixing DMX Device": | ||
| + | " | ||
| + | } | ||
| + | |||
| + | self.kind_var = tk.StringVar() | ||
| + | self.kind_dropdown = ttk.Combobox(kind_frame, | ||
| + | values=list(self.kind_options.keys()), | ||
| + | state=" | ||
| + | font=(" | ||
| + | self.kind_dropdown.pack(side=tk.LEFT, | ||
| + | self.kind_dropdown.current(0) | ||
| + | |||
| + | # Extract button | ||
| + | extract_btn = tk.Button(self.root, | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | extract_btn.pack(pady=20) | ||
| + | |||
| + | # Status label | ||
| + | self.status_label = tk.Label(self.root, | ||
| + | | ||
| + | self.status_label.pack(pady=5) | ||
| + | | ||
| + | def browse_file(self): | ||
| + | | ||
| + | | ||
| + | filetypes=[(" | ||
| + | ) | ||
| + | if filename: | ||
| + | self.input_file = filename | ||
| + | self.file_label.config(text=os.path.basename(filename), | ||
| + | self.status_label.config(text=" | ||
| + | |||
| + | def extract_and_convert(self): | ||
| + | | ||
| + | if not self.input_file: | ||
| + | messagebox.showerror(" | ||
| + | return | ||
| + | |||
| + | output_filename = self.output_entry.get().strip() | ||
| + | if not output_filename: | ||
| + | messagebox.showerror(" | ||
| + | return | ||
| + | |||
| + | # Get the directory of the input file and create full output path | ||
| + | input_dir = os.path.dirname(self.input_file) | ||
| + | output_file = os.path.join(input_dir, | ||
| + | |||
| + | try: | ||
| + | # Parse the LXXPLOT file (XML format) | ||
| + | tree = ET.parse(self.input_file) | ||
| + | root = tree.getroot() | ||
| + | |||
| + | # Find the shape tag using the xpath: / | ||
| + | shape_element = root.find(" | ||
| + | |||
| + | if shape_element is None: | ||
| + | messagebox.showerror(" | ||
| + | "Path '/ | ||
| + | return | ||
| + | |||
| + | # Create the new XML structure: / | ||
| + | new_root = ET.Element(" | ||
| + | kentry = ET.SubElement(new_root, | ||
| + | |||
| + | # Add name, kind, and fname as siblings of custom with user-provided values | ||
| + | name = ET.SubElement(kentry, | ||
| + | name.text = self.name_entry.get().strip() | ||
| + | |||
| + | id_elem = ET.SubElement(kentry, | ||
| + | id_elem.text = self.id_entry.get().strip() | ||
| + | |||
| + | kind = ET.SubElement(kentry, | ||
| + | # Get the value corresponding to the selected display name | ||
| + | selected_display = self.kind_var.get() | ||
| + | kind.text = self.kind_options.get(selected_display, | ||
| + | |||
| + | fname = ET.SubElement(kentry, | ||
| + | fname.text = self.fname_entry.get().strip() | ||
| + | |||
| + | custom = ET.SubElement(kentry, | ||
| + | |||
| + | symbol = ET.SubElement(custom, | ||
| + | group = ET.SubElement(symbol, | ||
| + | shape = ET.SubElement(group, | ||
| + | |||
| + | # Copy the content from shape element to the new shape element | ||
| + | shape.text = shape_element.text | ||
| + | shape.attrib = shape_element.attrib | ||
| + | |||
| + | # Copy all child elements from original shape to new shape | ||
| + | for child in shape_element: | ||
| + | shape.append(child) | ||
| + | |||
| + | # Create and write the new LXKEY file | ||
| + | new_tree = ET.ElementTree(new_root) | ||
| + | ET.indent(new_tree, | ||
| + | new_tree.write(output_file, | ||
| + | |||
| + | self.status_label.config( | ||
| + | text=f" | ||
| + | fg=" | ||
| + | ) | ||
| + | messagebox.showinfo(" | ||
| + | f" | ||
| + | |||
| + | except ET.ParseError as e: | ||
| + | messagebox.showerror(" | ||
| + | f" | ||
| + | self.status_label.config(text=" | ||
| + | except Exception as e: | ||
| + | messagebox.showerror(" | ||
| + | self.status_label.config(text=" | ||
| - | </ | + | if __name__ == " |
| - | | + | |
| - | | + | |
| - | < | + | |
| - | < | + | </code> |
| - | < | + | ==== js version ==== |
| - | <symbol> | + | <code javascript> |
| - | <id> | + | <!DOCTYPE html> |
| - | <group> | + | <html lang=" |
| - | < | + | |
| - | <class> | + | <head> |
| - | <shapes> | + | <meta charset=" |
| - | <shape> | + | <meta name=" |
| - | < | + | <title>Lxplan lib builder</title> |
| - | < | + | <style> |
| - | < | + | body { |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | } |
| - | < | + | |
| - | < | + | |
| - | <drawFl>y</drawFl> | + | |
| - | <flColor> | + | |
| - | < | + | |
| - | < | + | } |
| - | </ | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | </ | + | |
| - | | + | |
| - | | + | |
| - | </ | + | |
| - | | + | button: |
| - | </ | + | background-color: |
| - | </sxh> | + | } |
| + | |||
| + | .test-result> | ||
| + | font-weight: | ||
| + | padding: 5px; | ||
| + | } | ||
| + | |||
| + | .valid { | ||
| + | color: white; | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | .invalid { | ||
| + | color: white; | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | .no-answer { | ||
| + | color: black; | ||
| + | background-color: | ||
| + | } | ||
| + | |||
| + | .container { | ||
| + | border: 1px solid black; | ||
| + | border-radius: | ||
| + | margin: 5px; | ||
| + | padding: 10px; | ||
| + | } | ||
| + | | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | les autres si besoin</li> | ||
| + | < | ||
| + | bibliotheque (voir l' | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | <input type=" | ||
| + | </ | ||
| + | <div class=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | class=" | ||
| + | < | ||
| + | <button onclick=" | ||
| + | </ | ||
| + | <div id=" | ||
| + | < | ||
| + | <div class=" | ||
| + | <div id=" | ||
| + | < | ||
| + | < | ||
| + | <label for=" | ||
| + | <input type=" | ||
| + | </ | ||
| + | < | ||
| + | <label for=" | ||
| + | <input type=" | ||
| + | </ | ||
| + | < | ||
| + | <label for=" | ||
| + | <input type=" | ||
| + | </ | ||
| + | < | ||
| + | <label for=" | ||
| + | <select id=" | ||
| + | <option value=""> | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <div id=" | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | Cliquer içi pour editer les champs optionnels | ||
| + | </ | ||
| + | <div id=" | ||
| + | </ | ||
| + | </ | ||
| + | <button id=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | // declaration des variables | ||
| + | var xmlInputContent = ""; | ||
| + | var xmlOutputContent = ""; | ||
| + | var shape = ""; | ||
| + | var isLxxplot = false; | ||
| + | var hasShape = false; | ||
| + | var hasGroup = false; | ||
| + | var filledOptionalFields = undefined; | ||
| + | var filledFields = []; | ||
| + | var isLxxplotDiv = document.getElementById(" | ||
| + | var hasShapeDiv = document.getElementById(" | ||
| + | var hasGroupDiv = document.getElementById(" | ||
| + | var dataFields = document.getElementById(" | ||
| + | var dataTypeSelect = document.getElementById(' | ||
| + | var dynamicFields = document.getElementById(' | ||
| + | |||
| + | // Tableau des options de la liste de sélection | ||
| + | const selectOptions = [ | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | ]; | ||
| + | |||
| + | // Tableau des champs disponibles | ||
| + | const availableFields = [ | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | { id: " | ||
| + | ]; | ||
| + | |||
| + | // reinitialise les resultats du test de fichier | ||
| + | function resetChecks() { | ||
| + | let content = '< | ||
| + | isLxxplotDiv.innerHTML = content; | ||
| + | hasShapeDiv.innerHTML = content; | ||
| + | hasGroupDiv.innerHTML = content; | ||
| + | dataFields.hidden = true; | ||
| + | } | ||
| + | |||
| + | // action quand le document est bien chargé | ||
| + | document.addEventListener(' | ||
| + | resetChecks(); | ||
| + | fillSelectOptions(); | ||
| + | }); | ||
| + | |||
| + | // Remplit la liste déroulante de type d' | ||
| + | function fillSelectOptions() { | ||
| + | dataTypeSelect.innerHTML = '< | ||
| + | selectOptions.forEach((option) => { | ||
| + | const optElement = document.createElement(" | ||
| + | optElement.value = option.id; | ||
| + | optElement.textContent = option.label; | ||
| + | dataTypeSelect.appendChild(optElement); | ||
| + | }); | ||
| + | } | ||
| + | |||
| + | // ecoute si le type d' | ||
| + | dataTypeSelect.addEventListener(" | ||
| + | const selectedOptionId = dataTypeSelect.value; | ||
| + | displayDynamicFields(selectedOptionId); | ||
| + | }); | ||
| + | |||
| + | // Affiche les champs optionnels en fonction du type d' | ||
| + | function displayDynamicFields(selectedOptionId) { | ||
| + | dynamicFields.innerHTML = "";// | ||
| + | |||
| + | // Trouve l' | ||
| + | const selectedOption = selectOptions.find((option) => option.id === selectedOptionId); | ||
| + | |||
| + | if (!selectedOption || !selectedOption.fields) return; | ||
| + | |||
| + | // Récupère les IDs des champs à afficher | ||
| + | const fieldIds = selectedOption.fields.split(";" | ||
| + | |||
| + | // Affiche chaque champ | ||
| + | fieldIds.forEach((fieldId) => { | ||
| + | |||
| + | const field = availableFields.find((f) => f.id === fieldId); | ||
| + | |||
| + | if (field) { | ||
| + | const fieldDiv = document.createElement(" | ||
| + | fieldDiv.innerHTML = ` | ||
| + | <label for=" | ||
| + | <input type=" | ||
| + | `; | ||
| + | dynamicFields.appendChild(fieldDiv); | ||
| + | } | ||
| + | }); | ||
| + | } | ||
| + | |||
| + | // charge le fichier lxxplot | ||
| + | function loadFile() { | ||
| + | const fileInput = document.getElementById(' | ||
| + | const file = fileInput.files[0]; | ||
| + | if (!file) { | ||
| + | alert(" | ||
| + | return; | ||
| + | } | ||
| + | |||
| + | const reader = new FileReader(); | ||
| + | reader.onload = function (e) { | ||
| + | xmlInputContent = e.target.result; | ||
| + | dataFields.hidden = !runChecks(); | ||
| + | }; | ||
| + | reader.readAsText(file); | ||
| + | } | ||
| + | |||
| + | // verifie le contenu du fichier lxxplot | ||
| + | function runChecks() { | ||
| + | isLxxplot = checkIfValidPath("/ | ||
| + | hasShape = checkIfValidPath("/ | ||
| + | if (hasShape) { | ||
| + | getShape(); | ||
| + | } | ||
| + | hasGroup = checkIfValidPath("/ | ||
| + | return (isLxxplot && hasShape && hasGroup); | ||
| + | } | ||
| + | |||
| + | // petit utilitaire pour tester le contenu du fichier lxxplot | ||
| + | function checkIfValidPath(xpathQuery, | ||
| + | resultDiv = document.getElementById(resultDiv); | ||
| + | let status = parseXml(xpathQuery).status; | ||
| + | resultDiv.innerHTML = status ? '< | ||
| + | return status; | ||
| + | } | ||
| + | |||
| + | // petit utilitaire permettant de tester le xml du fichier lxxplot | ||
| + | function parseXml(xpathQuery) { | ||
| + | try { | ||
| + | // Parser le XML | ||
| + | const parser = new DOMParser(); | ||
| + | const xmlDoc = parser.parseFromString(xmlInputContent, | ||
| + | |||
| + | // Exécuter la requête XPath | ||
| + | const xpathResult = document.evaluate( | ||
| + | xpathQuery, | ||
| + | xmlDoc, | ||
| + | null, | ||
| + | XPathResult.ANY_TYPE, | ||
| + | null | ||
| + | ); | ||
| + | |||
| + | let result = []; | ||
| + | let node = xpathResult.iterateNext(); | ||
| + | while (node) { | ||
| + | result.push(node.textContent); | ||
| + | node = xpathResult.iterateNext(); | ||
| + | } | ||
| + | |||
| + | // Afficher le résultat | ||
| + | if (result.length > 0) { | ||
| + | return { " | ||
| + | } else { | ||
| + | return { " | ||
| + | } | ||
| + | } catch (e) { | ||
| + | console.error(" | ||
| + | return { " | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // reuperer la shape depuis le fichier lxxplot | ||
| + | function getShape() { | ||
| + | try { | ||
| + | // Parser le XML | ||
| + | const parser = new DOMParser(); | ||
| + | const xmlDoc = parser.parseFromString(xmlInputContent, | ||
| + | |||
| + | // Exécuter la requête XPath | ||
| + | const xpathResult = document.evaluate( | ||
| + | "/ | ||
| + | xmlDoc, | ||
| + | null, | ||
| + | XPathResult.FIRST_ORDERED_NODE_TYPE, | ||
| + | null | ||
| + | ); | ||
| + | |||
| + | shape = xpathResult.singleNodeValue; | ||
| + | } catch (e) { | ||
| + | console.error(" | ||
| + | return { " | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // action quand on appuie sur le bouton "creer la librairie" | ||
| + | function buildOutput() { | ||
| + | if (checkFilledFields()) { | ||
| + | buildXmlOutput(); | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // verifier que les champs soient bien remplis | ||
| + | function checkFilledFields() { | ||
| + | filledFields = []; | ||
| + | getFilledChildren(' | ||
| + | if (Object.keys(filledFields).length < 3 || dataTypeSelect.value === '' | ||
| + | alert(" | ||
| + | return false; | ||
| + | } | ||
| + | getFilledChildren(' | ||
| + | return true; | ||
| + | } | ||
| + | |||
| + | function getFilledChildren(id) { | ||
| + | // recupere les champs | ||
| + | const divElement = document.getElementById(id); | ||
| + | const inputNodes = divElement.getElementsByTagName(' | ||
| + | |||
| + | // teste les champs un par un | ||
| + | for (let i = 0; i < inputNodes.length; | ||
| + | if (inputNodes[i].value.trim() !== '' | ||
| + | filledFields.push({ " | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // fabrique le fichier de sortie et l' | ||
| + | function buildXmlOutput() { | ||
| + | // creation du document xml | ||
| + | const xmlDoc = new DOMParser().parseFromString('< | ||
| + | const root = xmlDoc.documentElement; | ||
| + | |||
| + | // creation des elements basiques | ||
| + | const kentryElement = xmlDoc.createElement(' | ||
| + | const customElement = xmlDoc.createElement(" | ||
| + | const symbolElement = xmlDoc.createElement(" | ||
| + | const groupElement = xmlDoc.createElement(" | ||
| + | const kindElement = xmlDoc.createElement(" | ||
| + | kindElement.textContent = dataTypeSelect.value; | ||
| + | |||
| + | // ajout des elements basiques dans l' | ||
| + | groupElement.appendChild(shape); | ||
| + | symbolElement.appendChild(groupElement); | ||
| + | customElement.appendChild(symbolElement); | ||
| + | kentryElement.appendChild(kindElement); | ||
| + | |||
| + | // ajout de chaque champ rempli | ||
| + | filledFields.forEach((item) => { | ||
| + | const newItem = xmlDoc.createElement(item.id); | ||
| + | newItem.textContent = item.value; | ||
| + | kentryElement.appendChild(newItem); | ||
| + | }); | ||
| + | |||
| + | kentryElement.appendChild(customElement); | ||
| + | root.appendChild(kentryElement); | ||
| + | |||
| + | // conversion en chaine de characteres | ||
| + | const xmlString = "<? | ||
| + | console.log(xmlString); | ||
| + | |||
| + | // creation fichier | ||
| + | const blob = new Blob([xmlString], | ||
| + | const url = URL.createObjectURL(blob); | ||
| + | |||
| + | // envoi du fichier | ||
| + | const a = document.createElement(' | ||
| + | a.href = url; | ||
| + | a.download = ' | ||
| + | a.click(); | ||
| + | |||
| + | // nettoyage | ||
| + | URL.revokeObjectURL(url); | ||
| + | } | ||
| + | </script> | ||
| + | </body> | ||
| + | </ | ||
| + | </ | ||