Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Revit_Adapter/Revit_Adapter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>

Check failure on line 5 in Revit_Adapter/Revit_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Adapter/Revit_Adapter.csproj#L5

Revit_Adapter/Revit_Adapter.csproj#L5: Assembly Version should be set to 9.0.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
<Description>https://github.com/BHoM/Revit_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.Adapter.Revit</RootNamespace>
<FileVersion>9.3.0.0</FileVersion>
<FileVersion>10.0.0.0</FileVersion>

Check failure on line 11 in Revit_Adapter/Revit_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Adapter/Revit_Adapter.csproj#L11

Revit_Adapter/Revit_Adapter.csproj#L11: Assembly File Version should be set to 9.3.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</PropertyGroup>

<PropertyGroup>
Expand All @@ -19,7 +19,7 @@
</PropertyGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />

Check warning on line 22 in Revit_Adapter/Revit_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Adapter/Revit_Adapter.csproj#L22

Revit_Adapter/Revit_Adapter.csproj#L22: Post Build event should be correctly set to copy the compiled DLL to the BHoM Assemblies folder - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</Target>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Revit_Core_Adapter/Revit_Core_Adapter.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>

Check failure on line 4 in Revit_Core_Adapter/Revit_Core_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L4

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L4: Assembly Version should be set to 9.0.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
<Description>https://github.com/BHoM/Revit_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.Revit.Adapter.Core</RootNamespace>
<FileVersion>9.3.0.0</FileVersion>
<FileVersion>10.0.0.0</FileVersion>

Check failure on line 10 in Revit_Core_Adapter/Revit_Core_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L10

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L10: Assembly File Version should be set to 9.3.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -41,7 +41,7 @@
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('2025'))">
<RevitVersion>2025</RevitVersion>
<TargetFramework>net8.0-windows</TargetFramework>

Check warning on line 44 in Revit_Core_Adapter/Revit_Core_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L44

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L44: Target frameworks for BHoM projects should either be .Net Framework 4.7.2, .Net Framework 4.8, .Net Framework 4.8.1, .Net Standard 2.0 or, .Net 5.0 to 9.0. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths

Check warning on line 44 in Revit_Core_Adapter/Revit_Core_Adapter.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L44

Revit_Core_Adapter/Revit_Core_Adapter.csproj#L44: Target frameworks for BHoM projects should either be .Net Framework 4.7.2, .Net Framework 4.8, .Net Framework 4.8.1, .Net Standard 2.0 or, .Net 5.0 to 9.0. - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
<DefineConstants>REVIT2025</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('2026'))">
Expand Down
137 changes: 68 additions & 69 deletions Revit_Engine/Create/Settings/MappingSettings.cs
Original file line number Diff line number Diff line change
@@ -1,69 +1,68 @@
/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
*
* The BHoM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* The BHoM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
*/

using BH.oM.Adapters.Revit.Mapping;
using BH.oM.Adapters.Revit.Settings;
using BH.oM.Base.Attributes;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;

namespace BH.Engine.Adapters.Revit
{
public static partial class Create
{
/***************************************************/
/**** Public methods ****/
/***************************************************/

[PreviousVersion("9.3", "BH.Engine.Adapters.Revit.Create.MappingSettings(System.Collections.Generic.IEnumerable<BH.oM.Adapters.Revit.Mapping.ParameterMap>, System.String, System.String)")]
[Description("Creates an entity holding information about the enforced convert relationships between Revit families and BHoM types on Pull as well as mapping between Revit parameters and BHoM object properties.")]
[InputFromProperty("parameterMaps")]
[InputFromProperty("familyMaps")]
[InputFromProperty("tagsParameter")]
[InputFromProperty("materialGradeParameter")]
[Output("mappingSettings")]
public static MappingSettings MappingSettings(IEnumerable<ParameterMap> parameterMaps = null, IEnumerable<FamilyMap> familyMaps = null, string tagsParameter = "", string materialGradeParameter = "")
{
MappingSettings mappingSettings = new MappingSettings();
if (parameterMaps != null)
mappingSettings = mappingSettings.AddParameterMaps(parameterMaps);

if (familyMaps != null)
mappingSettings.FamilyMaps = familyMaps.ToList();

mappingSettings.TagsParameter = tagsParameter;
mappingSettings.MaterialGradeParameter = materialGradeParameter;

return mappingSettings;
}

/***************************************************/
}
}







/*
* This file is part of the Buildings and Habitats object Model (BHoM)
* Copyright (c) 2015 - 2026, the respective contributors. All rights reserved.
*
* Each contributor holds copyright over their respective contributions.
* The project versioning (Git) records all such contribution source information.
*
*
* The BHoM is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3.0 of the License, or
* (at your option) any later version.
*
* The BHoM is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
*/

