ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
CJChris Johnson05/09/2014

Hi All,

I want to create a macro that sketches a line between two selected vertices but don't know where to begin.

Preconditions:

1.) drawing is open with a section view applied to the part.

2.) user has Ctrl selected two vertices.

Post Conditions:

1.) Macro has sketched a line between those two points.

FYI

One of our drafting standards requires drafters to sketch a line across the top of an o-ring groove to indicate that OD doesn't change on either side of the groove.

groove.bmp

so basically how do I?

1.) get the XYZ coordinates of the two selected vertices

2.)sketch a line between them.

seems simple but i don't know how to combine the snippets of code to make it come together.

Thanks for the help!

Chris