Skip to content

Commit

Permalink
Merge pull request #43 from shichuyibushishiwu/develop
Browse files Browse the repository at this point in the history
v15
  • Loading branch information
shichuyibushishiwu authored Apr 10, 2024
2 parents bed6710 + e28accc commit a8af096
Show file tree
Hide file tree
Showing 19 changed files with 372 additions and 273 deletions.
90 changes: 90 additions & 0 deletions Tuna.Revit.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<Project>
<PropertyGroup>
<Configurations>
Debug;Release;
Rvt_16_Debug;Rvt_16_Release;
Rvt_17_Debug;Rvt_17_Release;
Rvt_18_Debug;Rvt_18_Release;
Rvt_19_Debug;Rvt_19_Release;
Rvt_20_Debug;Rvt_20_Release;
Rvt_21_Debug;Rvt_21_Release;
Rvt_22_Debug;Rvt_22_Release;
Rvt_23_Debug;Rvt_23_Release;
Rvt_24_Debug;Rvt_24_Release;
Rvt_25_Debug;Rvt_25_Release;
</Configurations>
<TunaVer>15</TunaVer>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>preview</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_16))'">
<RvtVersion>2016</RvtVersion>
<DefineConstants>Rvt_16</DefineConstants>
<TargetFramework>net452</TargetFramework>
<Version>2016.2.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_17))'">
<RvtVersion>2017</RvtVersion>
<DefineConstants>Rvt_17</DefineConstants>
<TargetFramework>net46</TargetFramework>
<Version>2017.2.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_18))'">
<RvtVersion>2018</RvtVersion>
<DefineConstants>Rvt_18</DefineConstants>
<TargetFramework>net46</TargetFramework>
<Version>2018.2.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_19))'">
<RvtVersion>2019</RvtVersion>
<DefineConstants>Rvt_19</DefineConstants>
<TargetFramework>net47</TargetFramework>
<Version>2019.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_20))'">
<RvtVersion>2020</RvtVersion>
<DefineConstants>Rvt_20</DefineConstants>
<TargetFramework>net47</TargetFramework>
<Version>2020.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_21))'">
<RvtVersion>2021</RvtVersion>
<DefineConstants>Rvt_21</DefineConstants>
<TargetFramework>net48</TargetFramework>
<Version>2021.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_22))'">
<RvtVersion>2022</RvtVersion>
<DefineConstants>Rvt_22</DefineConstants>
<TargetFramework>net48</TargetFramework>
<Version>2022.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_23))'">
<RvtVersion>2023</RvtVersion>
<DefineConstants>Rvt_23</DefineConstants>
<TargetFramework>net48</TargetFramework>
<Version>2023.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_24))'">
<RvtVersion>2024</RvtVersion>
<DefineConstants>Rvt_24</DefineConstants>
<TargetFramework>net48</TargetFramework>
<Version>2024.0.$(TunaVer)</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration.StartsWith(Rvt_25))'">
<RvtVersion>2025</RvtVersion>
<DefineConstants>Rvt_25</DefineConstants>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<Version>2025.0.$(TunaVer)</Version>
</PropertyGroup>
</Project>
103 changes: 58 additions & 45 deletions Tuna.Revit.Extension.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tuna.Revit.Extension", "src\Tuna.Revit.Extension.csproj", "{34174205-057F-4D7E-AF0A-27B3EE17552A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0CD53AF8-74E4-4F2A-BA04-DC7B0AA1CEC1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution items", "{34275DF4-26BE-4772-A596-EF731C0A66A2}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
Tuna.Revit.Build.props = Tuna.Revit.Build.props
TunaRibbon.xsd = TunaRibbon.xsd
EndProjectSection
EndProject
Expand All @@ -27,6 +26,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{561BD9FE
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tuna.Revit.Test", "tests\Tuna.Revit.Test\Tuna.Revit.Test.csproj", "{49F3D6ED-FF71-403C-8D2B-8775A3080407}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tuna.Revit.Extension", "src\Tuna.Revit.Extension.csproj", "{F675D510-6992-4C0C-9FE9-AAB99638C7B5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -49,48 +50,10 @@ Global
Rvt_23_Release|Any CPU = Rvt_23_Release|Any CPU
Rvt_24_Debug|Any CPU = Rvt_24_Debug|Any CPU
Rvt_24_Release|Any CPU = Rvt_24_Release|Any CPU
Rvt_25_Debug|Any CPU = Rvt_25_Debug|Any CPU
Rvt_25_Release|Any CPU = Rvt_25_Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Release|Any CPU.Build.0 = Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_16_Debug|Any CPU.ActiveCfg = Rvt_16_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_16_Debug|Any CPU.Build.0 = Rvt_16_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_16_Release|Any CPU.ActiveCfg = Rvt_16_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_16_Release|Any CPU.Build.0 = Rvt_16_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_17_Debug|Any CPU.ActiveCfg = Rvt_17_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_17_Debug|Any CPU.Build.0 = Rvt_17_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_17_Release|Any CPU.ActiveCfg = Rvt_17_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_17_Release|Any CPU.Build.0 = Rvt_17_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_18_Debug|Any CPU.ActiveCfg = Rvt_18_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_18_Debug|Any CPU.Build.0 = Rvt_18_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_18_Release|Any CPU.ActiveCfg = Rvt_18_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_18_Release|Any CPU.Build.0 = Rvt_18_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_19_Debug|Any CPU.ActiveCfg = Rvt_19_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_19_Debug|Any CPU.Build.0 = Rvt_19_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_19_Release|Any CPU.ActiveCfg = Rvt_19_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_19_Release|Any CPU.Build.0 = Rvt_19_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_20_Debug|Any CPU.ActiveCfg = Rvt_20_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_20_Debug|Any CPU.Build.0 = Rvt_20_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_20_Release|Any CPU.ActiveCfg = Rvt_20_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_20_Release|Any CPU.Build.0 = Rvt_20_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_21_Debug|Any CPU.ActiveCfg = Rvt_21_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_21_Debug|Any CPU.Build.0 = Rvt_21_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_21_Release|Any CPU.ActiveCfg = Rvt_21_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_21_Release|Any CPU.Build.0 = Rvt_21_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_22_Debug|Any CPU.ActiveCfg = Rvt_22_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_22_Debug|Any CPU.Build.0 = Rvt_22_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_22_Release|Any CPU.ActiveCfg = Rvt_22_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_22_Release|Any CPU.Build.0 = Rvt_22_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_23_Debug|Any CPU.ActiveCfg = Rvt_23_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_23_Debug|Any CPU.Build.0 = Rvt_23_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_23_Release|Any CPU.ActiveCfg = Rvt_23_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_23_Release|Any CPU.Build.0 = Rvt_23_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_24_Debug|Any CPU.ActiveCfg = Rvt_24_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_24_Debug|Any CPU.Build.0 = Rvt_24_Debug|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_24_Release|Any CPU.ActiveCfg = Rvt_24_Release|Any CPU
{34174205-057F-4D7E-AF0A-27B3EE17552A}.Rvt_24_Release|Any CPU.Build.0 = Rvt_24_Release|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -122,6 +85,8 @@ Global
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Rvt_24_Debug|Any CPU.ActiveCfg = Rvt_24_Debug|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Rvt_24_Debug|Any CPU.Build.0 = Rvt_24_Debug|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Rvt_24_Release|Any CPU.ActiveCfg = Rvt_24_Release|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Rvt_25_Debug|Any CPU.ActiveCfg = Rvt_24_Release|Any CPU
{57D210DC-A989-4C3E-84E8-A40B7114052B}.Rvt_25_Release|Any CPU.ActiveCfg = Rvt_24_Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -138,8 +103,8 @@ Global
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_19_Debug|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_19_Debug|Any CPU.Build.0 = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_19_Release|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_20_Debug|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_20_Debug|Any CPU.Build.0 = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_20_Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_20_Debug|Any CPU.Build.0 = Debug|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_20_Release|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_21_Debug|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_21_Debug|Any CPU.Build.0 = Release|Any CPU
Expand All @@ -153,14 +118,62 @@ Global
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_24_Debug|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_24_Debug|Any CPU.Build.0 = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_24_Release|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_25_Debug|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_25_Debug|Any CPU.Build.0 = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_25_Release|Any CPU.ActiveCfg = Release|Any CPU
{49F3D6ED-FF71-403C-8D2B-8775A3080407}.Rvt_25_Release|Any CPU.Build.0 = Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Release|Any CPU.Build.0 = Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_16_Debug|Any CPU.ActiveCfg = Rvt_16_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_16_Debug|Any CPU.Build.0 = Rvt_16_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_16_Release|Any CPU.ActiveCfg = Rvt_16_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_16_Release|Any CPU.Build.0 = Rvt_16_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_17_Debug|Any CPU.ActiveCfg = Rvt_17_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_17_Debug|Any CPU.Build.0 = Rvt_17_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_17_Release|Any CPU.ActiveCfg = Rvt_17_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_17_Release|Any CPU.Build.0 = Rvt_17_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_18_Debug|Any CPU.ActiveCfg = Rvt_18_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_18_Debug|Any CPU.Build.0 = Rvt_18_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_18_Release|Any CPU.ActiveCfg = Rvt_18_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_18_Release|Any CPU.Build.0 = Rvt_18_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_19_Debug|Any CPU.ActiveCfg = Rvt_19_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_19_Debug|Any CPU.Build.0 = Rvt_19_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_19_Release|Any CPU.ActiveCfg = Rvt_19_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_19_Release|Any CPU.Build.0 = Rvt_19_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_20_Debug|Any CPU.ActiveCfg = Rvt_20_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_20_Debug|Any CPU.Build.0 = Rvt_20_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_20_Release|Any CPU.ActiveCfg = Rvt_20_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_20_Release|Any CPU.Build.0 = Rvt_20_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_21_Debug|Any CPU.ActiveCfg = Rvt_21_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_21_Debug|Any CPU.Build.0 = Rvt_21_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_21_Release|Any CPU.ActiveCfg = Rvt_21_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_21_Release|Any CPU.Build.0 = Rvt_21_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_22_Debug|Any CPU.ActiveCfg = Rvt_22_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_22_Debug|Any CPU.Build.0 = Rvt_22_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_22_Release|Any CPU.ActiveCfg = Rvt_22_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_22_Release|Any CPU.Build.0 = Rvt_22_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_23_Debug|Any CPU.ActiveCfg = Rvt_23_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_23_Debug|Any CPU.Build.0 = Rvt_23_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_23_Release|Any CPU.ActiveCfg = Rvt_23_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_23_Release|Any CPU.Build.0 = Rvt_23_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_24_Debug|Any CPU.ActiveCfg = Rvt_24_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_24_Debug|Any CPU.Build.0 = Rvt_24_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_24_Release|Any CPU.ActiveCfg = Rvt_24_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_24_Release|Any CPU.Build.0 = Rvt_24_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_25_Debug|Any CPU.ActiveCfg = Rvt_25_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_25_Debug|Any CPU.Build.0 = Rvt_25_Debug|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_25_Release|Any CPU.ActiveCfg = Rvt_25_Release|Any CPU
{F675D510-6992-4C0C-9FE9-AAB99638C7B5}.Rvt_25_Release|Any CPU.Build.0 = Rvt_25_Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{34174205-057F-4D7E-AF0A-27B3EE17552A} = {0CD53AF8-74E4-4F2A-BA04-DC7B0AA1CEC1}
{57D210DC-A989-4C3E-84E8-A40B7114052B} = {78294CC8-0B3B-48D5-AC91-2E3C02377287}
{49F3D6ED-FF71-403C-8D2B-8775A3080407} = {561BD9FE-C5B6-4817-930A-AC46291408EE}
{F675D510-6992-4C0C-9FE9-AAB99638C7B5} = {0CD53AF8-74E4-4F2A-BA04-DC7B0AA1CEC1}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0F3E44F7-9014-4012-85FD-37E211988994}
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions sample/Tuna.Sample/Commands/SelectionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public Result Execute(ExternalCommandData commandData, ref string message, Eleme

uiDocument.SelectObject(Autodesk.Revit.UI.Selection.ObjectType.Element);

SelectionResult<Reference> result = commandData.Application.ActiveUIDocument.SelectObject(Autodesk.Revit.UI.Selection.ObjectType.Face,
SelectionResult<Reference> result = commandData.Application.ActiveUIDocument.SelectObject(Autodesk.Revit.UI.Selection.ObjectType.Face,
referencePredicate: parameters => parameters.Reference.ConvertToStableRepresentation(document).Contains("SURFACE"), "asd");
if (result.Succeeded)
if (result.SelectionStatus == SelectionStatus.Succeeded)
{

}



commandData.Application.ActiveUIDocument.SelectObject(Autodesk.Revit.UI.Selection.ObjectType.LinkedElement,
element => element.Category.Id == BuiltInCategories.Walls, "asd");
Expand Down
22 changes: 3 additions & 19 deletions sample/Tuna.Sample/Tuna.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../Tuna.Revit.Build.props" />
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>latest</LangVersion>
<Configurations>
Debug;Release;
Rvt_16_Debug;Rvt_16_Release;
Rvt_17_Debug;Rvt_17_Release;
Rvt_18_Debug;Rvt_18_Release;
Rvt_19_Debug;Rvt_19_Release;
Rvt_20_Debug;Rvt_20_Release;
Rvt_21_Debug;Rvt_21_Release;
Rvt_22_Debug;Rvt_22_Release;
Rvt_23_Debug;Rvt_23_Release;
Rvt_24_Debug;Rvt_24_Release;
</Configurations>
<TunaVersion>8</TunaVersion>
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<StartAction>Program</StartAction>
<StartProgram>D:\Autodesk\Revit 2020\Revit.exe</StartProgram>
</PropertyGroup>

<!--<ItemGroup Condition="'$(Configuration.StartsWith(Rvt_16))'">
<PackageReference Include="Tuna.Revit.Extension" Version="2016.2.$(TunaVersion)" />
</ItemGroup>
Expand Down Expand Up @@ -74,12 +58,12 @@
</None>
</ItemGroup>

<Target Name="CopyAddin" BeforeTargets="PostBuildEvent" Condition="'$(Configuration.Contains(Debug))'">
<!--<Target Name="CopyAddin" BeforeTargets="PostBuildEvent" Condition="'$(Configuration.Contains(Debug))'">
<ItemGroup>
<SourceFiles Include="$(ProjectDir)$(OutDir)\**\*.*"></SourceFiles>
</ItemGroup>
<Copy SourceFiles="$(ProjectDir)\Tuna.addin" DestinationFolder="C:\ProgramData\Autodesk\Revit\Addins\2020"></Copy>
<Copy SourceFiles="@(SourceFiles)" DestinationFiles="@(SourceFiles->'C:\ProgramData\Autodesk\Revit\Addins\2020\Tuna\%(RecursiveDir)%(Filename)%(Extension)')"></Copy>
</Target>
</Target>-->
</Project>
Loading

0 comments on commit a8af096

Please sign in to comment.