installed Revit 2020.1 SDK Update July 31, 2019

This commit is contained in:
Jeremy Tammik
2019-09-18 14:02:47 +02:00
parent 4ef4948320
commit afcbef71f3
32 changed files with 312 additions and 2264 deletions
@@ -41,6 +41,10 @@ namespace Revit.SDK.Samples.Custom2DExporter.CS
public class Command : IExternalCommand
{
#region ExportViewUtils
/// <summary>
/// Generates the list of view types supported by the Exporter.
/// </summary>
/// <returns>List of types that are valid view types for export. </returns>
public static ICollection<ViewType> GetExportableViewTypes()
{
return new ViewType[]
@@ -23,8 +23,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DocumentationFile>
</DocumentationFile>
<DocumentationFile>bin\Debug\Custom2DExporter.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -42,6 +41,8 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DocumentationFile>bin\Debug\Custom2DExporter.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
@@ -52,6 +53,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>bin\Release\Custom2DExporter.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -10,8 +10,14 @@ using System.Windows.Forms;
namespace Revit.SDK.Samples.Custom2DExporter.CS
{
/// <summary>
/// UI Form presented to the user used to collection options related to the export.
/// </summary>
public partial class Export2DView : System.Windows.Forms.Form
{
/// <summary>
/// Construct a new form.
/// </summary>
public Export2DView()
{
InitializeComponent();
@@ -22,6 +28,9 @@ namespace Revit.SDK.Samples.Custom2DExporter.CS
ExportOptions m_exportOptions = null;
/// <summary>
/// Property containing the options chosen for export.
/// </summary>
public ExportOptions ViewExportOptions
{
get
@@ -38,7 +47,9 @@ namespace Revit.SDK.Samples.Custom2DExporter.CS
bool m_exportAnnotationObjects;
bool m_exportPatternLines;
/// <summary>
/// True if AnnotationObjects are to be included in the export, false otherwise.
/// </summary>
public bool ExportAnnotationObjects
{
get
@@ -51,6 +62,9 @@ namespace Revit.SDK.Samples.Custom2DExporter.CS
}
}
/// <summary>
/// True if Pattern Lines are to be included in the export, false otherwise.
/// </summary>
public bool ExportPatternLines
{
get
@@ -4,8 +4,16 @@ using Autodesk.Revit.DB;
namespace Revit.SDK.Samples.Custom2DExporter.CS
{
/// <summary>
/// Collection of helpful utility classes.
/// </summary>
public class Utilities
{
/// <summary>
/// Utility to properly append points from 1 list to another.
/// </summary>
/// <param name="to"></param>
/// <param name="from"></param>
public static void addTo(IList<XYZ> to, IList<XYZ> from)
{
int cnt = from.Count;