//-------------------------------------------------------------------------------------- CSS & HTML -- public new static string GetCssTree() { string rtn = ""; rtn += GetCssRoot(); rtn += DatabaseBox.GetCssTree(); rtn += SectionBox.GetCssTree(); return(rtn); }
public void AluminumShapeReturnsLocalBucklingStressF_b() { //6063,T6,Up to 1,extrusion AluminumMaterial mat = new AluminumMaterial("6063", "T6", "Up to 1", "extrusion"); SectionBox sb = new SectionBox(null, 12, 4, 0.25, 0.25); AluminumSection alSec = new AluminumSection(mat, sb); AluminumFlexuralMember m = new AluminumFlexuralMember(alSec); FlexuralLocalBucklingElement lbe = new FlexuralLocalBucklingElement(mat, 7, 0.25, LateralSupportType.OneEdge, 100, 80, Aluminum.AA.Entities.WeldCase.NotAffected); double F_b = m.GetLocalBucklingFlexuralCriticalStress(7, 0.25, LateralSupportType.OneEdge, Common.Section.Interfaces.FlexuralCompressionFiberPosition.Top, Aluminum.AA.Entities.WeldCase.NotAffected).Value; double refValue = 9.95; double actualTolerance = EvaluateActualTolerance(F_b, refValue); Assert.LessOrEqual(actualTolerance, tolerance); }
public void OnBeginExport() { StopMetadataExport(); foreach (var Link in RootCache.LinkedDocumentsCache.Values) { if (ModifiedLinkedDocuments.Contains(Link.SourceDocument)) { Link.SetAllElementsModified(); } } // Handle section boxes. FilteredElementCollector Collector = new FilteredElementCollector(RootCache.SourceDocument, RootCache.SourceDocument.ActiveView.Id); IList <Element> SectionBoxes = Collector.OfCategory(BuiltInCategory.OST_SectionBox).ToElements(); foreach (var SectionBox in SectionBoxes) { if (!RootCache.ModifiedElements.Contains(SectionBox.Id)) { continue; } // This section box was modified, need to make all elements it intersects dirty, so they // can be re-exported. BoundingBoxXYZ BBox = SectionBox.get_BoundingBox(RootCache.SourceDocument.ActiveView); ElementFilter IntersectFilterStart = new BoundingBoxIntersectsFilter(new Outline(BBox.Min, BBox.Max)); ICollection <ElementId> IntersectedElements = new FilteredElementCollector(RootCache.SourceDocument).WherePasses(IntersectFilterStart).ToElementIds(); foreach (var ElemId in IntersectedElements) { if (!RootCache.ModifiedElements.Contains(ElemId)) { RootCache.ModifiedElements.Add(ElemId); } } } }
private void btnSubmit_Click(object sender, EventArgs e) { if (!isFieldEmpty()) { MatrixLinQDataContext con = new MatrixLinQDataContext(); Student s = new Student(); s.sName = txtName.Text; s.sFatherName = txtFather.Text; s.sMotherName = txtMother.Text; s.sContactNo = txtContact.Text; s.sGender = gender.SelectedItem.ToString(); s.sAdress = txtAddress.Text; s.sDateOfBirth = DoB.Value.ToString("dd/MM/yyyy"); s.sJoiningDate = JoiningDate.Value.ToString("dd/MM/yyyy"); s.sSchool = txtSchools.Text; s.sClass = ClassBox.SelectedItem.ToString(); s.sSection = SectionBox.GetItemText(SectionBox.SelectedItem); s.sFees = int.Parse(txtFees.Text); con.Students.InsertOnSubmit(s); con.SubmitChanges(); MessageBox.Show("New Student Added"); } }