ChronoEngine_SwAddin.SWTaskpaneHost.PythonTraverseFeatures_for_links C# (CSharp) Method

PythonTraverseFeatures_for_links() public method

public PythonTraverseFeatures_for_links ( Feature swFeat, long nLevel, string &asciitext, MathTransform &roottrasf, Component2 &assemblyofmates ) : void
swFeat Feature
nLevel long
asciitext string
roottrasf MathTransform
assemblyofmates Component2
return void
        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
        }