mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-11 15:36:18 +00:00
247 lines
11 KiB
C#
247 lines
11 KiB
C#
namespace Revit.SDK.Samples.CreateBeamsColumnsBraces.CS
|
|
{
|
|
public partial class CreateBeamsColumnsBracesForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.Container components = null;
|
|
|
|
private System.Windows.Forms.Button OKButton;
|
|
private System.Windows.Forms.TextBox XTextBox;
|
|
private System.Windows.Forms.TextBox DistanceTextBox;
|
|
private System.Windows.Forms.TextBox YTextBox;
|
|
private System.Windows.Forms.ComboBox columnComboBox;
|
|
private System.Windows.Forms.ComboBox beamComboBox;
|
|
private System.Windows.Forms.ComboBox braceComboBox;
|
|
private System.Windows.Forms.Button cancelButton;
|
|
private System.Windows.Forms.TextBox floornumberTextBox;
|
|
private System.Windows.Forms.Label columnLabel;
|
|
private System.Windows.Forms.Label beamLabel;
|
|
private System.Windows.Forms.Label braceLabel;
|
|
private System.Windows.Forms.Label DistanceLabel;
|
|
private System.Windows.Forms.Label YLabel;
|
|
private System.Windows.Forms.Label XLabel;
|
|
private System.Windows.Forms.Label floornumberLabel;
|
|
private System.Windows.Forms.Label unitLabel;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
{
|
|
if (components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.OKButton = new System.Windows.Forms.Button();
|
|
this.XTextBox = new System.Windows.Forms.TextBox();
|
|
this.YTextBox = new System.Windows.Forms.TextBox();
|
|
this.DistanceTextBox = new System.Windows.Forms.TextBox();
|
|
this.columnComboBox = new System.Windows.Forms.ComboBox();
|
|
this.beamComboBox = new System.Windows.Forms.ComboBox();
|
|
this.braceComboBox = new System.Windows.Forms.ComboBox();
|
|
this.columnLabel = new System.Windows.Forms.Label();
|
|
this.beamLabel = new System.Windows.Forms.Label();
|
|
this.braceLabel = new System.Windows.Forms.Label();
|
|
this.floornumberTextBox = new System.Windows.Forms.TextBox();
|
|
this.DistanceLabel = new System.Windows.Forms.Label();
|
|
this.YLabel = new System.Windows.Forms.Label();
|
|
this.XLabel = new System.Windows.Forms.Label();
|
|
this.floornumberLabel = new System.Windows.Forms.Label();
|
|
this.cancelButton = new System.Windows.Forms.Button();
|
|
this.unitLabel = new System.Windows.Forms.Label();
|
|
this.SuspendLayout();
|
|
//
|
|
// OKButton
|
|
//
|
|
this.OKButton.Location = new System.Drawing.Point(296, 208);
|
|
this.OKButton.Name = "OKButton";
|
|
this.OKButton.TabIndex = 8;
|
|
this.OKButton.Text = "&OK";
|
|
this.OKButton.Click += new System.EventHandler(this.OKButton_Click);
|
|
//
|
|
// XTextBox
|
|
//
|
|
this.XTextBox.Location = new System.Drawing.Point(16, 96);
|
|
this.XTextBox.Name = "XTextBox";
|
|
this.XTextBox.Size = new System.Drawing.Size(136, 20);
|
|
this.XTextBox.TabIndex = 2;
|
|
this.XTextBox.Text = "";
|
|
this.XTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.XTextBox_Validating);
|
|
//
|
|
// YTextBox
|
|
//
|
|
this.YTextBox.Location = new System.Drawing.Point(16, 152);
|
|
this.YTextBox.Name = "YTextBox";
|
|
this.YTextBox.Size = new System.Drawing.Size(136, 20);
|
|
this.YTextBox.TabIndex = 3;
|
|
this.YTextBox.Text = "";
|
|
this.YTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.YTextBox_Validating);
|
|
//
|
|
// DistanceTextBox
|
|
//
|
|
this.DistanceTextBox.Location = new System.Drawing.Point(16, 40);
|
|
this.DistanceTextBox.Name = "DistanceTextBox";
|
|
this.DistanceTextBox.Size = new System.Drawing.Size(112, 20);
|
|
this.DistanceTextBox.TabIndex = 1;
|
|
this.DistanceTextBox.Text = "";
|
|
this.DistanceTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.DistanceTextBox_Validating);
|
|
//
|
|
// columnComboBox
|
|
//
|
|
this.columnComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.columnComboBox.Location = new System.Drawing.Point(240, 40);
|
|
this.columnComboBox.Name = "columnComboBox";
|
|
this.columnComboBox.Size = new System.Drawing.Size(288, 21);
|
|
this.columnComboBox.TabIndex = 5;
|
|
//
|
|
// beamComboBox
|
|
//
|
|
this.beamComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.beamComboBox.Location = new System.Drawing.Point(240, 96);
|
|
this.beamComboBox.Name = "beamComboBox";
|
|
this.beamComboBox.Size = new System.Drawing.Size(288, 21);
|
|
this.beamComboBox.TabIndex = 6;
|
|
//
|
|
// braceComboBox
|
|
//
|
|
this.braceComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.braceComboBox.Location = new System.Drawing.Point(240, 152);
|
|
this.braceComboBox.Name = "braceComboBox";
|
|
this.braceComboBox.Size = new System.Drawing.Size(288, 21);
|
|
this.braceComboBox.TabIndex = 7;
|
|
//
|
|
// columnLabel
|
|
//
|
|
this.columnLabel.Location = new System.Drawing.Point(240, 16);
|
|
this.columnLabel.Name = "columnLabel";
|
|
this.columnLabel.Size = new System.Drawing.Size(120, 23);
|
|
this.columnLabel.TabIndex = 10;
|
|
this.columnLabel.Text = "Type of Columns:";
|
|
//
|
|
// beamLabel
|
|
//
|
|
this.beamLabel.Location = new System.Drawing.Point(240, 72);
|
|
this.beamLabel.Name = "beamLabel";
|
|
this.beamLabel.Size = new System.Drawing.Size(120, 23);
|
|
this.beamLabel.TabIndex = 11;
|
|
this.beamLabel.Text = "Type of Beams:";
|
|
//
|
|
// braceLabel
|
|
//
|
|
this.braceLabel.Location = new System.Drawing.Point(240, 128);
|
|
this.braceLabel.Name = "braceLabel";
|
|
this.braceLabel.Size = new System.Drawing.Size(120, 23);
|
|
this.braceLabel.TabIndex = 12;
|
|
this.braceLabel.Text = "Type of Braces:";
|
|
//
|
|
// floornumberTextBox
|
|
//
|
|
this.floornumberTextBox.Location = new System.Drawing.Point(16, 208);
|
|
this.floornumberTextBox.Name = "floornumberTextBox";
|
|
this.floornumberTextBox.Size = new System.Drawing.Size(112, 20);
|
|
this.floornumberTextBox.TabIndex = 4;
|
|
this.floornumberTextBox.Text = "";
|
|
this.floornumberTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.floornumberTextBox_Validating);
|
|
//
|
|
// DistanceLabel
|
|
//
|
|
this.DistanceLabel.Location = new System.Drawing.Point(16, 16);
|
|
this.DistanceLabel.Name = "DistanceLabel";
|
|
this.DistanceLabel.Size = new System.Drawing.Size(152, 23);
|
|
this.DistanceLabel.TabIndex = 14;
|
|
this.DistanceLabel.Text = "Distance between Columns:";
|
|
//
|
|
// YLabel
|
|
//
|
|
this.YLabel.Location = new System.Drawing.Point(16, 128);
|
|
this.YLabel.Name = "YLabel";
|
|
this.YLabel.Size = new System.Drawing.Size(200, 23);
|
|
this.YLabel.TabIndex = 15;
|
|
this.YLabel.Text = "Number of Columns in the Y Direction:";
|
|
//
|
|
// XLabel
|
|
//
|
|
this.XLabel.Location = new System.Drawing.Point(16, 72);
|
|
this.XLabel.Name = "XLabel";
|
|
this.XLabel.Size = new System.Drawing.Size(200, 23);
|
|
this.XLabel.TabIndex = 16;
|
|
this.XLabel.Text = "Number of Columns in the X Direction:";
|
|
//
|
|
// floornumberLabel
|
|
//
|
|
this.floornumberLabel.Location = new System.Drawing.Point(16, 184);
|
|
this.floornumberLabel.Name = "floornumberLabel";
|
|
this.floornumberLabel.Size = new System.Drawing.Size(144, 23);
|
|
this.floornumberLabel.TabIndex = 17;
|
|
this.floornumberLabel.Text = "Number of Floors:";
|
|
//
|
|
// cancelButton
|
|
//
|
|
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.cancelButton.Location = new System.Drawing.Point(392, 208);
|
|
this.cancelButton.Name = "cancelButton";
|
|
this.cancelButton.TabIndex = 9;
|
|
this.cancelButton.Text = "&Cancel";
|
|
this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
|
|
//
|
|
// unitLabel
|
|
//
|
|
this.unitLabel.Location = new System.Drawing.Point(136, 42);
|
|
this.unitLabel.Name = "unitLabel";
|
|
this.unitLabel.Size = new System.Drawing.Size(32, 23);
|
|
this.unitLabel.TabIndex = 18;
|
|
this.unitLabel.Text = "feet";
|
|
//
|
|
// CreateBeamsColumnsBracesForm
|
|
//
|
|
this.AcceptButton = this.OKButton;
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
|
this.CancelButton = this.cancelButton;
|
|
this.ClientSize = new System.Drawing.Size(546, 246);
|
|
this.Controls.Add(this.unitLabel);
|
|
this.Controls.Add(this.cancelButton);
|
|
this.Controls.Add(this.floornumberLabel);
|
|
this.Controls.Add(this.XLabel);
|
|
this.Controls.Add(this.YLabel);
|
|
this.Controls.Add(this.DistanceLabel);
|
|
this.Controls.Add(this.floornumberTextBox);
|
|
this.Controls.Add(this.DistanceTextBox);
|
|
this.Controls.Add(this.YTextBox);
|
|
this.Controls.Add(this.XTextBox);
|
|
this.Controls.Add(this.braceLabel);
|
|
this.Controls.Add(this.beamLabel);
|
|
this.Controls.Add(this.columnLabel);
|
|
this.Controls.Add(this.braceComboBox);
|
|
this.Controls.Add(this.beamComboBox);
|
|
this.Controls.Add(this.columnComboBox);
|
|
this.Controls.Add(this.OKButton);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "CreateBeamsColumnsBracesForm";
|
|
this.ShowInTaskbar = false;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Create Beams Columns and Braces";
|
|
this.Load += new System.EventHandler(this.CreateBeamsColumnsBracesForm_Load);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
#endregion
|
|
}
|
|
}
|