
Re: Convert Circle Coordinates to Flat Plane
Josh Brady Jun 23, 2015 12:30 PM (in response to Dave Paul)I'm not sure exactly what you are asking. If you have x,y,z of the center and x,y,z of some (other) point along the axis of the circle, that's certainly enough info to define a plane. However, what do you mean "convert coordinates to a normal plane"? You want to create a RefPlane feature in the feature tree that is coincident with the plane of the circle?

Re: Convert Circle Coordinates to Flat Plane
Dave Paul Jun 23, 2015 12:47 PM (in response to Josh Brady)No matter the rotation angle of the circle, I would like to retreive a xy point from the circle as if it was flat (top plane). I have the calculations if the circle was flat and they work correctly. The circle rotated in either the xaxis and/or yaxis is my issue.
For instance on this flange  I would like to place a point anywhere on the inside diameter edge and  with a macro  calculate the position and angle of that point on the circle as if the part was flat on the table.

Re: Convert Circle Coordinates to Flat Plane
Simon Turner Jun 24, 2015 3:37 AM (in response to Dave Paul)You need to choose one point on the circumference of the circle. This will form the X axis of your coordinate system (running from the centre of the circle to that point).
The Z axis is the vector along the axis of the circle.
You can then define the Y axis by crossing the Z axis with the X axis.
Use MathUtility.CreateVector to get MathVector objects for all of these.
Then any point in 3D space can be converted into your new XYZ coordinate system by creating a vector from the circle centre to that point and using MathVector.Dot with the 3 axes.

Re: Convert Circle Coordinates to Flat Plane
Dave Paul Jun 24, 2015 12:20 PM (in response to Simon Turner)I think that's got me where I needed to go.
Thank you Simon.



Re: Convert Circle Coordinates to Flat Plane
Dave Paul Jun 23, 2015 2:05 PM (in response to Josh Brady)Is it possible to apply the top plane coordinate system to that point coordinate data?
GetCoordinateSystem and MathTransform?
