mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 14:41:37 +00:00
72 lines
2.1 KiB
C#
72 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Revit.SDK.Samples.PathOfTravelCreation.CS
|
|
{
|
|
/// <summary>
|
|
/// Form presented to the user to fill in the options to control the path of travel creation.
|
|
/// </summary>
|
|
public partial class CreateForm : System.Windows.Forms.Form
|
|
{
|
|
PathCreateOptions m_createOption;
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public CreateForm()
|
|
{
|
|
InitializeComponent();
|
|
|
|
radioButton1.Checked = true;
|
|
m_createOption = PathCreateOptions.SingleRoomCornersToSingleDoor;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The option for creating Path of Travel.
|
|
/// </summary>
|
|
public PathCreateOptions PathCreateOption
|
|
{
|
|
get
|
|
{
|
|
return m_createOption;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the CreateOptions.SingleRoomCornersToSingleDoor option.
|
|
/// </summary>
|
|
/// <param name="sender">The sender.</param>
|
|
/// <param name="e">The event arg.</param>
|
|
private void radioButton1_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
m_createOption = PathCreateOptions.SingleRoomCornersToSingleDoor;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the CreateOptions.AllRoomCenterToSingleDoor option.
|
|
/// </summary>
|
|
/// <param name="sender">The sender.</param>
|
|
/// <param name="e">The event arg.</param>
|
|
private void radioButton2_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
m_createOption = PathCreateOptions.AllRoomCenterToSingleDoor;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Set the CreateOptions.AllRoomCornersToAllDoors option.
|
|
/// </summary>
|
|
/// <param name="sender">The sender.</param>
|
|
/// <param name="e">The event arg.</param>
|
|
private void radioButton3_CheckedChanged(object sender, EventArgs e)
|
|
{
|
|
m_createOption = PathCreateOptions.AllRoomCornersToAllDoors;
|
|
}
|
|
}
|
|
}
|