0 Replies Latest reply on Aug 12, 2014 11:08 PM by Allen Liu

    How to get point from selected cruve edge by api?

    Allen Liu

      When selected  edge, then  how to get points form selected curve edge?

      I can get start and end Vertex. But I don't know how to get curve edge of the center point.

      Then using center point with start's vertex to get another same distance 2 points.

      Could you can give me a hint?




          swSelectType_e selectionType = (swSelectType_e)selectionMgr.GetSelectedObjectType3(1, -1);

          object entity = (object)selectionMgr.GetSelectedObject6(1, -1);


          switch (selectionType)


               Edge swedge = (Edge)entity;

               Curve swcur = (Curve)swedge.GetCurve();   


               //get start and end vertex

               Vertex startVertex = swedge.GetStartVertex();

               Vertex endVertex = swedge.GetEndVertex();


              //  how to do get another points?