The other day I had to mill some arcs in a part I was making and this spawned the idea for an MoI script: if I added some circles to my model, could I then easily get and export the locations of the centers of those circles? If so, I would have the X,Y coordinates of the holes I needed to cut to interpolate the arcs I wanted to mill. This would also be applicable to a bolt-hole circle pattern if one didn't have a DRO with such a function. I believe that this will only work with MoI v4 and later due to use of properties introduced in v4.
Perhaps a future version of the script will generate leaders or annotations with the coordinates, but this is workable for now.
Basic function:
Export coordinates of center points for selected circles to a text file. Intended as an alternative to computing tool offsets for manual machining operations. Examples: interpolating curves, bolt circles.
Usage:
First add circles and/or arcs representing cuts by the tool to be used then run this script. Script begins with setting the CPlane to correspond to the origin point of the part on the machine. Locations will be listed in the order selected, so select the circles or arcs in the order they would be cut. Conditionally adds origin and center points.
Based on SavePointFile
As this is my first script effort for MoI, it prompts me to reflect upon what Michael has created. It is one thing to create a complex tool that is elegant in its simplicity, but really quite another to also provide a programming environment to extend its functionality. Well done sir!
Added a minor modification to the CenterPoints script to check the MoI version.
For a much simplified version of this script, see http://moi3d.com/forum/index.php?webtag=MOI&msg=9916.22
--Larry
|