Beispiel #1
0
        private void SetAutomesh(Bar bhBar, string name)
        {
            BarAutoMesh barAutoMesh = bhBar.BarAutoMesh();

            if (barAutoMesh != null)
            {
                bool   autoMesh          = barAutoMesh.AutoMesh;
                bool   autoMeshAtPoints  = barAutoMesh.AutoMeshAtPoints;
                bool   autoMeshAtLines   = barAutoMesh.AutoMeshAtLines;
                int    numSegs           = barAutoMesh.NumSegs;
                double autoMeshMaxLength = barAutoMesh.AutoMeshMaxLength;

                if (m_model.FrameObj.SetAutoMesh(name, autoMesh, autoMeshAtPoints, autoMeshAtLines, numSegs, autoMeshMaxLength) != 0)
                {
                    CreatePropertyWarning("AutoMesh", "Bar", name);
                }
            }
        }