public void DrawPipeDetails(vdDocument doc, DisNetPipeDetails pipeDetails) { //Pipe = 1 //Length = 195.185 m. //Diameter = 0.15 m. //Discharge = 0.0228 m3/s. //POINTS = 54020.713,50675.57,99.228 string txtStr = ""; txtStr = "Pipe = " + pipeDetails.PipeNo.ToString() + "\n\r" + "Length = " + pipeDetails.Length.ToString("0.000") + " m." + "\n\r" + "Diameter = " + pipeDetails.Diameter.ToString("0.00") + " m3/s." + "\n\r" + "Discharge = " + pipeDetails.Discharge.ToString("0.0000") + " m." + "\n\r"; txtStr = "Pipe No: " + pipeDetails.PipeNo.ToString(); vdText txt = new vdText(); txt.Style = new vdTextstyle(); txt.TextString = "Pipe No: " + pipeDetails.PipeNo.ToString(); txt.SetUnRegisterDocument(doc); txt.setDocumentDefaults(); txt.Height = 5.0d; txt.InsertionPoint = new gPoint(pipeDetails.Point.x, pipeDetails.Point.y, pipeDetails.Point.z + 15.0d); //txt.PenColor = new vdColor(Color.Red); txt.Layer = doc.Layers.FindName("PipeData"); doc.ActiveLayOut.Entities.AddItem(txt); }
public frmTextSize(vdDocument document, int selectIndex, ASTRADoc astDoc) { InitializeComponent(); doc = document; selIndex = selectIndex; chkElements.Enabled = (astDoc.Elements.Count > 0); chkSupportFixed.Enabled = false; for (int i = 0; i < astDoc.Supports.Count; i++) { if (astDoc.Supports[i].Option == Support.SupportOption.FIXED) { chkSupportFixed.Enabled = true; break; } } chkSupportPinned.Enabled = false; for (int i = 0; i < astDoc.Supports.Count; i++) { if (astDoc.Supports[i].Option == Support.SupportOption.PINNED) { chkSupportPinned.Enabled = true; break; } } chkJointLoad.Enabled = (astDoc.JointLoads.Count > 0); }
public frmOptions(vdDocument doc) { InitializeComponent(); vdoc = doc; //dplc = dplcol; setting = new Settings(); }
static bool CATCHMENT_COLORFILL(vdDocument vdoc) { CatchmentColorFill col = new CatchmentColorFill(vdoc); col.ColorFill(); return(false); }
public static void CmdBlink(vdDocument doc) { gPoint cen = new gPoint(); doc.Prompt("Origin-Center Point : "); object ret = doc.ActionUtility.getUserPoint(); doc.Prompt(null); if (ret == null || !(ret is gPoint)) { goto error; } cen = ret as gPoint; doc.Prompt("Radius : "); ActionBlink aFig = new ActionBlink(cen, doc.ActiveLayOut); doc.ActionAdd(aFig); StatusCode scode = aFig.WaitToFinish(); doc.Prompt(null); if (scode != VectorDraw.Actions.StatusCode.Success) { goto error; } aFig.Entity.Transformby(doc.User2WorldMatrix); doc.ActionLayout.Entities.AddItem(aFig.Entity); doc.ActionDrawFigure(aFig.Entity); return; error: return; }
public static ulong CreateLayer(vdDocument activeDocument, string layerName, int argbPenColor, string lineType) { try { vdLayer layer = activeDocument.Layers.FindName(layerName); if (null != layer) { activeDocument.Layers.RemoveItem(layer); } vdLayer newlayer = new VectorDraw.Professional.vdPrimaries.vdLayer(); newlayer.Name = layerName; newlayer.PenColor.SystemColor = Color.FromArgb(argbPenColor); if (!string.IsNullOrEmpty(lineType)) { newlayer.LineType = activeDocument.LineTypes.FindName(lineType); } //We set the document where the polyline is going to be added.This is important for the vdPolyline in order to obtain initial properties with setDocumentDefaults. newlayer.SetUnRegisterDocument(activeDocument); newlayer.setDocumentDefaults(); activeDocument.Layers.AddItem(newlayer); return(newlayer.Handle.Value); } catch { return(0); } }
/// <summary> /// This event is used so the vlib files(which are saved in VDML format but with different extension) can be handled and saved by VDF. /// </summary> /// <param name="sender"></param> /// <param name="fileName"></param> /// <param name="success"></param> void vectorDrawBaseControl1_SaveUnknownFileName(object sender, string fileName, out bool success) { success = false; vdDocument doc = sender as vdDocument; if (fileName.EndsWith(".vlib", StringComparison.CurrentCultureIgnoreCase)) { //This is the way to save a file as VDML with a different extension (vlib). System.IO.FileStream fl; try { fl = System.IO.File.Open(fileName, System.IO.FileMode.Create); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } System.IO.MemoryStream VDFStreem; VDFStreem = doc.ToStream(); byte[] bytearray = VDFStreem.ToArray(); fl.Write(bytearray, 0, bytearray.Length); fl.Close(); VDFStreem.Close(); success = true; } }
/// <summary> /// Shows the Purge dialog. /// </summary> /// <param name="doc"></param> public static void Purge(vdDocument doc) { frmPurge purge = new frmPurge(); purge.InitializeDialog(doc); purge.ShowDialog(doc.ActionControl); }
/// <summary> /// This is a method that is used to diplay a custom message to the commandline. /// </summary> /// <param name="doc"></param> /// <param name="description"></param> /// <param name="value"></param> private static void AppendToHistory(vdDocument doc, string description, string value) { doc.Prompt(description); doc.PostCommandActionString(doc.ActionControl, value); doc.ActionUtility.getUserString(); doc.Prompt(null); }
public void RemoveCircle(vdDocument Maindoc) { try { for (int i = 0; i < Maindoc.ActiveLayOut.Entities.Count; i++) { vdCircle cir = Maindoc.ActiveLayOut.Entities[i] as vdCircle; if (cir != null) { cir.Deleted = true; } } Maindoc.ClearEraseItems(); //if (Maindoc.ActiveLayOut.Entities.FindItem(cirMember)) //{ // Maindoc.ActiveLayOut.Entities.RemoveItem(cirMember); //} //for (int i = 0; i < Maindoc.ActiveLayOut.Entities.Count; i++) //{ // if (Maindoc.ActiveLayOut.Entities[i] is vdCircle) // { // if (Maindoc.ActiveLayOut.Entities[i].Layer.Name == "0") // { // Maindoc.ActiveLayOut.Entities.RemoveAt(i); i = -1; // } // } //} Maindoc.Redraw(true); } catch (Exception ex) { } }
public static void CmdDrawMember(vdDocument doc) { //doc.Palette.Background = System.Drawing.Color.White; //doc.Palette.Forground = System.Drawing.Color.Black; //doc.Redraw(true); //JointCoordinateCollection jntCol; //MemberIncidenceCollection memCol; //using (OpenFileDialog ofd = new OpenFileDialog()) //{ // ofd.Title = "SELECT ASTRA INPUT Text File"; // ofd.Filter = "Text Files|*.txt"; // if (ofd.ShowDialog() != DialogResult.Cancel) // { // doc.New(); // ASTRADoc astraDoc = new ASTRADoc(ofd.FileName); // //if (MessageBox.Show("Draw Node and Member No?", "HEADS Viewer", MessageBoxButtons.YesNo) == DialogResult.Yes) // //{ // // astraDoc.Members.DrawNodeMember = true; // //} // //else // //{ // // astraDoc.Members.DrawNodeMember = false; // //} // //astraDoc.Members.DrawMember(doc); // //astraDoc.Supports.DrawSupport(doc); // //doc.Redraw(true); // } //} }
public void DrawMember(MemberIncidence mi, vdDocument doc, double txtSize) { double length, factor; doc.Palette.Background = Color.White; vdLine line = new vdLine(); vdText vtxtMemberNo = new vdText(); line.SetUnRegisterDocument(doc); line.setDocumentDefaults(); vtxtMemberNo.SetUnRegisterDocument(doc); vtxtMemberNo.setDocumentDefaults(); line.PenColor = new vdColor(Color.Black); line.Layer = doc.Layers[0]; doc.Layers[0].Frozen = false; line.StartPoint = mi.StartNode.Point; line.EndPoint = mi.EndNode.Point; line.ToolTip = string.Format("Member No : {0} [Nodes ({1}, {2})]", mi.MemberNo, mi.StartNode.NodeNo, mi.EndNode.NodeNo); doc.ActionLayout.Entities.AddItem(line); length = line.Length(); //factor = 22.2222d; //factor = length / 0.9d; //txtSize = length / factor; //txtSize = GetTextSize(); vtxtMemberNo.TextString = mi.MemberNo.ToString(); vtxtMemberNo.Layer = membersLay; vtxtMemberNo.Height = txtSize; vtxtMemberNo.PenColor = new vdColor(Color.Blue); vtxtMemberNo.InsertionPoint = (mi.StartNode.Point + mi.EndNode.Point) / 2; vtxtMemberNo.Layer = membersLay; vtxtMemberNo.ToolTip = string.Format("Member No : {0} [Nodes ({1}, {2})]", mi.MemberNo, mi.StartNode.NodeNo, mi.EndNode.NodeNo); doc.ActionLayout.Entities.AddItem(vtxtMemberNo); //doc.ZoomAll(); //doc.Redraw(true); }
public void DrawMember_Test(vdDocument doc) { doc.ActiveLayOut.Entities.RemoveAll(); //doc.Redraw(true); //doc.ClearEraseItems(); //nodesLay = new vdLayer(); //membersLay = new vdLayer(); //nodesLay.Name = "Nodes"; //membersLay.Name = "Members"; //nodesLay = doc.Layers.FindName("Nodes") //doc.Layers.AddItem(nodesLay); //doc.Layers.AddItem(membersLay); SetLayers(doc); foreach (MemberIncidence mi in list) { nodesLay.SetUnRegisterDocument(doc); nodesLay.setDocumentDefaults(); doc.Layers.AddItem(nodesLay); DrawMember(mi, doc); //doc.New(); } }
public SLAB01(vdDocument doc) { document = doc; d1 = 0.0d; // Dia of Main Reinforcement d2 = 0.0d; // Dia of Distribution Reinforcement h1 = 0.0d; // Clear Cover of Reinforcement gamma_c = 0.0d; // Unit weight of Concrete gc = 0.0d; // Grade of Concrete l = 0.0d; // Clear Span b1 = 0.0d; b2 = 0.0d; // Thickness of Support wall at start and end w1 = 0.0d; // Weight of Floor Finish + Ceiling Plaster Live Load w2 = 0.0d; // Weight of Live Load dst = 0.0d; // Percent of Distribution Steal sigma_st = 0.0d; // Strength of Streal Reinforcement d1 = 10; d2 = 6; h1 = 15; gamma_c = 25000; gc = 15; l = 2.5; b1 = 250; b2 = 250; w1 = 744; w2 = 2000; Dst = 0.15d; sigma_st = 140.0d; //CalculateProgram("C:\\kSLAB01.txt"); }
public static ulong AddText(vdDocument activeDocument, string textContent, gPoint insertPoint, VdConstVerJust verJust, VdConstHorJust horJust, int TextColor, string fontFile, double textHeight, double widthFactor, VectorDraw.Render.grTextStyleExtra.TextLineFlags textLineFlags, double textRotation, bool ifBold) { //We will create a vdText object and add it to the Active Layout which is the basic Model Layout always existing in a Document. VectorDraw.Professional.vdFigures.vdText onetext = new VectorDraw.Professional.vdFigures.vdText(); //We set the document where the text is going to be added.This is important for the vdText in order to obtain initial properties with setDocumentDefaults. onetext.SetUnRegisterDocument(activeDocument); onetext.setDocumentDefaults(); //The two previus steps are important if a vdFigure object is going to be added to a document. //Now we will change some properties of the text. onetext.PenColor.SystemColor = Color.FromArgb(TextColor); onetext.TextString = textContent; onetext.InsertionPoint = insertPoint; onetext.VerJustify = verJust; onetext.HorJustify = horJust; onetext.TextLine = textLineFlags; onetext.Height = textHeight; onetext.WidthFactor = widthFactor; onetext.Rotation = textRotation; onetext.Bold = ifBold; onetext.Style.FontFile = fontFile; //Now we will add this object to the Entities collection of the Model Layout(ActiveLayout). activeDocument.ActiveLayOut.Entities.AddItem(onetext); return(onetext.Handle.Value); }
/// <summary> /// Shows the printer dialog in order to be used for PDF export. /// </summary> /// <param name="doc"></param> //public static void PDFExport(vdDocument doc) //{ // //doc.FileProperties.PDFExportProperties = vdFileProperties.PDFExportPropertiesFlags.UsePrinterPropertiesWithOutlineText; // vdPrint printer = new vdPrint(doc.ActiveLayOut.Printer); // printer.PrinterName = VectorDraw.Professional.Utilities.vdGlobals.GetFileNameWithoutExtension(doc.FileName) + ".pdf"; // printer.InitializePreviewFormProperties(true, true, false, false); // printer.DialogPreview(); //} #region Block Library /// <summary> /// Shows the blocklibrary Form. /// </summary> /// <param name="doc"></param> public static void LoadBlockLibrary(vdDocument doc) { BlockLibrary lib = new BlockLibrary(); lib.InitializeDialog(doc); lib.ShowDialog(doc.ActionControl); }
public static ulong AddTextByLayer(vdDocument activeDocument, string textContent, gPoint insertPoint, VdConstVerJust verJust, VdConstHorJust horJust, string fontFile, double textHeight, double widthFactor, VectorDraw.Render.grTextStyleExtra.TextLineFlags textLineFlags, double textRotation, bool ifBold) { //We will create a vdText object and add it to the Active Layout which is the basic Model Layout always existing in a Document. VectorDraw.Professional.vdFigures.vdText onetext = new VectorDraw.Professional.vdFigures.vdText(); //We set the document where the text is going to be added.This is important for the vdText in order to obtain initial properties with setDocumentDefaults. onetext.SetUnRegisterDocument(activeDocument); onetext.setDocumentDefaults(); onetext.TextString = textContent; //vdText object with setDocumentDefaults has the STANDARD TextStyle.We will change the font of this textstyle to Verdana. // activeDocument.TextStyles.Standard.FontFile = fontFile; //We set the insertion point depending the width of the Text from the vdFigure's BoundingBox onetext.InsertionPoint = insertPoint; onetext.VerJustify = verJust; onetext.HorJustify = horJust; onetext.TextLine = textLineFlags; onetext.Height = textHeight; onetext.WidthFactor = widthFactor; onetext.Rotation = textRotation; onetext.Bold = ifBold; //Now we will add this object to the Entities collection of the Model Layout(ActiveLayout). activeDocument.ActiveLayOut.Entities.AddItem(onetext); return(onetext.Handle.Value); }
public void Menu(string menu, vdDocument vdDoc) { // _menu = menu.Replace("DD_", "").Trim().TrimEnd().TrimStart(); doc = vdDoc; switch (_menu) { case "JointCoordinates": JointCoordinates(doc); break; case "MemberIncidence": MemberIncidence(doc); break; case "SectionProperties": SectionProperties(doc); break; case "Support": Support(doc); break; } }
public static ulong AddHatchImageToFigure(vdDocument activeDocument, Vertexes vertexs, string toolTip, string imagePath, double hatchScale, vdXProperties xProperties) { //We will create a vdPolyline object and add it to the Active Layout which is the basic Model Layout always existing in a Document. VectorDraw.Professional.vdFigures.vdPolyline onepoly = new VectorDraw.Professional.vdFigures.vdPolyline(); //We set the document where the polyline is going to be added.This is important for the vdPolyline in order to obtain initial properties with setDocumentDefaults. onepoly.SetUnRegisterDocument(activeDocument); onepoly.setDocumentDefaults(); onepoly.ToolTip = toolTip; if (null != xProperties && xProperties.Count > 0) { for (int i = 0; i < xProperties.Count; i++) { onepoly.XProperties.AddItem(xProperties[i]); } } onepoly.VertexList = vertexs; onepoly.Flag = VectorDraw.Professional.Constants.VdConstPlineFlag.PlFlagCLOSE; //Initialize the hatch properties object. onepoly.HatchProperties = new VectorDraw.Professional.vdObjects.vdHatchProperties(); //And change it's properties onepoly.HatchProperties.FillMode = VectorDraw.Professional.Constants.VdConstFill.VdFillModeImage; onepoly.HatchProperties.HatchScale = hatchScale; onepoly.HatchProperties.DrawBoundary = false; string path = System.IO.Path.GetDirectoryName(Application.ExecutablePath) + "\\" + imagePath; onepoly.HatchProperties.HatchImage = activeDocument.Images.Add(path); activeDocument.ActiveLayOut.Entities.AddItem(onepoly); return(onepoly.Handle.Value); }
public frmNodeGrid(ASTRADoc astDoc, vdDocument doc) { InitializeComponent(); this.astDoc = astDoc; vdoc = doc; SetGridWithNode(); }
/// <summary> /// 解析Xml /// </summary> /// <param name="xml"></param> /// <param name="document"></param> /// <returns></returns> public List <MatchItem> ParseXml(string xml, vdDocument document) { var result = new List <MatchItem>(); if (string.IsNullOrEmpty(xml)) { return(result); } try { var setting = new XmlReaderSettings { IgnoreWhitespace = true }; var reader = XmlReader.Create(new StringReader(xml), setting); while (reader.Read()) { //如果不是Field节点 if (reader.NodeType == XmlNodeType.Element && reader.Name == nameof(MatchItem)) { var matchItem = new MatchItem(); matchItem.ReadXml(reader, document); result.Add(matchItem); } } reader.Dispose(); } catch (XmlException ex) { Console.WriteLine(ex.Message); } return(result); }
public Axial(vdDocument vdoc) { //X = Y = Z = 0.0; vDoc = vdoc; Wheel1 = new vdCircle(); Wheel1.SetUnRegisterDocument(vdoc); Wheel1.setDocumentDefaults(); Wheel1.Radius = WheelRadius; vdoc.ActiveLayOut.Entities.AddItem(Wheel1); Wheel2 = new vdCircle(); Wheel2.SetUnRegisterDocument(vdoc); Wheel2.setDocumentDefaults(); Wheel2.Radius = WheelRadius; vdoc.ActiveLayOut.Entities.AddItem(Wheel2); Axis = new vdLine(); Axis.SetUnRegisterDocument(vdoc); Axis.setDocumentDefaults(); Axis.StartPoint = Wheel1.Center; Axis.EndPoint = Wheel2.Center; vdoc.ActiveLayOut.Entities.AddItem(Axis); WheelRadius = (Width == 0.0) ? 0.2d : Width / 10.0; }
static bool CATCHMENT_SampleDrawingTopography(vdDocument vdoc) { string file_p = Path.Combine(Application.StartupPath, "DRAWINGS\\Catchment\\Contour_Drawing.vdml"); if (!File.Exists(file_p)) { file_p = Path.Combine(Application.StartupPath, "DRAWINGS\\Catchment\\Contour.vdml"); } if (!File.Exists(file_p)) { file_p = Path.Combine(Application.StartupPath, "DRAWINGS\\Catchment\\Contours.vdml"); } if (File.Exists(file_p)) { return(vdoc.Open(file_p)); } else { MessageBox.Show(file_p + " not found."); } return(false); }
public Axial(vdDocument vdoc, string loads) { //X = Y = Z = 0.0; vDoc = vdoc; Wheel1 = new vdCircle(); Wheel1.SetUnRegisterDocument(vdoc); Wheel1.setDocumentDefaults(); Wheel1.Radius = WheelRadius; vdoc.ActiveLayOut.Entities.AddItem(Wheel1); Wheel2 = new vdCircle(); Wheel2.SetUnRegisterDocument(vdoc); Wheel2.setDocumentDefaults(); Wheel2.Radius = WheelRadius; vdoc.ActiveLayOut.Entities.AddItem(Wheel2); Axis = new vdLine(); Axis.SetUnRegisterDocument(vdoc); Axis.setDocumentDefaults(); Axis.StartPoint = Wheel1.Center; Axis.EndPoint = Wheel2.Center; vdoc.ActiveLayOut.Entities.AddItem(Axis); WheelRadius = 0.3d; Load = (new MyList(loads, ' ')).StringList[0]; }
public void DrawSupportFixed(vdDocument doc, gPoint pt) { supportFixedLay.Name = "SupportFixed"; if (doc.Layers.FindName("SupportFixed") == null) { supportFixedLay = new vdLayer(); supportFixedLay.Name = "SupportFixed"; supportFixedLay.SetUnRegisterDocument(doc); supportFixedLay.setDocumentDefaults(); doc.Layers.AddItem(supportFixedLay); } else { supportFixedLay = doc.Layers.FindName("SupportFixed"); } ASTRASupportFixed asFix = new ASTRASupportFixed(); asFix.SetUnRegisterDocument(doc); asFix.setDocumentDefaults(); asFix.Origin = pt; asFix.Radius = 0.1d; asFix.Layer = supportFixedLay; doc.ActiveLayOut.Entities.AddItem(asFix); }
public PlanWheel(vdDocument vdoc) { //X = Y = Z = 0.0; WheelRadius = 0.3d; vDoc = vdoc; Wheel1 = new vdCircle(); Wheel1.SetUnRegisterDocument(vdoc); Wheel1.setDocumentDefaults(); Wheel1.Radius = WheelRadius; Wheel1.ExtrusionVector = new Vector(0, 1, 0); vdoc.ActiveLayOut.Entities.AddItem(Wheel1); Wheel2 = new vdCircle(); Wheel2.SetUnRegisterDocument(vdoc); Wheel2.setDocumentDefaults(); Wheel2.Radius = WheelRadius; Wheel2.ExtrusionVector = new Vector(0, 1, 0); vdoc.ActiveLayOut.Entities.AddItem(Wheel2); Axis = new vdLine(); Axis.SetUnRegisterDocument(vdoc); Axis.setDocumentDefaults(); Axis.StartPoint = Wheel1.Center; Axis.EndPoint = Wheel2.Center; vdoc.ActiveLayOut.Entities.AddItem(Axis); }
public void ReadXml(XmlReader reader, vdDocument document) { CadFileName = document.FileName; while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == nameof(Sample)) { reader.Read(); Sample = new FigureSet(); Sample.ReadXml(reader, document); } if (reader.NodeType == XmlNodeType.Element && reader.Name == nameof(Results)) { while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == nameof(FigureSet)) { var figureSet = new FigureSet(); figureSet.ReadXml(reader, document); Results.Add(figureSet); } if (reader.NodeType == XmlNodeType.EndElement && reader.Name == nameof(Results)) { reader.Read(); break; } } } if (reader.NodeType == XmlNodeType.EndElement && reader.Name == nameof(MatchItem)) { reader.Read(); break; } } }
public static ulong CommonLine(vdDocument activeDocument, gPoint pStart, gPoint pEnd, double pWidth, int pColor, string lineTypeName, string pToolTip) { VectorDraw.Professional.vdFigures.vdLine oneline = new VectorDraw.Professional.vdFigures.vdLine(); //We set the document where the line is going to be added.This is important for the vdLine in order to obtain initial properties with setDocumentDefaults. // oneline.SetUnRegisterDocument(DrawCommonData.activeDocument); oneline.SetUnRegisterDocument(activeDocument); oneline.setDocumentDefaults(); //The two previus steps are important if a vdFigure object is going to be added to a document. //Now we will change some properties of the line. oneline.StartPoint = pStart; oneline.EndPoint = pEnd; if (!string.IsNullOrEmpty(lineTypeName)) { vdLineType linetype = GetLineTypeByName(activeDocument, lineTypeName); if (null != linetype) { oneline.LineType = GetLineTypeByName(activeDocument, lineTypeName); } } oneline.PenColor.SystemColor = Color.FromArgb(pColor); //Pen width is depended from the zoom.See in the vdRect object about LineWeight. oneline.PenWidth = pWidth; oneline.ToolTip = pToolTip; //Now we will add this object to the Entities collection of the Model Layout(ActiveLayout). DrawCommonData.activeDocument.ActiveLayOut.Entities.AddItem(oneline); return(oneline.Handle.Value); }
public frmMemberLoadCase(vdDocument thisDoc, vdDocument memberDoc, vdDocument memberLoadDoc, vdDocument memberJointLoad, ASTRADoc thisAstDoc, Form thisForm, Form memberForm, Form memberLoadForm, Form memberJointLoadForm) { InitializeComponent(); Maindoc = thisDoc; MemberDoc = memberDoc; MemberLoadDoc = memberLoadDoc; MemberJointLoadDoc = memberJointLoad; astDoc = thisAstDoc; SetMember(); memberLine = new vdLine(); cirMember = new vdCircle(); cirMember.SetUnRegisterDocument(Maindoc); cirMember.setDocumentDefaults(); memberLine.SetUnRegisterDocument(Maindoc); memberLine.setDocumentDefaults(); Maindoc.ActiveLayOut.Entities.AddItem(memberLine); Maindoc.ActiveLayOut.Entities.AddItem(cirMember); formText = thisForm.Text; frmMain = thisForm; frmMember = memberForm; frmMemberLoad = memberLoadForm; frmMemberJointLoad = memberJointLoadForm; }
public frmMemberGrid(ASTRADoc astDoc, vdDocument doc) { InitializeComponent(); this.astDoc = astDoc; mGridCollection = new MemberGridCollection(astDoc); this.doc = doc; }