Object Type value

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hello,

 

I try to find symmetric relation2d in a sketch.

My code is :

 

******

 

SolidEdgeFrameworkSupport.Relations2d rl = (SolidEdgeFrameworkSupport.Relations2d)pr.Relations2d;

 

//pr is a SolidEdgePart.Profile

 

foreach (SolidEdgeFrameworkSupport.Relation2d rl1 in rl)
{

 

SolidEdgeFramework.ObjectType relationType = (SolidEdgeFramework.ObjectType)rl1.GetType().InvokeMember("Type", System.Reflection.BindingFlags.GetProperty, null, rl1, null);

Console.WriteLine(" Relation Type : " + relationType);

}

 

******

 

The result with a SheetMetal is :

 

***

 

Relation Type : igKeyPointRelation2d
Relation Type : igColinearRelation2d
Relation Type : igSymmetricRelation2d
Relation Type : igVerticalAlignRelation2d

 

***

 

And a result with a part :

 

***

 

Relation Type : 296913277
Relation Type : igKeyPointRelation2d
Relation Type : igKeyPointRelation2d

 

****

 

The value "296913277" refer to wich type ?

 

Could someone help me please ?

 

 

Regards.

Mahbouba