public void PythonTraverseFeatures_for_links(Feature swFeat, long nLevel, ref string asciitext, ref MathTransform roottrasf, ref Component2 assemblyofmates)
{
Feature swSubFeat;
int num_link = 0;
while ((swFeat != null))
{
// Export mates as constraints
if ((swFeat.GetTypeName2() == "MateGroup") &&
(this.checkBox_constraints.Checked))
{
swSubFeat = (Feature)swFeat.GetFirstSubFeature();
while ((swSubFeat != null))
{
ConvertMates.ConvertMateToPython(ref swSubFeat, ref asciitext, ref mSWApplication, ref saved_parts, ref num_link, ref roottrasf, ref assemblyofmates);
swSubFeat = (Feature)swSubFeat.GetNextSubFeature();
} // end while loop on subfeatures mates
} // end if mate group
swFeat = (Feature)swFeat.GetNextFeature();
} // end while loop on features
}