integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
@@ -32,6 +32,7 @@ using System.Windows.Forms;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.UI;
using TaskDialog = Autodesk.Revit.UI.TaskDialog;
namespace Revit.SDK.Samples.Reinforcement.CS
{
@@ -32,6 +32,7 @@ using System.Windows.Forms;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Structure;
using Autodesk.Revit.UI;
using TaskDialog = Autodesk.Revit.UI.TaskDialog;
namespace Revit.SDK.Samples.Reinforcement.CS
{
@@ -96,12 +96,12 @@ namespace Revit.SDK.Samples.Reinforcement.CS
}
}
/// <summary>
/// Implement the Run() method of IFrameReinMaker interface.
/// Give the flew process of the reinforcement creation.
/// </summary>
/// <returns></returns>
bool IFrameReinMaker.Run()
/// <summary>
/// Implement the Run() method of IFrameReinMaker interface.
/// Give the flew process of the reinforcement creation.
/// </summary>
/// <returns></returns>
public bool Run()
{
// First, check the data whether is right and enough.
if (!AssertData())
+1 -1
View File
@@ -259,7 +259,7 @@ namespace Revit.SDK.Samples.Reinforcement.CS
/// </summary>
public class XYZHeightComparer : IComparer<Autodesk.Revit.DB.XYZ>
{
int IComparer<Autodesk.Revit.DB.XYZ>.Compare(Autodesk.Revit.DB.XYZ first, Autodesk.Revit.DB.XYZ second)
public int Compare(Autodesk.Revit.DB.XYZ first, Autodesk.Revit.DB.XYZ second)
{
// first compare z coordinate, then y coordinate, at last x coordinate
if (GeomUtil.IsEqual(first.Z, second.Z))
@@ -56,3 +56,4 @@ using System.Runtime.InteropServices;
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("windows7.0")]
@@ -1,121 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E1DA0A90-58B2-4032-B443-F8C397CE3B49}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Reinforcement</RootNamespace>
<AssemblyName>Reinforcement</AssemblyName>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<Project Sdk="">
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="BeamFramReinMaker.cs" />
<Compile Include="BeamFramReinMakerForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="BeamFramReinMakerForm.Designer.cs">
<DependentUpon>BeamFramReinMakerForm.cs</DependentUpon>
</Compile>
<Compile Include="BeamGeometrySupport.cs" />
<Compile Include="ColumnFramReinMaker.cs" />
<Compile Include="ColumnFramReinMakerForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ColumnFramReinMakerForm.Designer.cs">
<DependentUpon>ColumnFramReinMakerForm.cs</DependentUpon>
</Compile>
<Compile Include="ColumnGeometrySupport.cs" />
<Compile Include="Command.cs" />
<Compile Include="FrameReinMakerFactory.cs" />
<Compile Include="FramReinMaker.cs" />
<Compile Include="GeomData.cs" />
<Compile Include="GeometrySupport.cs" />
<Compile Include="GeomUtil.cs" />
<Compile Include="ParameterUtil.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="BeamFramReinMakerForm.resx">
<SubType>Designer</SubType>
<DependentUpon>BeamFramReinMakerForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ColumnFramReinMakerForm.resx">
<SubType>Designer</SubType>
<DependentUpon>ColumnFramReinMakerForm.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(SolutionDir)VSProps\SDKSamples.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.targets" />
<PropertyGroup>
<PostBuildEvent>set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.py"
if exist %25FILEFORSAMPLEREG%25 py -3 %25FILEFORSAMPLEREG%25 "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"</PostBuildEvent>