mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-09-09 13:22:20 +00:00
integrate Revit 2025 SDK
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// (C) Copyright 2003-2019 by Autodesk, Inc.
|
||||
// (C) Copyright 2003-2023 by Autodesk, Inc.
|
||||
//
|
||||
// Permission to use, copy, modify, and distribute this software in
|
||||
// object code form for any purpose and without fee is hereby granted,
|
||||
@@ -33,7 +33,7 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("RoutingPreferenceTools")]
|
||||
[assembly: AssemblyCopyright("Copyright © Autodesk 2011")]
|
||||
[assembly: AssemblyCopyright("Copyright © Autodesk 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
||||
+10
-10
@@ -96,10 +96,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
{
|
||||
ParseFamilyFromXml(xfamily, findFolderUtility); //Load families.
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
loadFamilies.RollBack();
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
loadFamilies.Commit();
|
||||
|
||||
@@ -111,10 +111,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
{
|
||||
ParsePipeTypeFromXml(xpipeType); //Define new pipe types.
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
addPipeTypes.RollBack();
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
addPipeTypes.Commit();
|
||||
|
||||
@@ -126,10 +126,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
{
|
||||
ParsePipeScheduleTypeFromXml(xpipeScheduleType); //Define new pipe schedule types.
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
addPipeSchedules.RollBack();
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
addPipeSchedules.Commit();
|
||||
|
||||
@@ -146,10 +146,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
{
|
||||
ParsePipeSegmentFromXML(xpipeSegment);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
addPipeSchedules.RollBack();
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
addPipeSchedules.Commit();
|
||||
|
||||
@@ -165,10 +165,10 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
{
|
||||
ParseRoutingPreferenceManagerFromXML(xroutingPreferenceManager);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
addRoutingPreferences.RollBack();
|
||||
throw ex;
|
||||
throw;
|
||||
}
|
||||
addRoutingPreferences.Commit();
|
||||
|
||||
|
||||
+2
-2
@@ -239,11 +239,11 @@ namespace Revit.SDK.Samples.RoutingPreferenceTools.CS
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw new Exception("Could not find embedded xml RotingPreferenceBuilder schema resource.");
|
||||
throw new Exception("Could not find embedded xml RoutingPreferenceBuilder schema resource.");
|
||||
}
|
||||
if (schemaStream == null)
|
||||
{
|
||||
throw new Exception("Could not find embedded xml RotingPreferenceBuilder schema resource.");
|
||||
throw new Exception("Could not find embedded xml RoutingPreferenceBuilder schema resource.");
|
||||
}
|
||||
System.IO.StreamReader stReader = new StreamReader(schemaStream);
|
||||
return stReader.ReadToEnd();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<RevitAddIns>
|
||||
<AddIn Type="Command">
|
||||
<Text>RoutingPreferenceTools.Analyzer</Text>
|
||||
<Assembly>D:\Revit\dev-0\ThirdParty\InstallerExtra\RevitSDK\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll</Assembly>
|
||||
<Assembly>RoutingPreferenceTools.dll</Assembly>
|
||||
<ClientId>E6976BBA-FA1E-4F56-A178-A248B9AA9F81</ClientId>
|
||||
<FullClassName>Revit.SDK.Samples.RoutingPreferenceTools.CS.Command</FullClassName>
|
||||
<VendorId>ADSK</VendorId>
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
<AddIn Type="Command">
|
||||
<Text>RoutingPreferenceTools.Builder.CommandReadPreferences</Text>
|
||||
<Assembly>D:\Revit\dev-0\ThirdParty\InstallerExtra\RevitSDK\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll</Assembly>
|
||||
<Assembly>RoutingPreferenceTools.dll</Assembly>
|
||||
<ClientId>E6976BBA-FA1E-4F56-A178-A248B9AA9F82</ClientId>
|
||||
<FullClassName>Revit.SDK.Samples.RoutingPreferenceTools.CS.CommandReadPreferences</FullClassName>
|
||||
<VendorId>ADSK</VendorId>
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
<AddIn Type="Command">
|
||||
<Text>RoutingPreferenceTools.Builder.CommandWritePreferences</Text>
|
||||
<Assembly>D:\Revit\dev-0\ThirdParty\InstallerExtra\RevitSDK\Software Development Kit\Samples\RoutingPreferenceTools\CS\bin\Debug\RoutingPreferenceTools.dll</Assembly>
|
||||
<Assembly>RoutingPreferenceTools.dll</Assembly>
|
||||
<ClientId>E6976BBA-FA1E-4F56-A178-A248B9AA9F83</ClientId>
|
||||
<FullClassName>Revit.SDK.Samples.RoutingPreferenceTools.CS.CommandWritePreferences</FullClassName>
|
||||
<VendorId>ADSK</VendorId>
|
||||
|
||||
@@ -1,43 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project Sdk="">
|
||||
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.props" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<UseWPF>true</UseWPF>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{7C33A55E-6044-48EE-A598-C4580D7C5DD3}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Revit.SDK.Samples.RoutingPreferenceTools.CS</RootNamespace>
|
||||
<AssemblyName>RoutingPreferenceTools</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<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>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<DocumentationFile>bin\Debug\RoutingPreferenceTools.xml</DocumentationFile>
|
||||
</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>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DocumentationFile>bin\Debug\RoutingPreferenceTools.xml</DocumentationFile>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<DebugType>full</DebugType>
|
||||
@@ -47,7 +17,6 @@
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -55,72 +24,16 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.targets" />
|
||||
<ItemGroup>
|
||||
<None Remove="RoutingPreferenceBuilder\RoutingPreferenceBuilderData.xsd" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RoutingPreferenceBuilder\RoutingPreferenceBuilderData.xsd" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="System">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Core">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Data">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml">
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RoutingPreferenceAnalysis\Analyzer.cs" />
|
||||
<Compile Include="RoutingPreferenceAnalysis\Command.cs" />
|
||||
<Compile Include="RoutingPreferenceAnalysis\MainWindow.xaml.cs">
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="RoutingPreferenceAnalysis\PartIdInfo.cs" />
|
||||
<Compile Include="RoutingPreferenceBuilder\CommandReadPreferences.cs" />
|
||||
<Compile Include="RoutingPreferenceBuilder\CommandWritePreferences.cs" />
|
||||
<Compile Include="RoutingPreferenceBuilder\RoutingPreferenceBuilder.cs" />
|
||||
<Compile Include="RoutingPreferenceBuilder\RoutingPreferenceBuilderUtility.cs" />
|
||||
<Compile Include="Utility.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="RoutingPreferenceAnalysis\MainWindow.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="RoutingPreferenceBuilder\RoutingPreferenceBuilderData.xsd">
|
||||
<SubType>Designer</SubType>
|
||||
</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>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user