0 Replies Latest reply on May 19, 2016 8:32 PM by Prarthana Bataju

    Extract info from a Sketch Line whether the Line is constraint to Plane or Silhouette Edge using API.

    Prarthana Bataju

      Hi everyone,

       

      How do I extract information from a Sketch Line whether the Line is constraint to Plane or Silhouette Edge using API.

      Using this code I am able to extract the Plane but I couldn't extract the information of Silhouette Edge from it

       

      object[] vEntitiesArr = swSketchRelation.GetDefinitionEntities( );

      foreach (object entityType in vEntitiesArr)

      {

           selectEntity((Entity)entityType); // function call to select Entity  (1)

           Feature pFeature = (Feature)entityType;

          string planeName = pFeature.Name; // gives Plane Name

      }

      But if the Line is constraint to Silhoutte Edge , entityType (1) cannot be selected and throw error.

      Please help me to get the Silhouette Edge information using API..:(

       

      I hope I am able to clarify my problem.

      Regards