Select chain method in API using C#

Hi guys,

Does anyone know how to select chain in API? I found a method on it but it looks like it only works on 2012, right now I am using solidworks 2011 and it does not support the select chain of it. Any suggestion or ideas would be appreciated. Thanks in advance.

Here is the sample code that I saw but I cannot see the method of Select chain in sketchsegment.

            Part = (ModelDoc2)swApp.ActiveDoc;
            SelMgr = (
SelectionMgr)Part.SelectionManager;
            SelData = (
SelectData)SelMgr.CreateSelectData();
            boolstatus = Part.Extension.SelectByID2(
"Line3@Sketch2", "EXTSKETCHSEGMENT", -0.01022262320328, 0.01646364019604, 0, false, 0, null, 0);
            sketchSegment = (
SketchSegment)SelMgr.GetSelectedObject6(1, -1);
            boolstatus = sketchSegment.SelectChain(
true, SelData);

Regards,

Jhon

SolidworksApi macros