Export to XML
Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.[1]]
Contents |
Use of XML in OptiTex in Export and as a PDS/MRK file Header
The benefit of saving files in this format is that the files are considered open files and information can be retrieved from them seamlessly. Seeing as most programs use External Markup Language (XML), saving files as open files allows data to be retrieved and used by a wide range of programs. This tool can greatly assist in the process of creating work, consumption, time reports and can be used in many other ways.
Using Scalable Vector Graphics in XML
For geometric information the XML file include SVG data. SVG is a specification of documents to describe scalable 2D graphics in XML. This allows documents produced by application, statistics for example, to be turned directly into a graphical view. SVG is a markup language for describing two-dimensional graphics applications and images, and a set of related graphics script interfaces
XML Data in Marker OptiTex XML file
- Style name
- Units
- File name
- File location
- Date
- No of Sizes
- No of Pieces
- Sizes table
- Pieces information (Material, quantity, rotation, etc)
- Pieces area (total and individual)
- Pieces parameter (total and individual)
- Pair pieces
- Internal information (notches, buttons)
Type
Amount
Cut length
Cut or Drill option
- Shape in SVG format
XML Data in Marker OptiTex XML file
- Style name
- Units
- File name
- File location
- Marker length
- Marker width
- Efficiency
- Total parameter length
- Total area
- Plies
- Folding
- Stripes and plaids
- Internal information (notches, buttons)
Type
Amount
Cut length
Cut or Drill option
- Pieces information
Material
Quantity
Rotation
All data from piece info
- Shape in SVG format
Example of PDS XML file
<STYLE> <OPTITEX>11.0.1105.0</OPTITEX> <UNITS LINEAR="inch" SQUARE="sq.inch" /> <FILENAME>C:\Program Files (x86)\OptiTex 9\PDS and Mark Examples\PDS examples\Dress.dsn</FILENAME> <NAME /> <DATE>02.11.10</DATE> <SIZES>3</SIZES> <PIECES>4</PIECES> <SIZES_TABLE> <PIECE> <NAME>FRONT</NAME> <CODE /> <UNIQUE>U00001</UNIQUE> <DESCRIPTION /> <MATERIAL>A</MATERIAL> <BEST_QUALITY /> <QUANTITY>2</QUANTITY> <NESTING_ENABLES ROTATION="180 deg." TILT="0.0 deg." OPPOSITE="Up/Down" /> <SIZE> <NAME>S</NAME>
<GEOM_INFO SIZE_X="10.8750" SIZE_Y="32.7416" AREA="264.4870" PERIMETER="81.7308" /> </SIZE> <SIZE> <NAME>M</NAME> <GEOM_INFO SIZE_X="11.3750" SIZE_Y="33.7297" AREA="287.0465" PERIMETER="84.3474" /> </SIZE> <SIZE> <NAME>L</NAME> <GEOM_INFO SIZE_X="11.8750" SIZE_Y="34.7297" AREA="310.3438" PERIMETER="86.9717" /> </SIZE> <INTERNALS> <NOTCH> <COUNT>2</COUNT> <T_NOTCH> <COUNT>2</COUNT> <CUT> <COUNT>2</COUNT> <LENGTH>1.2390</LENGTH> </CUT> </T_NOTCH> </NOTCH> <BUTTON> <COUNT>1</COUNT> <CUT> <COUNT>1</COUNT> </CUT> </BUTTON> <SUM_LENGTH> <LENGTH>1.2390</LENGTH> <CUT> <LENGTH>1.2390</LENGTH> </CUT> </SUM_LENGTH> </INTERNALS> <SHAPE FACTOR="0.10"> <svg width="2.89cm" height="8.57cm" viewBox="0 0 2891 8569"> <polygon fill="#FFFFCC" stroke="#000000" stroke-width="2" points="2890,8568 2240,8563 1741,8543
1042,8492 495,8438 1,8374 75,7779 146,7334 246,6844 409,6163 673,5146 910,4277 940,4131 953,3920
800,3391 716,3051 658,2757 603,2361 572,2090 663,2042 732,1974 838,1746 878,1602 904,1402 911,1153
898,803 858,312 1896,1 2008,332 2101,565 2192,744 2281,865 2355,934 2439,990 2532,1028 2729,1061
2890,1075" /> <g style="fill:none; stroke:#000000" stroke-width="1"> <path d="M2890,8568 L2890,8504" /> </g> <g style="fill:none; stroke:#000000" stroke-width="1"> <path d="M953,3920 L1053,3907" /> </g> <g style="fill:none; stroke:#000000" stroke-width="1"> <path d="M1896,2068 L1896,1998 M1861,2033 L1931,2033" /> </g> </svg> </SHAPE> </PIECE>
Example of Marker XML file
<MARKER> <OPTITEX>11.0.1105.0</OPTITEX> <UNITS LINEAR="inch" SQUARE="sq.cm" /> <DETECTED_INTERSECTION>0</DETECTED_INTERSECTION> <NAME>Just table</NAME> <FILENAME>C:\Program Files (x86)\OptiTex 9\PDS and Mark Examples\Marker examples\Dress.dsp</FILENAME> <DATE>02.11.10</DATE> <LENGTH>300.3012</LENGTH> <WIDTH>52.0000</WIDTH> <EFFICIENCY>82.1813</EFFICIENCY> <SUM_PERIMETER>3392.1595</SUM_PERIMETER> <NB_OF_PLIES>1</NB_OF_PLIES> <LAYOUT_MODE>Single</LAYOUT_MODE> <FOLDING>none</FOLDING> <STRIPES> <VERTICAL STEP="10.0000" ANGLE="0.0" OFFSET="0.0000" /> <HORIZONTAL STEP="10.0000" ANGLE="0.0" OFFSET="0.0000" /> </STRIPES> <INTERNALS> <CUT> <QUANTITY>20</QUANTITY> <SUM_LENGTH>24.7617</SUM_LENGTH> </CUT> </INTERNALS> <NOTCHES> <PUNCH> <QUANTITY>70</QUANTITY> <SUM_LENGTH>44.0591</SUM_LENGTH> </PUNCH> </NOTCHES> <STYLE> <NAME /> <FILENAME>C:\TEXWRK\POLYTECH\DRESS10.DSN</FILENAME> <MATERIAL>A</MATERIAL> <SIZE> <NAME>S</NAME> <NB_OF_SETS>3</NB_OF_SETS> <SUM_AREA>22907.2944</SUM_AREA> <SUM_PERIMETER>986.5621</SUM_PERIMETER> <PIECE> <NAME>FRONT-1</NAME> <CODE /> <MATERIAL>A</MATERIAL> <GEOM_INFO SIZE_X="32.7390" SIZE_Y="10.8750" AREA="1702.7114" PERIMETER="81.8183" />
<BUFFER>0.0000</BUFFER> <ORDER_INFO NESTED="6" TOTAL="6" QUANT="3,3,0,0" />
<NESTING_ENABLES ROTATION="180 deg." OPPOSITE="Up/Down" TILT="0 deg." FLIP="no" FOLD="none" />
<MATCH> <REL X="125.6987" Y="139.1464" DIR="XY" ID="3" />
<REL X="150.4283" Y="143.0622" DIR="XY" ID="12" />
</MATCH> <PLACED> <POSITION X-CENTER="16.3773" Y-CENTER="46.2116" ANGLE="0.0" FLIP="no" />
<POSITION X-CENTER="49.0713" Y-CENTER="45.5286" ANGLE="0.0" FLIP="no" />
<POSITION X-CENTER="184.8301" Y-CENTER="5.4450" ANGLE="0.0" FLIP="down" />
<POSITION X-CENTER="185.1297" Y-CENTER="13.1651" ANGLE="-180.0" FLIP="down" />
<POSITION X-CENTER="184.4456" Y-CENTER="24.0463" ANGLE="0.0" FLIP="down" />
<POSITION X-CENTER="217.5771" Y-CENTER="5.4449" ANGLE="-180.0" FLIP="no" />
</PLACED> <SHAPE FACTOR="0.05"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="4.16cm"
height="1.38cm" viewBox="0 0 8318 2764"> <polygon fill="#e9ffda" comment="FRONT-1" stroke="#402b2b" stroke-width="1" points="8315,1 8317,686
8313,921 8297,1290 8261,1817 8227,2211 8182,2602 8161,2763 7577,2692 7261,2641 6889,2567 6371,2453
5907,2338 5148,2142 4237,1889 4052,1842 4000,1832 3908,1817 3868,1813 3801,1810 3771,1810
3714,1816 3637,1829 3446,1866 3334,1894 3287,1908 2846,2055 2783,2072 2589,2116 2457,2140
2244,2167 1963,2192 1901,2074 1877,2051 1853,2034 1820,2016 1775,1995 1635,1936 1609,1928
1556,1914 1467,1899 1398,1891 1317,1887 1233,1886 1065,1891 814,1909 312,1970 1,959 435,820
506,792 736,689 760,675 806,644 848,611 868,593 887,575 923,537 955,497 969,476 994,436 1004,416
1021,378 1032,341 1047,270 1069,120 1076,1" /> <g style="fill:none; stroke:#000000" stroke-width="2"> <path d="M2033,1046 L2033,946 M1983,996 L2084,996" /> </g>
<g style="fill:none; stroke:#000000" stroke-width="2">
<path d="M2084,996 L2077,971 L2058,952 L2033,946 L2008,952 L1990,971 L1983,996 L1990,1021
L2008,1039 L2033,1046 L2058,1039 L2077,1021 Z" /> </g> <g style="fill:none; stroke:#000000" stroke-width="2"> <path d="M3760,1811 L3756,1711" /> </g> <g style="fill:none; stroke:#000000" stroke-width="2"> <path d="M8315,1 L8268,45" /> </g> </svg> </SHAPE> </PIECE> <PIECE> <PIECE> </SIZE> <SIZE> <SIZE> </STYLE> <VIEW FACTOR="0.03"> </MARKER>