<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://macros.gibbscam.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jeffb</id>
	<title>Macros Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://macros.gibbscam.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jeffb"/>
	<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Special:Contributions/Jeffb"/>
	<updated>2026-12-05T09:33:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Custom_Drill_Cycles&amp;diff=6609</id>
		<title>Category:Custom Drill Cycles</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Custom_Drill_Cycles&amp;diff=6609"/>
		<updated>2011-09-23T23:37:39Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|{{Up}}]]&lt;br /&gt;
&lt;br /&gt;
Custom Drill Cycles require one set of macros for each cycle.&amp;lt;br&amp;gt;&lt;br /&gt;
In order to use custom cycles, you must first define the name of the cycle in the MDD.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Each Custom Drill Cycle definition contains the cycle name (seen on the dropdown menu of the drill dialog)&amp;lt;br&amp;gt;&lt;br /&gt;
and the cycle folder name. This folder name is used to define the location of the custom macros.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Custom drill cycle macros are located in the Program Data folder, in the folder that is specific to the version of GibbsCAM&amp;lt;br&amp;gt;&lt;br /&gt;
that you are running. In here you will find the &amp;quot;Macros\CustomDrillCycles&amp;quot; folder. It is in this folder that you need to create&amp;lt;br&amp;gt;&lt;br /&gt;
one folder for each Custom Drill Cycle, using a folder name that matches the custom cycle definition in the MDD.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Each Custom Drill Cycle macro folder must contain the following files (with these exact filenames)&amp;lt;br&amp;gt;&lt;br /&gt;
DefineData.txt&amp;lt;br&amp;gt;&lt;br /&gt;
CycleData.mac&amp;lt;br&amp;gt;&lt;br /&gt;
CycleData.dlg&amp;lt;br&amp;gt;&lt;br /&gt;
ToolPath.mac&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The first file contains a list of the variables used by the cycle, with default values.&amp;lt;br&amp;gt;&lt;br /&gt;
The second file is the macro that is run when you press the Cycle Data button on the Drill Dialog.&amp;lt;br&amp;gt;&lt;br /&gt;
The third file is the dialog definition used by the CycleData macro.&amp;lt;br&amp;gt;&lt;br /&gt;
The fourth file is used to define the toolpath for each hole in the cycle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note: When creating the toolpath, all moves are defined in a CS that has its origin at the start of the hole&amp;lt;br&amp;gt;&lt;br /&gt;
and the depth axis pointing along the axis of the hole. So, for example, a hole that is 3 inches deep will contain&amp;lt;br&amp;gt;&lt;br /&gt;
moves that start at 0, 0, 0 and have a final depth position of at 0, 0, -3.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A minimal macro to create toolpath that simply feeds to the bottom of the hole and rapids out would contain 3 lines:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | get_custom_drill_cycle_data hole_depth, zz || ! the depth of the hole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | add_custom_drill_cycle_path feed_z, zz     || ! feed to depth&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | callback_returncode = 0                    || ! no error&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full list of parameters for the get_custom_drill_cycle_data command is:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | hole_num      || the hole number in the process, first hole will be 1&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | hole_depth    || depth of the hole, will always be negative&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | entry_z       || the entry clear plane height on the drill dialog&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | exit_z        || the exit clear plane height on the drill dialog&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | retract_plane || the retract plane height&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | x             || the x position of the ole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | y             || the y position of the hole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | z             || the z position of the (bottom of) the hole&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full list of parameters for the add_custom_drill_cycle_path command is:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid         || 3 axis rapid move, 3 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_x       || rapid in x direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_y       || rapid in y direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_z       || rapid in z direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_ijk     || 3 axis rapid move with ijk vector, 6 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed          || 3 axis feed move, 3 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_x        || feed in x direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_y        || feed in y direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_z        || feed in z direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_ijk      || 3 axis feed move with ijk vector, 6 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | arc           || arc, 6 values required (xe, ye, ze, xc, yc, dir)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | arc_360       || 360 degree arc, 3 values required (xc, yc, dir)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feedrate      || change feedrate, 1 value required (feedrate)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rpm           || change spindle speed, 1 value required (rpm)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | dwell         || add a dwell, 1 value required (time in seconds)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example macros are available.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling, adjust by Distance.&amp;lt;/b&amp;gt; Input an initial peck depth and a peck reduction amount. The depth of each peck will be&amp;lt;br&amp;gt;&lt;br /&gt;
the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckDistance.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling, adjust Percentage.&amp;lt;/b&amp;gt; Input an initial peck depth and a percentage value. The depth of each peck will be&amp;lt;br&amp;gt;&lt;br /&gt;
the depth of the previous peck, multiplied by this percentage. A minimum peck depth is also provided for.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckPercent.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Fagor Style Variable Peck Drilling.&amp;lt;/b&amp;gt; Input an initial peck depth and a peck reduction amount. The depth of each peck&amp;lt;br&amp;gt;&lt;br /&gt;
will be the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.&amp;lt;br&amp;gt;&lt;br /&gt;
An additional cycle option provides for a full out retract after a given number of pecks.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckFagor.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling with a Fast Feed Retract.&amp;lt;/b&amp;gt; Input the number of pecks or a peck depth. If the peck is based on the number&amp;lt;br&amp;gt;&lt;br /&gt;
pecks it will be calculated over the full depth, or else it will peck at the amount entered. A minimum peck depth is also provided.&amp;lt;br&amp;gt;&lt;br /&gt;
Feedrates for drilling and a fast feed retract are also provided.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckFastfeed.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Tapered Square.&amp;lt;/b&amp;gt; Custom Drill Cycles are not limited to Depth Axis moves. Input a number of pecks. The peck depth will be&amp;lt;br&amp;gt;&lt;br /&gt;
calculated as the total depth divided by the number of pecks. A series of squares will be calculated at each depth, the length of&amp;lt;br&amp;gt;&lt;br /&gt;
each side at the start of the hole will be equal to the tool diameter and the side length will reduce at each depth down to zero&amp;lt;br&amp;gt;&lt;br /&gt;
at the final depth. The tool center will be driven around the square at each depth to created a tapered square hole.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.TaperedSquare.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Chamfer.&amp;lt;/b&amp;gt; Peck Drill, using equal depth pecks, then mill a chamfer around the top of the hole. The inputs are the peck&amp;lt;br&amp;gt;&lt;br /&gt;
depth, the retract distance and chamfer depth. The total hole depth is divided by the peck depth to get the number of pecks.&amp;lt;br&amp;gt;&lt;br /&gt;
The peck depth will be reduced if the result is not a hole number of pecks. The hole will be peck drilled using a partial retract&amp;lt;br&amp;gt;&lt;br /&gt;
by the given retract distance bwteen each peck. After the final depth, the tool is retracted to the top of the hole, minus the&amp;lt;br&amp;gt;&lt;br /&gt;
chamfer depth. A chamfer is then cut using a line and 90 degree arc entry move, 360 degree arc, followed by 90 degree arc&amp;lt;br&amp;gt;&lt;br /&gt;
and line exit moves back to the center of the hole.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckChamfer.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;The following example MDDs that include all of the above Custom Drill Cycles are available.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/Vmill3a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/VMill5a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2 Axis Horizonal Lathe.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/HLathe2a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;The following example part files that show some of the above Custom Drill Cycles are available.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Mill3a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Mill5a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2 Axis Horizonal Lathe.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Lathe2a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;A single zip containing all of the Custom Drill Cycle Macros, the example MDDs and parts files is available here.&amp;lt;/b&amp;gt;&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/AllDownloads.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Custom_Drill_Cycles&amp;diff=6608</id>
		<title>Category:Custom Drill Cycles</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Custom_Drill_Cycles&amp;diff=6608"/>
		<updated>2011-09-23T23:35:23Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|{{Up}}]]&lt;br /&gt;
