AnsweredAssumed Answered

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

Question asked by Prarthana Bataju on May 19, 2016

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

Outcomes