mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-10-03 07:31:33 +00:00
added Revit 2022 SDK minus except *rvt and *rfa
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user