ChronoEngine_SwAddin.SWTaskpaneHost.PythonTraverseComponent_for_links C# (CSharp) Метод

PythonTraverseComponent_for_links() публичный Метод

public PythonTraverseComponent_for_links ( Component2 swComp, long nLevel, string &asciitext, MathTransform &roottrasf ) : void
swComp Component2
nLevel long
asciitext string
roottrasf MathTransform
Результат void
        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);
            }
        }