using BH.oM.Adapters.Revit.Mapping;
using BH.oM.Adapters.Revit.Settings;
using BH.oM.Base.Attributes;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;

namespace BH.Engine.Adapters.Revit
{
public static partial class Create
{
/***************************************************/
/**** Public methods ****/
/***************************************************/

[Description("Creates an entity holding information about the enforced convert relationships between Revit families and BHoM types on Pull as well as mapping between Revit parameters and BHoM object properties.")]
[InputFromProperty("parameterMaps")]
[InputFromProperty("familyMaps")]
[InputFromProperty("tagsParameter")]
[InputFromProperty("materialGradeParameter")]
[Output("mappingSettings")]
public static MappingSettings MappingSettings(IEnumerable<ParameterMap> parameterMaps = null, IEnumerable<FamilyMap> familyMaps = null, string tagsParameter = "", string materialGradeParameter = "")
{
MappingSettings mappingSettings = new MappingSettings();
if (parameterMaps != null)
mappingSettings = mappingSettings.AddParameterMaps(parameterMaps);

if (familyMaps != null)
mappingSettings.FamilyMaps = familyMaps.ToList();

mappingSettings.TagsParameter = tagsParameter;
mappingSettings.MaterialGradeParameter = materialGradeParameter;

return mappingSettings;
}

/***************************************************/
}
}







9 changes: 2 additions & 7 deletions Revit_Engine/Revit_Engine.csproj
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>

Check failure on line 4 in Revit_Engine/Revit_Engine.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Engine/Revit_Engine.csproj#L4

Revit_Engine/Revit_Engine.csproj#L4: Assembly Version should be set to 9.0.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
<Description>https://github.com/BHoM/Revit_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.Engine.Revit</RootNamespace>
<FileVersion>9.3.0.0</FileVersion>
<FileVersion>10.0.0.0</FileVersion>

Check failure on line 10 in Revit_Engine/Revit_Engine.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Engine/Revit_Engine.csproj#L10

Revit_Engine/Revit_Engine.csproj#L10: Assembly File Version should be set to 9.3.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</PropertyGroup>

<PropertyGroup>
<OutputPath>..\Build\</OutputPath>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AppendTargetFrameworkToOutputpath>false</AppendTargetFrameworkToOutputpath>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />

Check warning on line 19 in Revit_Engine/Revit_Engine.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_Engine/Revit_Engine.csproj#L19

Revit_Engine/Revit_Engine.csproj#L19: Post Build event should be correctly set to copy the compiled DLL to the BHoM Assemblies folder - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</Target>

<ItemGroup>
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Remove="obj\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Revit_oM\Revit_oM.csproj" />
</ItemGroup>
Expand Down
51 changes: 0 additions & 51 deletions Revit_Engine/Versioning_93.json

This file was deleted.

4 changes: 2 additions & 2 deletions Revit_oM/Revit_oM.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>

Check failure on line 4 in Revit_oM/Revit_oM.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_oM/Revit_oM.csproj#L4

Revit_oM/Revit_oM.csproj#L4: Assembly Version should be set to 9.0.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
<Description>https://github.com/BHoM/Revit_Toolkit</Description>
<Version>6.0.0</Version>
<Authors>BHoM</Authors>
<Copyright>Copyright © https://github.com/BHoM</Copyright>
<RootNamespace>BH.oM.Revit</RootNamespace>
<FileVersion>9.3.0.0</FileVersion>
<FileVersion>10.0.0.0</FileVersion>

Check failure on line 10 in Revit_oM/Revit_oM.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_oM/Revit_oM.csproj#L10

Revit_oM/Revit_oM.csproj#L10: Assembly File Version should be set to 9.3.0.0 - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</PropertyGroup>
<PropertyGroup>
<OutputPath>..\Build\</OutputPath>
Expand All @@ -16,7 +16,7 @@
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy &quot;$(TargetDir)$(TargetFileName)&quot; &quot;C:\ProgramData\BHoM\Assemblies&quot; /Y" />

Check warning on line 19 in Revit_oM/Revit_oM.csproj

View workflow job for this annotation

GitHub Actions / ci-project-compliance

Revit_oM/Revit_oM.csproj#L19

Revit_oM/Revit_oM.csproj#L19: Post Build event should be correctly set to copy the compiled DLL to the BHoM Assemblies folder - For more information see https://bhom.xyz/documentation/DevOps/Code%20Compliance%20and%20CI/Compliance%20Checks/Project-References-and-Build-Paths
</Target>
<ItemGroup>
<Compile Remove="obj\**" />
Expand Down
Loading