I am trying to make a macro to place an imported feature onto the center of a selected flat rectangular face. The face is also created using a macro so I know that it will always be normal to ether the X or Z axis with 4 perpendicular edges. I am assuming that I will need to access the ISurface of the face and the ICurve of that surface, but I am not sure which methods to use. At first glance it looks like I would have to traverse the edges of the surface, and find the start, end, and midpoints of the curves but that seems a bit overly complicated.
SolidworksApi macros