&lt;br /&gt;
Custom Drill Cycles require one set of macros for each cycle.&amp;lt;br&amp;gt;&lt;br /&gt;
In order to use custom cycles, you must first define the name of the cycle in the MDD.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Each Custom Drill Cycle definition contains the cycle name (seen on the dropdown menu of the drill dialog)&amp;lt;br&amp;gt;&lt;br /&gt;
and the cycle folder name. This folder name is used to define the location of the custom macros.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Custom drill cycle macros are located in the Program Data folder, in the folder that is specific to the version of GibbsCAM&amp;lt;br&amp;gt;&lt;br /&gt;
that you are running. In here you will find the &amp;quot;Macros\CustomDrillCycles&amp;quot; folder. It is in this folder that you need to create&amp;lt;br&amp;gt;&lt;br /&gt;
one folder for each Custom Drill Cycle, using a folder name that matches the custom cycle definition in the MDD.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Each Custom Drill Cycle macro folder must contain the following files (with these exact filenames)&amp;lt;br&amp;gt;&lt;br /&gt;
DefineData.txt&amp;lt;br&amp;gt;&lt;br /&gt;
CycleData.mac&amp;lt;br&amp;gt;&lt;br /&gt;
CycleData.dlg&amp;lt;br&amp;gt;&lt;br /&gt;
ToolPath.mac&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The first file contains a list of the variables used by the cycle, with default values.&amp;lt;br&amp;gt;&lt;br /&gt;
The second file is the macro that is run when you press the Cycle Data button on the Drill Dialog.&amp;lt;br&amp;gt;&lt;br /&gt;
The third file is the dialog definition used by the CycleData macro.&amp;lt;br&amp;gt;&lt;br /&gt;
The fourth file is used to define the toolpath for each hole in the cycle.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Note: When creating the toolpath, all moves are defined in a CS that has its origin at the start of the hole&amp;lt;br&amp;gt;&lt;br /&gt;
and the depth axis pointing along the axis of the hole. So, for example, a hole that is 3 inches deep will contain&amp;lt;br&amp;gt;&lt;br /&gt;
moves that start at 0, 0, 0 and have a final depth position of at 0, 0, -3.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A minimal macro to create toolpath that simply feeds to the bottom of the hole and rapids out would contain 3 lines:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | get_custom_drill_cycle_data hole_depth, zz || ! the depth of the hole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | add_custom_drill_cycle_path feed_z, zz     || ! feed to depth&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | callback_returncode = 0                    || ! no error&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full list of parameters for the get_custom_drill_cycle_data command is:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | hole_num      || the hole number in the process, first hole will be 1&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | hole_depth    || depth of the hole, will always be negative&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | entry_z       || the entry clear plane height on the drill dialog&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | exit_z        || the exit clear plane height on the drill dialog&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | retract_plane || the retract plane height&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | x             || the x position of the ole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | y             || the y position of the hole&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | z             || the z position of the (bottom of) the hole&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The full list of parameters for the add_custom_drill_cycle_path command is:&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid         || 3 axis rapid move, 3 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_x       || rapid in x direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_y       || rapid in y direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_z       || rapid in z direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rapid_ijk     || 3 axis rapid move with ijk vector, 6 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed          || 3 axis feed move, 3 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_x        || feed in x direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_y        || feed in y direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_z        || feed in z direction only, 1 value required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feed_ijk      || 3 axis feed move with ijk vector, 6 values required&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | arc           || arc, 6 values required (xe, ye, ze, xc, yc, dir)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | arc_360       || 360 degree arc, 3 values required (xc, yc, dir)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  |               ||&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | feedrate      || change feedrate, 1 value required (feedrate)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | rpm           || change spindle speed, 1 value required (rpm)&lt;br /&gt;
|-&lt;br /&gt;
| align=&amp;quot;left&amp;quot;  | dwell         || add a dwell, 1 value required (time in seconds)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following example macros are available.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling, adjust by Distance.&amp;lt;/b&amp;gt; Input an initial peck depth and a peck reduction amount. The depth of each peck will be&amp;lt;br&amp;gt;&lt;br /&gt;
the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckDistance.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling, adjust Percentage.&amp;lt;/b&amp;gt; Input an initial peck depth and a percentage value. The depth of each peck will be&amp;lt;br&amp;gt;&lt;br /&gt;
the depth of the previous peck, multiplied by this percentage. A minimum peck depth is also provided for.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckPercent.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Fagor Style Variable Peck Drilling.&amp;lt;/b&amp;gt; Input an initial peck depth and a peck reduction amount. The depth of each peck&amp;lt;br&amp;gt;&lt;br /&gt;
will be the depth of the previous peck, less the peck reduction amount. A minimum peck depth is also provided for.&amp;lt;br&amp;gt;&lt;br /&gt;
An additional cycle option provides for a full out retract after a given number of pecks.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckFagor.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Drilling with a Fast Feed Retract.&amp;lt;/b&amp;gt; Input the number of pecks or a peck depth. If the peck is based on the number&amp;lt;br&amp;gt;&lt;br /&gt;
peck it will be calculated over the full depth, or it will peck at the amount entered. A minimum peck depth is also provided.&amp;lt;br&amp;gt;&lt;br /&gt;
Feedrates for drilling and a fast feed retract are also provided.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckFastFeed.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Tapered Square.&amp;lt;/b&amp;gt; Custom Drill Cycles are not limited to Depth Axis moves. Input a number of pecks. The peck depth will be&amp;lt;br&amp;gt;&lt;br /&gt;
calculated as the total depth divided by the number of pecks. A series of squares will be calculated at each depth, the length of&amp;lt;br&amp;gt;&lt;br /&gt;
each side at the start of the hole will be equal to the tool diameter and the side length will reduce at each depth down to zero&amp;lt;br&amp;gt;&lt;br /&gt;
at the final depth. The tool center will be driven around the square at each depth to created a tapered square hole.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.TaperedSquare.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Peck Chamfer.&amp;lt;/b&amp;gt; Peck Drill, using equal depth pecks, then mill a chamfer around the top of the hole. The inputs are the peck&amp;lt;br&amp;gt;&lt;br /&gt;
depth, the retract distance and chamfer depth. The total hole depth is divided by the peck depth to get the number of pecks.&amp;lt;br&amp;gt;&lt;br /&gt;
The peck depth will be reduced if the result is not a hole number of pecks. The hole will be peck drilled using a partial retract&amp;lt;br&amp;gt;&lt;br /&gt;
by the given retract distance bwteen each peck. After the final depth, the tool is retracted to the top of the hole, minus the&amp;lt;br&amp;gt;&lt;br /&gt;
chamfer depth. A chamfer is then cut using a line and 90 degree arc entry move, 360 degree arc, followed by 90 degree arc&amp;lt;br&amp;gt;&lt;br /&gt;
and line exit moves back to the center of the hole.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/Macros/Gibbs.PeckChamfer.Generic.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;The following example MDDs that include all of the above Custom Drill Cycles are available.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/Vmill3a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/VMill5a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2 Axis Horizonal Lathe.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/MDDs/HLathe2a_CustomDrillCycles.mdd &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;The following example part files that show some of the above Custom Drill Cycles are available.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
3 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Mill3a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5 Axis Vertical Mill.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Mill5a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2 Axis Horizonal Lathe.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/Downloads/PartFiles/Lathe2a.vnc &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;A single zip containing all of the Custom Drill Cycle Macros, the example MDDs and parts files is available here.&amp;lt;/b&amp;gt;&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/CustomDrillCycles/AllDownloads.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6588</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6588"/>
		<updated>2011-06-17T21:45:43Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Work Groups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A zip file containing all of the following examples is available here.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/All_Examples.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/CreateContour.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/GeoPattern.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/GeoTransform.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/DebugSelGeo.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/PrintGeoDataToFile.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/CalcGeoExtents.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateSolids.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/SolidType.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/BagSolids.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateFacePoint.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateFaceNormal.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateEdgeBox.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/UseSavedProcess.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/ShapeMarkers.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/3dProcs.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/5AxisProcs.zip &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Operations/GetOpToolPath.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Operations/ModifyOpPath.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/CS/CsList.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/WG/WGList.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/InchMetric.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/BackupCurrentPart.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/GetMTMData.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Post/RunPost.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Other/RunVB.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Other/Excel.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6587</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6587"/>
		<updated>2011-06-17T21:43:28Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Work Groups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A zip file containing all of the following examples is available here.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/All_Examples.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/CreateContour.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/GeoPattern.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/GeoTransform.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/DebugSelGeo.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/PrintGeoDataToFile.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Geometry/CalcGeoExtents.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateSolids.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/SolidType.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/BagSolids.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateFacePoint.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateFaceNormal.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Solids/CreateEdgeBox.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/UseSavedProcess.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/ShapeMarkers.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/3dProcs.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Processes/5AxisProcs.zip &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Operations/GetOpToolPath.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Operations/ModifyOpPath.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/CS/CsList.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Downloads/WG/WGList.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/InchMetric.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/BackupCurrentPart.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Part/GetMTMData.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Post/RunPost.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Other/RunVB.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/Examples/Downloads/Other/Excel.zip &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6578</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6578"/>
		<updated>2011-06-10T22:04:08Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Custom Drill Cycles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CreateContour &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoTransform &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/DebugSelGeo &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/PrintGeoDataToFile &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CalcGeoExtents &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFacePoint &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFaceNormal &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateEdgeBox &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/ModifyOpPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/InchMetric &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/BackupcurrentPart &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/GetMTMData &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/RunVB &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Other/Excel &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6577</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6577"/>
		<updated>2011-06-10T22:03:38Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /*  */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CreateContour &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoTransform &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/DebugSelGeo &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/PrintGeoDataToFile &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CalcGeoExtents &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFacePoint &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFaceNormal &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateEdgeBox &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/ModifyOpPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/InchMetric &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/BackupcurrentPart &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/GetMTMData &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/RunVB &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Other/Excel &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6576</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6576"/>
		<updated>2011-06-10T22:02:56Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Custom Drill Cycles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CreateContour &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoTransform &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/DebugSelGeo &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/PrintGeoDataToFile &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CalcGeoExtents &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFacePoint &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFaceNormal &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateEdgeBox &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/ModifyOpPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/InchMetric &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/BackupcurrentPart &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/GetMTMData &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/RunVB &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Other/Excel &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&amp;lt;br&amp;gt;&lt;br /&gt;
