Category:Examples: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
Mikeo (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
Line 30: Line 30:


<br>
<br>
Create a the same contour, then uses a second dialog to get values for a rectangular grid.<br>
Create a the same contour, then uses a second dialog to get values for a rectangular grid.
make multiple copies of the contour across the grid pattern.
Make multiple copies of the contour across the grid pattern.
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern <nowiki>Download</nowiki>]<br>
[https://svn.gibbscam.com/svn/macros/examples/Geometry/GeoPattern <nowiki>Download</nowiki>]<br>


Line 57: Line 57:
==Solids==
==Solids==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids <nowiki>Create Extruded and Revolved Solids. Move them and Boolean them</nowiki>]<br>
Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together.
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType <nowiki>Create Solids and change their type (stock, fixture etc.)</nowiki>]<br>
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids <nowiki>Download</nowiki>]<br>
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids <nowiki>Move Solids in and out of the Body Bag</nowiki>]<br>
 
<br>
Create several simple solids and change each of them to a different type (stock, fixture etc).
Display a list of the solids and the type of each one.
[https://svn.gibbscam.com/svn/macros/examples/Solids/SolidType <nowiki>Download</nowiki>]<br>
 
<br>
Show how to move solids into and out of the Body Bag.
[https://svn.gibbscam.com/svn/macros/examples/Solids/CreateSolids <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 65: Line 73:
==Processes==
==Processes==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess <nowiki>Load a Saved Process and change some of the parameters</nowiki>]<br>
Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size.
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers <nowiki>Set the Shape Markers for a Contour Process</nowiki>]<br>
Set the process depths based on the current stock size.
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs <nowiki>Get and change data for Advanced 3D Processes</nowiki>]<br>
[https://svn.gibbscam.com/svn/macros/examples/Processes/UseSavedProcess <nowiki>Download</nowiki>]<br>
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs <nowiki>Get and change data for 5 Axis Processes</nowiki>]<br>
 
<br>
Create a simpl contour. Load a Saved process and then set the shape markers.
[https://svn.gibbscam.com/svn/macros/examples/Processes/ShapeMarkers <nowiki>Download</nowiki>]<br>
 
<br>
Working with Advanced 3D Processes. Get a list of all current processes.
For each one, show the Advanced 3D process type and display a list of the process data.
[https://svn.gibbscam.com/svn/macros/examples/Processes/3dProcs <nowiki>Download</nowiki>]<br>
 
<br>
Working with 5 Axis Processes. Get a list of all current processes.
For each one, show the 5 Axis process type and display a list of the process data.
[https://svn.gibbscam.com/svn/macros/examples/Processes/5AxisProcs <nowiki>download</nowiki>]<br>
<br>
<br>


Line 74: Line 95:
==Operations==
==Operations==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath <nowiki>Get dimension data for each element of an Operation's Toolpath</nowiki>]<br>
Get a list of selected operations. Create a text file. Get the toolpath associated with each operation.
Output a list of the start and end positions of each line and arc in the toolpath to the text file.
[https://svn.gibbscam.com/svn/macros/examples/Operations/GetOpToolPath <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 80: Line 103:
==Coordinate Systems==
==Coordinate Systems==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList <nowiki>Get and display the current CS list and optionally create a new one</nowiki>]<br>
Get the list of current CS's. Create a new CS and then show a list of all CS's, including the new one.
[https://svn.gibbscam.com/svn/macros/examples/CS/CsList <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 86: Line 110:
==Work Groups==
==Work Groups==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList <nowiki>Get and display the current WG list and optionally create a new one</nowiki>]<br>
Get the list of current WG's. Create a new WG and then show a list of all WG's, including the new one.
[https://svn.gibbscam.com/svn/macros/examples/WG/WGList <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 92: Line 117:
==Post Processing==
==Post Processing==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost <nowiki>Set Post Dialog parameters and run a Post Processor</nowiki>]<br>
Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file.
Show some of the current post parameters (program number, sequence numbers). Change these values and run the post.
[https://svn.gibbscam.com/svn/macros/examples/Post/RunPost <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 98: Line 125:
==Custom Drill Cycles (Mill)==
==Custom Drill Cycles (Mill)==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Mill/VariablePeckDistance <nowiki>Variable Peck, adjust each peck by a given Distance</nowiki>]<br>
Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Distance and Minimum Peck Depth.
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Mill/VariablePeckPercentage <nowiki>Variable Peck, adjust each peck by a Percentage of the previous peck depth</nowiki>]<br>
Each peck will depth will be the calculated as the previous peck depth, minus the adjustment diatance.
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Mill/VariablePeckDistance <nowiki>Download</nowiki>]<br>
 
<br>
Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Percentage and Minimum Peck Depth.
Each peck will depth will be the calculated as a percentage of the previous peck depth.
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Mill/VariablePeckPercentage <nowiki>Download</nowiki>]<br>
<br>
<br>


