ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
TRTodd Richards28/09/2012

All

I am trying to find the command to get the x/y coordinates of sketch points that i create in a Drawing View?

entity points would work equally well (endpoints of lines, end and center points of arcs)

I am attempting to write a macro (API) that will let me gather information about a set of sketch (or entity) points in a drawing view. I would like to be able to make the selection process a part of the macro sequence and have the X, Y coordinates measured from a predifined origin.

The Bigger Picture:

Our shop has a few older milling machines that require the 2D toolpath programming in in X/Y coordinates from a preselected origin of the part outline.

My goal is to be able to create an offset of the part profile (offset would equal the radius of end mill) and gather the X, Y point coordinates of that offset for placement into a table, or add labes to the points that contain their individual coordinates.

Our shop could then program the toolpath line by line.

In the end, what i am attempting to accomplish is very similar to the Hole Table Function in Solidworks drawings. but to be able to use sketch/construction geometry instead of actual part features.

Thanks for any help you can give to get me started, greatly appreciated!