public void Set_Init() { ld = new LoadDeflection(AST_DOC_ORG, pbLoadDeflection); cmbLoadCase.Items.Clear(); for (int j = 0; j <= ld.MaxLoadCase; j++) { cmbLoadCase.Items.Add(j); } //SetLoadIndex(1); if (AST_DOC_ORG.IsDynamicLoad) { AST_DOC_ORG.DrawMemberDetails(MainDoc, 1); } if (MainDoc != null && AST_DOC_ORG.IsMovingLoad) { MovingLoad_Initialize(MainDoc, AST_DOC_ORG.FileName); } if (AST_DOC_ORG.IsDynamicLoad) { this.Text = "EIGEN VALUE ANALYSIS"; //lblLoadCase.Text = "EIGEN VALUE"; } else { this.Text = "MOVING LOAD DISPLAY"; //lblLoadCase.Text = "LOAD CASE"; } cmbInterval.SelectedIndex = 0; ////if (AST_DOC_ORG.IsMovingLoad) //// AST_DOC_ORG.Draw_Main_MemberDetails(MainDoc, 1); //cmbLoadCase.SelectedIndex = -1; //cmbLoadCase.SelectedIndex = 0; //SetLoadIndex(1); cmbLoadCase.SelectedIndex = 1; //frmMovingForces f = new frmMovingForces(doc, AST_DOC_ORG.FileName); //f.Owner = this; //f.Show(); if (AST_DOC_ORG.IsMovingLoad) { this.Height = 107; } else { this.Height = 79; } VectorDraw.Professional.ActionUtilities.vdCommandAction.View3D_VTop(MainDoc); }
public void Set_Init() { ld = new LoadDeflection(AST_DOC_ORG, pbLoadDeflection); cmbLoadCase.Items.Clear(); for (int j = 0; j <= ld.MaxLoadCase; j++) { cmbLoadCase.Items.Add(j); } SetLoadIndex(1); if (AST_DOC_ORG.IsDynamicLoad) { AST_DOC_ORG.DrawMemberDetails(MainDoc, 1); } }
private void cmbLoadCase_SelectedIndexChanged(object sender, EventArgs e) { //astDoc.Members.DrawMember(mainDoc); int loadCase = int.Parse(cmbLoadCase.Text); //if (!astDoc.IsMovingLoad) astDoc.DrawMemberDetails(mainDoc, LoadCase); //if (loadCase == 1) //{ // ASTDoc_Load1.Members.DrawMember(mainDoc); //} //if (loadCase == 2) //{ // ASTDoc_Load2.Members.DrawMember(mainDoc); //} //if (loadCase == 3) //{ // ASTDoc_Load3.Members.DrawMember(mainDoc); //} SetWork(); }
public void ShowMemberLoadCase() { int MemNo = MemberNo; int mIndx = astDoc.Members.IndexOf(MemNo); astDoc.DrawMemberDetails(Maindoc, LoadCase); if (mIndx != -1) { if (Maindoc.ActiveLayOut.Entities.FindItem(cirMember)) { Maindoc.ActiveLayOut.Entities.RemoveItem(cirMember); } //cirMember = new vdCircle(); //cirMember.SetUnRegisterDocument(Maindoc); //cirMember.setDocumentDefaults(); //cirMember.PenColor = new vdColor(Color.Orange); //cirMember.Center = astDoc.Members[mIndx].StartNode.Point; //cirMember.Radius = 0.18d; //cirMember.Thickness = gPoint.Distance3D(astDoc.Members[mIndx].StartNode.Point, // astDoc.Members[mIndx].EndNode.Point); //cirMember.ExtrusionVector = Vector.CreateExtrusion(astDoc.Members[mIndx].StartNode.Point, // astDoc.Members[mIndx].EndNode.Point); //Maindoc.ActiveLayOut.Entities.AddItem(cirMember); MemberDoc.ActiveLayOut.Entities.RemoveAll(); MemberLoadDoc.ActiveLayOut.Entities.RemoveAll(); MemberJointLoadDoc.ActiveLayOut.Entities.RemoveAll(); astDoc.Members.DrawMember(astDoc.Members[mIndx], MemberDoc); astDoc.Members.DrawMember(astDoc.Members[mIndx], MemberLoadDoc); astDoc.Members.DrawMember(astDoc.Members[mIndx], MemberJointLoadDoc); mIndx = astDoc.MemberLoads.IndexOf(MemberNo, LoadCase); if (mIndx != -1) { astDoc.MemberLoads.DrawMemberLoad(MemberLoadDoc, astDoc.MemberLoads[mIndx]); } mIndx = astDoc.JointLoads.IndexOf(astDoc.Members[astDoc.Members.IndexOf(MemberNo)].StartNode.NodeNo, LoadCase); if (mIndx != -1) { astDoc.JointLoads.DrawJointLoads(MemberJointLoadDoc, astDoc.JointLoads[mIndx]); } mIndx = astDoc.JointLoads.IndexOf(astDoc.Members[astDoc.Members.IndexOf(MemberNo)].EndNode.NodeNo, LoadCase); if (mIndx != -1) { astDoc.JointLoads.DrawJointLoads(MemberJointLoadDoc, astDoc.JointLoads[mIndx]); } VectorDraw.Professional.ActionUtilities.vdCommandAction.View3D_VTop(MemberDoc); VectorDraw.Professional.ActionUtilities.vdCommandAction.View3D_VTop(MemberLoadDoc); VectorDraw.Professional.ActionUtilities.vdCommandAction.View3D_VTop(MemberJointLoadDoc); Maindoc.Redraw(true); } }