KennyJ
07-27-2010, 01:11 PM
Hello Everyone,
I am about to start my first attempt at coding this but a little push in the right direction would help to get me started. My goal is to create a macro that will layout holes on a solid for me. Example: I create a solid lets say a 10" x 10" x 1/2" and on that solid I need circles or holes at points given in an excel spreadsheet.
1. I want to create the solid myself manually.
2. Then click on a corner of it to tell the macro that that's 0,0. 3. Then the macro will read the excel sheet Xcord in column A Ycord in column B and place the circle which diameter is given in column C on that point.
Thanks for any help in advance.
I am very new to using VBA in AutoCAD.
Here is a snippet of my spreadsheet.
XLOC YLOC Hole Size
0.575 2.77 0.067
0.455 2.77 0.067
0.575 2.89 0.067
0.455 2.89 0.067
6.735 3.405 0.067
I am about to start my first attempt at coding this but a little push in the right direction would help to get me started. My goal is to create a macro that will layout holes on a solid for me. Example: I create a solid lets say a 10" x 10" x 1/2" and on that solid I need circles or holes at points given in an excel spreadsheet.
1. I want to create the solid myself manually.
2. Then click on a corner of it to tell the macro that that's 0,0. 3. Then the macro will read the excel sheet Xcord in column A Ycord in column B and place the circle which diameter is given in column C on that point.
Thanks for any help in advance.
I am very new to using VBA in AutoCAD.
Here is a snippet of my spreadsheet.
XLOC YLOC Hole Size
0.575 2.77 0.067
0.455 2.77 0.067
0.575 2.89 0.067
0.455 2.89 0.067
6.735 3.405 0.067