for the API gurus
for the API gurus
(OP)
I would like to write a macro or VB program to do this:
1. Select a view in a drawing
2. run macro
3. macro creates a rectangle around the view at 1/8" distance from the extremities of the part.
Is that possible? What API fuctions should I look into?
The view will be a flat pattern of a sheet metal. The resulting drawing will be saved as dwg and will be used to generate the program for a laser cutting machine. At the moment we export the view in AutoCAD and manually draw the box around the part, offset at 1/8" from the extremities. I would like to eliminate AutoCAD from the process but creating of the box in SW is a little harder than in AutoCAD.
1. Select a view in a drawing
2. run macro
3. macro creates a rectangle around the view at 1/8" distance from the extremities of the part.
Is that possible? What API fuctions should I look into?
The view will be a flat pattern of a sheet metal. The resulting drawing will be saved as dwg and will be used to generate the program for a laser cutting machine. At the moment we export the view in AutoCAD and manually draw the box around the part, offset at 1/8" from the extremities. I would like to eliminate AutoCAD from the process but creating of the box in SW is a little harder than in AutoCAD.






RE: for the API gurus
Why not create a dwg without a format and send to cutting?
If you need a macro, record it adding the lines, dim them, then hide dims, save macro.
Chris
Systems Analyst
SolidWorks/PDMWorks 05
AutoCAD 05
ctopher's home site (updated 06-21-05)
FAQ559-1100
FAQ559-716