Plane Midpoint Relationship

I am creating a cylindrical part, so far I have managed to draw a circle and add a dimension to it but I would like to add a connect relationship between the center of the circle and the midpoint of a plane.


So far I have not been able to get it to work.


I have looked at it through SE Spy and can't see what type of keypoint has been used on the plane.


my code for the relationship below.


objRelations.AddKeypoint(objCircle, igCircleCenter, seXYPlane, igLineMiddle)


Posted by: James Singleton
Post date: 4/19/2006 7:52:44 PM


RE: Plane Midpoint Relationship

Ok, I have finally found the solution .


In order to get any keypoints on the reference plane you have to use the ProjectRefPlane method to project the line onto the plane that you are currently working on (this does not actually create any geometry on screen). This returns a Line2D object which you can then get the keypoints of.


Posted by: James Singleton
Post date: 4/25/2006 4:46:50 AM