240 lines
13 KiB
C#
240 lines
13 KiB
C#
using System.Collections.Generic;
|
|
using Autodesk.Revit.DB;
|
|
using Autodesk.Revit.UI;
|
|
namespace KMBIM.Revit.Tools.AvoidObstruction
|
|
{
|
|
partial class FormAvoidObstruction
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
private List<Element> m_ListObstructionElement = null; // 충돌요소
|
|
private List<Element> m_ListAvoidanceElement = null; // 회피요소
|
|
private Resolver resolver;
|
|
private UIDocument m_rvtUIDoc;
|
|
private Document m_rvtDoc;
|
|
private Autodesk.Revit.ApplicationServices.Application m_rvtApp;
|
|
private EnumAvoidObstructionType m_AvoidObstructinType;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (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()
|
|
{
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAvoidObstruction));
|
|
this.radioButtonDn_ = new System.Windows.Forms.RadioButton();
|
|
this.radioButtonUp_ = new System.Windows.Forms.RadioButton();
|
|
this.radioButtonDnUp = new System.Windows.Forms.RadioButton();
|
|
this.radioButton_Dn = new System.Windows.Forms.RadioButton();
|
|
this.radioButton_Up = new System.Windows.Forms.RadioButton();
|
|
this.radioButtonUpDn = new System.Windows.Forms.RadioButton();
|
|
this.buttonSelectAvoidElement = new System.Windows.Forms.Button();
|
|
this.buttonSelectObstructionElement = new System.Windows.Forms.Button();
|
|
this.numericUpDownAngle = new System.Windows.Forms.NumericUpDown();
|
|
this.numericUpDownFreeSpaceHeight = new System.Windows.Forms.NumericUpDown();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownFreeSpaceHeight)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// radioButtonDn_
|
|
//
|
|
this.radioButtonDn_.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButtonDn_.AutoSize = true;
|
|
this.radioButtonDn_.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoidsdn_;
|
|
this.radioButtonDn_.Location = new System.Drawing.Point(139, 192);
|
|
this.radioButtonDn_.Name = "radioButtonDn_";
|
|
this.radioButtonDn_.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButtonDn_.TabIndex = 26;
|
|
this.radioButtonDn_.TabStop = true;
|
|
this.radioButtonDn_.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButtonUp_
|
|
//
|
|
this.radioButtonUp_.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButtonUp_.AutoSize = true;
|
|
this.radioButtonUp_.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoideup_;
|
|
this.radioButtonUp_.Location = new System.Drawing.Point(139, 131);
|
|
this.radioButtonUp_.Name = "radioButtonUp_";
|
|
this.radioButtonUp_.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButtonUp_.TabIndex = 24;
|
|
this.radioButtonUp_.TabStop = true;
|
|
this.radioButtonUp_.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButtonDnUp
|
|
//
|
|
this.radioButtonDnUp.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButtonDnUp.AutoSize = true;
|
|
this.radioButtonDnUp.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoiddnup;
|
|
this.radioButtonDnUp.Location = new System.Drawing.Point(139, 70);
|
|
this.radioButtonDnUp.Name = "radioButtonDnUp";
|
|
this.radioButtonDnUp.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButtonDnUp.TabIndex = 25;
|
|
this.radioButtonDnUp.TabStop = true;
|
|
this.radioButtonDnUp.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButton_Dn
|
|
//
|
|
this.radioButton_Dn.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButton_Dn.AutoSize = true;
|
|
this.radioButton_Dn.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoide_dn;
|
|
this.radioButton_Dn.Location = new System.Drawing.Point(11, 192);
|
|
this.radioButton_Dn.Name = "radioButton_Dn";
|
|
this.radioButton_Dn.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButton_Dn.TabIndex = 23;
|
|
this.radioButton_Dn.TabStop = true;
|
|
this.radioButton_Dn.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButton_Up
|
|
//
|
|
this.radioButton_Up.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButton_Up.AutoSize = true;
|
|
this.radioButton_Up.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoids_up;
|
|
this.radioButton_Up.Location = new System.Drawing.Point(11, 131);
|
|
this.radioButton_Up.Name = "radioButton_Up";
|
|
this.radioButton_Up.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButton_Up.TabIndex = 21;
|
|
this.radioButton_Up.TabStop = true;
|
|
this.radioButton_Up.UseVisualStyleBackColor = true;
|
|
//
|
|
// radioButtonUpDn
|
|
//
|
|
this.radioButtonUpDn.Appearance = System.Windows.Forms.Appearance.Button;
|
|
this.radioButtonUpDn.AutoSize = true;
|
|
this.radioButtonUpDn.Image = global::KMBIM.Revit.Tools.Properties.Resources.avoidupdn;
|
|
this.radioButtonUpDn.Location = new System.Drawing.Point(11, 70);
|
|
this.radioButtonUpDn.Name = "radioButtonUpDn";
|
|
this.radioButtonUpDn.Size = new System.Drawing.Size(122, 55);
|
|
this.radioButtonUpDn.TabIndex = 22;
|
|
this.radioButtonUpDn.TabStop = true;
|
|
this.radioButtonUpDn.UseVisualStyleBackColor = true;
|
|
//
|
|
// buttonSelectAvoidElement
|
|
//
|
|
this.buttonSelectAvoidElement.BackColor = System.Drawing.SystemColors.Control;
|
|
this.buttonSelectAvoidElement.ForeColor = System.Drawing.Color.Black;
|
|
this.buttonSelectAvoidElement.Image = ((System.Drawing.Image)(resources.GetObject("buttonSelectAvoidElement.Image")));
|
|
this.buttonSelectAvoidElement.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.buttonSelectAvoidElement.Location = new System.Drawing.Point(11, 291);
|
|
this.buttonSelectAvoidElement.Name = "buttonSelectAvoidElement";
|
|
this.buttonSelectAvoidElement.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0);
|
|
this.buttonSelectAvoidElement.Size = new System.Drawing.Size(250, 32);
|
|
this.buttonSelectAvoidElement.TabIndex = 19;
|
|
this.buttonSelectAvoidElement.Text = "회피 요소 선택";
|
|
this.buttonSelectAvoidElement.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.buttonSelectAvoidElement.UseVisualStyleBackColor = false;
|
|
//
|
|
// buttonSelectObstructionElement
|
|
//
|
|
this.buttonSelectObstructionElement.BackColor = System.Drawing.SystemColors.Control;
|
|
this.buttonSelectObstructionElement.ForeColor = System.Drawing.Color.Black;
|
|
this.buttonSelectObstructionElement.Image = ((System.Drawing.Image)(resources.GetObject("buttonSelectObstructionElement.Image")));
|
|
this.buttonSelectObstructionElement.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.buttonSelectObstructionElement.Location = new System.Drawing.Point(11, 253);
|
|
this.buttonSelectObstructionElement.Name = "buttonSelectObstructionElement";
|
|
this.buttonSelectObstructionElement.Padding = new System.Windows.Forms.Padding(0, 0, 10, 0);
|
|
this.buttonSelectObstructionElement.Size = new System.Drawing.Size(250, 32);
|
|
this.buttonSelectObstructionElement.TabIndex = 20;
|
|
this.buttonSelectObstructionElement.Text = "충돌 요소 선택";
|
|
this.buttonSelectObstructionElement.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.buttonSelectObstructionElement.UseVisualStyleBackColor = false;
|
|
this.buttonSelectObstructionElement.Click += new System.EventHandler(this.buttonSelectObstructionElement_Click);
|
|
//
|
|
// numericUpDownAngle
|
|
//
|
|
this.numericUpDownAngle.Location = new System.Drawing.Point(141, 37);
|
|
this.numericUpDownAngle.Name = "numericUpDownAngle";
|
|
this.numericUpDownAngle.Size = new System.Drawing.Size(120, 21);
|
|
this.numericUpDownAngle.TabIndex = 17;
|
|
//
|
|
// numericUpDownFreeSpaceHeight
|
|
//
|
|
this.numericUpDownFreeSpaceHeight.Location = new System.Drawing.Point(141, 10);
|
|
this.numericUpDownFreeSpaceHeight.Name = "numericUpDownFreeSpaceHeight";
|
|
this.numericUpDownFreeSpaceHeight.Size = new System.Drawing.Size(120, 21);
|
|
this.numericUpDownFreeSpaceHeight.TabIndex = 18;
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(11, 44);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(29, 12);
|
|
this.label2.TabIndex = 15;
|
|
this.label2.Text = "각도";
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(11, 19);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(117, 12);
|
|
this.label1.TabIndex = 16;
|
|
this.label1.Text = "여유 공간 높이(mm)";
|
|
//
|
|
// FormAvoidObstruction
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(273, 332);
|
|
this.Controls.Add(this.radioButtonDn_);
|
|
this.Controls.Add(this.radioButtonUp_);
|
|
this.Controls.Add(this.radioButtonDnUp);
|
|
this.Controls.Add(this.radioButton_Dn);
|
|
this.Controls.Add(this.radioButton_Up);
|
|
this.Controls.Add(this.radioButtonUpDn);
|
|
this.Controls.Add(this.buttonSelectAvoidElement);
|
|
this.Controls.Add(this.buttonSelectObstructionElement);
|
|
this.Controls.Add(this.numericUpDownAngle);
|
|
this.Controls.Add(this.numericUpDownFreeSpaceHeight);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.MinimizeBox = false;
|
|
this.Name = "FormAvoidObstruction";
|
|
this.Text = "장애물 회피";
|
|
this.TopMost = true;
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownAngle)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownFreeSpaceHeight)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.RadioButton radioButtonDn_;
|
|
private System.Windows.Forms.RadioButton radioButtonUp_;
|
|
private System.Windows.Forms.RadioButton radioButtonDnUp;
|
|
private System.Windows.Forms.RadioButton radioButton_Dn;
|
|
private System.Windows.Forms.RadioButton radioButton_Up;
|
|
private System.Windows.Forms.RadioButton radioButtonUpDn;
|
|
private System.Windows.Forms.Button buttonSelectAvoidElement;
|
|
private System.Windows.Forms.Button buttonSelectObstructionElement;
|
|
private System.Windows.Forms.NumericUpDown numericUpDownAngle;
|
|
private System.Windows.Forms.NumericUpDown numericUpDownFreeSpaceHeight;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label1;
|
|
}
|
|
} |