I'm having a lot of trouble retrieving the coordinates of a component's vertices in a drawing view. I get the x,y,z coordinates, but they aren't accurate relative to anything (the component, the view or the sheet).
I've tried the math transforms using a couple different methods I've found online to no avail. The transformed coordinates make less sense than the original coordinates. What I don't understand is if I add the x,y coordinates together in the proper fashion... I get the outer dimensions of the component. However, the origin of the component is in the exact center of the component so the x,y dimension should be symmetrical... but they aren't.
I'm completely flustered. In short... I'm getting the visible components in the view (there's only one view, and one component), then getting the visible vertices (swview.getvisibleentities), getting the points for those vertices (swvert.getpoint) and using those points to find the corners of the component. However... there is no correlation between those points and the corners of the component in any space.
Help!
Thanks,
Eric Swartz
SolidworksApi macros