public ASTRAMemberLoad_UDL() { mhatchprops = new vdHatchProperties(); mhatchprops.SetUnRegisterDocument(Document); mhatchprops.FillMode = VdConstFill.VdFillModeSolid; gpEndPoint = new gPoint(); gpStartPoint = new gPoint(); }
public override void InitializeProperties() { mRadius = 1.0d; mhatchprops = null; mAngle = 0.0d; mAngleDifference = VectorDraw.Geometry.Globals.DegreesToRadians(5.0); mInterval = 500; mShowLines = true; base.InitializeProperties(); }
public void Draw_Plan_Moving_Wheel(vdDocument doc, double height, int load_case, double max_x) { Delete_Rects(doc); double x = (double)(load_case * 0.2); double y = 2.0d + height; vdRect rect = new vdRect(); vdHatchProperties hp = new vdHatchProperties(); hp.SetUnRegisterDocument(doc); hp.FillMode = VectorDraw.Professional.Constants.VdConstFill.VdFillModeSolid; hp.FillColor = new vdColor(Color.Black); #region for loop for (int i = 0; i < list[0].Moving_Wheel[0].List_Distance.Count; i++) { if (x > 0 && x < max_x) { for (int z = 0; z < list.Count; z++) { rect = new vdRect(); rect.SetUnRegisterDocument(doc); rect.setDocumentDefaults(); rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[z].Z); rect.Height = height; rect.Width = height + 0.2; rect.HatchProperties = hp; rect.ExtrusionVector = new Vector(0, 1, 0); doc.ActiveLayOut.Entities.AddItem(rect); rect = new vdRect(); rect.SetUnRegisterDocument(doc); rect.setDocumentDefaults(); rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[z].Z + list[z].Moving_Wheel[0].Width); rect.Height = height; rect.Width = height + 0.2; rect.HatchProperties = hp; rect.ExtrusionVector = new Vector(0, 1, 0); doc.ActiveLayOut.Entities.AddItem(rect); } } x -= list[0].Moving_Wheel[0].List_Distance.GetDouble(i); } #endregion /* * if (x > 0 && x < max_x) * { * * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * * x -= 3.0; * if (x > 0 && x < max_x) * { * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * * x -= 3.0; * * if (x > 0 && x < max_x) * { * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * * x -= 4.30; * if (x > 0 && x < max_x) * { * * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * * x -= 1.2; * * if (x > 0 && x < max_x) * { * * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * x -= 3.2; * if (x > 0 && x < max_x) * { * * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * x -= 1.1; * if (x > 0 && x < max_x) * { * * rect = new vdRect(); * rect.SetUnRegisterDocument(doc); * rect.setDocumentDefaults(); * rect.InsertionPoint = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * rect.Height = height; * rect.Width = height; * rect.ExtrusionVector = new Vector(0, 1, 0); * doc.ActiveLayOut.Entities.AddItem(rect); * } * //for (int i = 0; i < list[0].Moving_Wheel[0].List_Distance; i++) * //{ * // cir = new vdCircle(); * // cir.SetUnRegisterDocument(doc); * // cir.setDocumentDefaults(); * // cir.Center = new VectorDraw.Geometry.gPoint(((double)(load_case * 0.2)) - 3.0, 3, list[0].Z); * // cir.Radius = radius; * // doc.ActiveLayOut.Entities.AddItem(cir); * ////} * * /**/ }
public void Draw_Moving_Wheel(vdDocument doc, double radius, int load_case, double max_x, double max_y) { VectorDraw.Professional.Memory.vdMemory.Collect(); vdHatchProperties hp = new vdHatchProperties(); hp.SetUnRegisterDocument(doc); hp.FillMode = VectorDraw.Professional.Constants.VdConstFill.VdFillModeSolid; hp.FillColor = new vdColor(Color.Black); double x = (double)(load_case * 0.2); double y = max_y + radius; vdCircle cir = new vdCircle(); #region for loop for (int i = 0; i < list[0].Moving_Wheel[0].List_Distance.Count; i++) { if (x > 0 && x < max_x) { for (int z = 0; z < list.Count; z++) { cir = new vdCircle(); cir.SetUnRegisterDocument(doc); cir.setDocumentDefaults(); cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[z].Z); cir.Radius = radius; cir.HatchProperties = hp; doc.ActiveLayOut.Entities.AddItem(cir); } } x -= list[0].Moving_Wheel[0].List_Distance.GetDouble(i); } #endregion /* * * if (x > 0 && x < max_x) * { * * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * * x -= 3.0; * if (x > 0 && x < max_x) * { * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * * x -= 3.0; * * if (x > 0 && x < max_x) * { * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * * x -= 4.30; * if (x > 0 && x < max_x) * { * * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * * x -= 1.2; * * if (x > 0 && x < max_x) * { * * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * x -= 3.2; * if (x > 0 && x < max_x) * { * * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * x -= 1.1; * if (x > 0 && x < max_x) * { * * cir = new vdCircle(); * cir.SetUnRegisterDocument(doc); * cir.setDocumentDefaults(); * cir.Center = new VectorDraw.Geometry.gPoint(x, y, list[0].Z); * cir.Radius = radius; * doc.ActiveLayOut.Entities.AddItem(cir); * } * //for (int i = 0; i < list[0].Moving_Wheel[0].List_Distance; i++) * //{ * // cir = new vdCircle(); * // cir.SetUnRegisterDocument(doc); * // cir.setDocumentDefaults(); * // cir.Center = new VectorDraw.Geometry.gPoint(((double)(load_case * 0.2)) - 3.0, 3, list[0].Z); * // cir.Radius = radius; * // doc.ActiveLayOut.Entities.AddItem(cir); * ////} * * /**/ }
public VectorDrawBlink() { mhatchprops = new vdHatchProperties(); mhatchprops.SetUnRegisterDocument(Document); mhatchprops.FillMode = VdConstFill.VdFillModeSolid; }
public ASTRASupportFixed() { mhatchprops = new vdHatchProperties(); mhatchprops.SetUnRegisterDocument(Document); mhatchprops.FillMode = VdConstFill.VdFillModeSolid; }