These following examples will demonstrate using Object selection, filters, design modifications and finally output results to a Workspace files (*.wrk)
- Note
- AutoLoad EDA/CAD files: Whenever Matrix Import arrays are not defined (like GERBER array, ODB++, etc.), by default, all files inside the active folder will be AutoLoaded. For more information on this ability AutoLoad Array
Copy and Transform
Select all objects and make a copy that is transformed by (3,-3) inches. Save results to a Workspace file (*.wrk)

XML Example:
<!--
##########################################
## Sample Matrix code
##########################################
-->
<NumericalMatrix>
<SELECTION>
<Name>Set1</Name>
<JOB>@active</JOB>
<SELECT_ALL/>
</SELECTION>
<TRANSFORM>
<JOB>@active</JOB>
<UNITS>INCH</UNITS>
<COPY>3,-3,Set1</COPY>
</TRANSFORM>
<SERIALIZE>
<FILE>myWorkspaces/example1-1.wrk</FILE>
</SERIALIZE>
</NumericalMatrix>
Using the Selection Filter
Select Mask layers and make a copy that is transformed by (3,-3) inches. Save results to a Workspace file (*.wrk)

XML example:
<!--
##########################################
## Sample Matrix code
##########################################
-->
<NumericalMatrix>
<FILTER>
<NAME>MyMaskLayers</Name>
<JOB>@active</JOB>
<LAYERS>[Mask]</LAYERS>
</FILTER>
<SELECTION>
<Name>Set1</Name>
<Filter>MyMaskLayers</Filter>
<JOB>@active</JOB>
<SELECT_ALL/>
</SELECTION>
<TRANSFORM>
<JOB>@active</JOB>
<UNITS>INCH</UNITS>
<COPY>3,-3,Set1</COPY>
</TRANSFORM>
<SERIALIZE>
<FILE>myWorkspaces/example1-2.wrk</FILE>
</SERIALIZE>
</NumericalMatrix>
Move Rectangular Objects on Top layer - less than 0.3mm width
Select filtered objects and move to the right by 180 mm. Save results to a Workspace file (*.wrk)

XML example:
<!--
##########################################
## Sample Matrix code
##########################################
# 1. The filter array is unnamed - the default filter will be used.
# 2. Units may be directly type cast in the filter array
-->
<NumericalMatrix>
<FILTER>
<JOB>@active</JOB>
<LAYERS>[Top]</LAYERS>
<!-- Select Objects using an Aperture with a Rectangle width less than 0.3mm -->
<APERTURES>rectangle,width;0.3mm</APERTURES>
</FILTER>
<!-- Missing "Filter=" becuase the default filter will be used. -->
<SELECTION>
<Name>Set1</Name>
<JOB>@active</JOB>
<SELECT_ALL/>
</SELECTION>
<TRANSFORM>
<JOB>@active</JOB>
<UNITS>MM</UNITS>
<MOVE>180,0,Set1</MOVE>
</TRANSFORM>
<SERIALIZE>
<FILE>myWorkspaces/example1-3.wrk</FILE>
</SERIALIZE>
</NumericalMatrix>