== ==&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6575</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6575"/>
		<updated>2011-06-10T22:00:18Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Custom Drill Cycles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CreateContour &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoTransform &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/DebugSelGeo &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/PrintGeoDataToFile &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CalcGeoExtents &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFacePoint &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFaceNormal &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateEdgeBox &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/ModifyOpPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/InchMetric &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/BackupcurrentPart &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/GetMTMData &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/RunVB &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Other/Excel &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Custom Drill Cycles==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6574</id>
		<title>Category:Examples</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=Category:Examples&amp;diff=6574"/>
		<updated>2011-06-10T21:59:02Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: /* Custom Drill Cycles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Copy any of these macros into a text file (save it with the .mac suffix).&amp;lt;br&amp;gt;&lt;br /&gt;
You might want to add the command [[TRACE]] ON at the start of the macro to help you follow the macro as it is being executed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Geometry==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Uses a dialog to get the contour dimensions.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CreateContour &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a the same contour, then uses a second dialog to get values for a rectangular grid.&amp;lt;br&amp;gt;&lt;br /&gt;
Make multiple copies of the contour across the grid pattern.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a contour, then transform it using Translate, Rotate, Mirror and Scale.&amp;lt;br&amp;gt;&lt;br /&gt;
Show simple transforms and also duplicate and transform.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoTransform &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. For each element in the list, find the element type&amp;lt;br&amp;gt;&lt;br /&gt;
(line, arc etc) and display the dimensions (start, end, center) of each element.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/DebugSelGeo &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of the selected geometry elements. create a text file and write out the list of elements&lt;br /&gt;
including element type and dimensions (start, end, center).&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/PrintGeoDataToFile &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Geometry/CalcGeoExtents &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Solids==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create several simple solids and change each of them to a different type (stock, fixture etc).&lt;br /&gt;
Display a list of the solids and the type of each one. &lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Show how to move solids into and out of the Body Bag.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a point in the middle of each salected face.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFacePoint &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more faces, on one or more solids. Create a 3D line to represent a surface normal&amp;lt;br&amp;gt;&lt;br /&gt;
from a point in the middle of each salected face on each selected solid.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateFaceNormal &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Select one or more edges, on one or more solids. Calculate the minimum and maximum XYZ values&amp;lt;br&amp;gt;&lt;br /&gt;
of each of the selected edges. Create a 3D wireframe box using these values to enclose the edges.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateEdgeBox &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Processes==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.&amp;lt;br&amp;gt;&lt;br /&gt;
Set the process depths based on the current stock size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a simpl contour. Load a Saved process and then set the shape markers.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with Advanced 3D Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the Advanced 3D process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Working with 5 Axis Processes. Get a list of all current processes.&amp;lt;br&amp;gt;&lt;br /&gt;
For each one, show the 5 Axis process type and display a list of the process data.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs &amp;lt;nowiki&amp;gt;download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Operations==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.&amp;lt;br&amp;gt;&lt;br /&gt;
Output a list of the start and end positions of each line and arc in the toolpath to the text file.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get a list of selected operations. Modify the toolpath associated with each of these operations by splitting&amp;lt;br&amp;gt;&lt;br /&gt;
each line and arc in half and adding small moves at 90 degrees to the path at the mid point.operation.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Operations/ModifyOpPath &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coordinate Systems==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current CS&#039;s. Create a new CS and then show a list of all CS&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Work Groups==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get the list of current WG&#039;s. Create a new WG and then show a list of all WG&#039;s, including the new one.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Part==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Check if the currently opened part is Inch or Metric. Ask if it should be changed to the opposite units.&amp;lt;br&amp;gt;&lt;br /&gt;
Change it, change the stock size and change the current view to zoom full size.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/InchMetric &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Backup the current part using a filename based on the current part filename (with &amp;quot;_backup&amp;quot; added.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/BackupcurrentPart &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Get MTM specific data from the current part. Display the number of flows, toolgroups and spindles.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Part/GetMTMData &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Post Processing==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.&amp;lt;br&amp;gt;&lt;br /&gt;
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use External Applications==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Create a text file containing data to be used by an external application.&amp;lt;br&amp;gt;&lt;br /&gt;
Run this application (simple Visual Basic application included in this example).&amp;lt;br&amp;gt;&lt;br /&gt;
Wait for this application to finish execution (it will read the data file and write a new file).&amp;lt;br&amp;gt;&lt;br /&gt;
Read the data from the file created by this applicastion and use it to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/RunVB &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Open an Excel Spreadsheet and read dfata from a range of cells to represent a list of part numbers.&amp;lt;br&amp;gt;&lt;br /&gt;
Create a dialog containing this list of part numbers. Use the selected part to get more data from Excel.&amp;lt;br&amp;gt;&lt;br /&gt;
use this additional data from Excel to create a contour.&lt;br /&gt;
[https://svn.gibbscam.com/svn/macros/examples/Other/Excel &amp;lt;nowiki&amp;gt;Download&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please, click here to go to the [[:Category:Custom_Drill_Cycles|Custom Drill Cycles]] page for example parts and files.&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
	<entry>
		<id>https://macros.gibbscam.com/index.php?title=MULTIPLY_MATRIX&amp;diff=6514</id>
		<title>MULTIPLY MATRIX</title>
		<link rel="alternate" type="text/html" href="https://macros.gibbscam.com/index.php?title=MULTIPLY_MATRIX&amp;diff=6514"/>
		<updated>2011-03-17T17:29:10Z</updated>

		<summary type="html">&lt;p&gt;Jeffb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:Matrices|{{Up}}]]&lt;br /&gt;
&lt;br /&gt;
{{Command|syntax=MULTIPLY_MATRIX &amp;lt;matrix array 1&amp;gt;, &amp;lt;matrix array 2&amp;gt;, &amp;lt;result matrix&amp;gt;&lt;br /&gt;
|description=:Get a matrix that is the result of multiplying 2 matrices together.&lt;br /&gt;
&lt;br /&gt;
|param1=&amp;lt;matrix array 1&amp;gt;|param1_desc={{parameter_variable_matrix}} for first matrix&lt;br /&gt;
|param2=&amp;lt;matrix array 2&amp;gt;|param2_desc={{parameter_variable_matrix}} for second matrix&lt;br /&gt;
|param3=&amp;lt;result matrix&amp;gt;|param3_desc={{parameter_variable_matrix}} for the result of multiplying first matrix by second matrix&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
:LOCAL M1(12), M2(12), M3(12)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:GET_TRANSLATION_MATRIX M1, 2.5, 0, 0&lt;br /&gt;
:GET_SCALE_MATRIX M2, 3&lt;br /&gt;
:MULTIPLY_MATRIX M1, M2, M3&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:This will get the matrix that is a translation (2,5 in X) multiplied by a scale of 3.&lt;br /&gt;
[[Category:Matrices]]&lt;/div&gt;</summary>
		<author><name>Jeffb</name></author>
	</entry>
</feed>