Is it possible to return/select the center point of a user selected circle in a drawing, with a macro?
If you mean a sketch circle, then yes. Moreover, my guess is that you're actually asking how to do this, if it is possible.
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swSelMgr As SldWorks.SelectionMgr
Dim swSkSeg As SldWorks.SketchSegment
Dim swSkArc As SldWorks.SketchArc
Dim swSkPt As SldWorks.SketchPoint
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set swSelMgr = swModel.SelectionManager
Set swSkSeg = swSelMgr.GetSelectedObject6(1, -1)
Set swSkArc = swSkSeg
Set swSkPt = swSkArc.GetCenterPoint2
SolidWorks API Tutorials
Thank you Keith for your response. Is it possible to select the center of a circle in a drawing view? If so, method would I use? Dave
If you're talking about a sketch circle in a drawing view, then you can use the macro I provided. If you're talking about waking up the center point of a circular edge / face, then no I don't believe there is a way to do this programmatically.
Retrieving data ...