public void PythonTraverseComponent_for_links(Component2 swComp, long nLevel, ref string asciitext, ref MathTransform roottrasf)
{
// Scan assembly features and save mating info
if (nLevel > 1)
{
Feature swFeat = (Feature)swComp.FirstFeature();
PythonTraverseFeatures_for_links(swFeat, nLevel, ref asciitext, ref roottrasf, ref swComp);
}
// Recursive scan of subassemblies
object[] vChildComp;
Component2 swChildComp;
vChildComp = (object[])swComp.GetChildren();
for (long i = 0; i < vChildComp.Length; i++)
{
swChildComp = (Component2)vChildComp[i];
if (swChildComp.Solving == (int)swComponentSolvingOption_e.swComponentFlexibleSolving)
PythonTraverseComponent_for_links(swChildComp, nLevel + 1, ref asciitext, ref roottrasf);
}
}