Line 106: Line 139:
==Custom Drill Cycles (Lathe)==
==Custom Drill Cycles (Lathe)==
<br>
<br>
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Lathe/VariablePeckDistance <nowiki>Variable Peck, adjust each peck by a given Distance</nowiki>]<br>
Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Distance and Minimum Peck Depth.
<br>
Each peck will depth will be the calculated as the previous peck depth, minus the adjustment diatance.
[https://svn.gibbscam.com/svn/macros/examples/CustomDrillCycles/Lathe/VariablePeckDistance <nowiki>Download</nowiki>]<br>

Revision as of 16:26, 15 April 2011

Copy any of these macros into a text file (save it with the .mac suffix).
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.

Modify Op Path
Explode_Shape
Backup_Current_Part
Bag_Solids
Debug_Sel_geo
Get_Commands
Get_MTM_Data
Global_Local
Inch_Metric
Print_Geo_Data_To_File
Solids
Solid_Type
Wg_List
create_edge_box
create_face_normal
create_face_point
contour 2
Process_Data
Tool_Tiles


Geometry


Create a simple contour. Uses a dialog to get the contour dimensions. Download


Create a the same contour, then uses a second dialog to get values for a rectangular grid. Make multiple copies of the contour across the grid pattern. Download


Create a contour, then transform it using Translate, Rotate, Mirror and Scale. Show simple transforms and also duplicate and transform. Download


Get a list of the selected geometry elements. For each element in the list, find the element type (line, arc etc) and display the dimensions (start, end, center) of each element. Download


Get a list of the selected geometry elements. create a text file and write out the list of elements including element type and dimensions (start, end, center). Download


Calculate the extents (minimum and maximum X and Y values) of the selected geometry elements. Download


Solids


Create simple solids by Extruding and Revolving a contour. Move these solids and Union them together. Download


Create several simple solids and change each of them to a different type (stock, fixture etc). Display a list of the solids and the type of each one. Download


Show how to move solids into and out of the Body Bag. Download


Processes


Create a simple contour. Load a Saved Process. Shrink Wrap and then get the current stock size. Set the process depths based on the current stock size. Download


Create a simpl contour. Load a Saved process and then set the shape markers. Download


Working with Advanced 3D Processes. Get a list of all current processes. For each one, show the Advanced 3D process type and display a list of the process data. Download


Working with 5 Axis Processes. Get a list of all current processes. For each one, show the 5 Axis process type and display a list of the process data. download


Operations


Get a list of selected operations. Create a text file. Get the toolpath associated with each operation. Output a list of the start and end positions of each line and arc in the toolpath to the text file. Download


Coordinate Systems


Get the list of current CS's. Create a new CS and then show a list of all CS's, including the new one. Download


Work Groups


Get the list of current WG's. Create a new WG and then show a list of all WG's, including the new one. Download


Post Processing


Use a file dialog to ask the user to select a post processor. Use another dialog to ask for an output file. Show some of the current post parameters (program number, sequence numbers). Change these values and run the post. Download


Custom Drill Cycles (Mill)


Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Distance and Minimum Peck Depth. Each peck will depth will be the calculated as the previous peck depth, minus the adjustment diatance. Download


Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Percentage and Minimum Peck Depth. Each peck will depth will be the calculated as a percentage of the previous peck depth. Download



Custom Drill Cycles (Lathe)


Custom Peck Drill cycle. Create a dialog to input 3 parameters. First Peck Depth, Adjustment Distance and Minimum Peck Depth. Each peck will depth will be the calculated as the previous peck depth, minus the adjustment diatance. Download

This category currently contains no pages or media.