Skip to content

Commit

Permalink
Revit 2024 (#31)
Browse files Browse the repository at this point in the history
* basics for revit 2024

* run generator first time

* copied fill ins from 2023
  • Loading branch information
adamhathcock authored Jul 12, 2024
1 parent e519034 commit 343e627
Show file tree
Hide file tree
Showing 2,063 changed files with 83,007 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Speckle.Host.Apis.sln
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rhino", "Rhino", "{F2F213A8
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speckle.Rhino7.Fakes", "Speckle.Rhino7.Fakes\Speckle.Rhino7.Fakes.csproj", "{1F2F89EE-2032-4350-BFC9-6B74D477DE95}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speckle.Revit2024.Fakes", "Speckle.Revit2024.Fakes\Speckle.Revit2024.Fakes.csproj", "{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speckle.Revit2024.Fakes.Generator", "Speckle.Revit2024.Fakes.Generator\Speckle.Revit2024.Fakes.Generator.csproj", "{F97FB46C-223C-4818-8A5A-330E897F4FC0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -59,6 +63,14 @@ Global
{1F2F89EE-2032-4350-BFC9-6B74D477DE95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F2F89EE-2032-4350-BFC9-6B74D477DE95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F2F89EE-2032-4350-BFC9-6B74D477DE95}.Release|Any CPU.Build.0 = Release|Any CPU
{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A}.Release|Any CPU.Build.0 = Release|Any CPU
{F97FB46C-223C-4818-8A5A-330E897F4FC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F97FB46C-223C-4818-8A5A-330E897F4FC0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F97FB46C-223C-4818-8A5A-330E897F4FC0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F97FB46C-223C-4818-8A5A-330E897F4FC0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{00F3BEC6-614D-4AEE-923A-0E2DF40FDE6B} = {42C36267-88A8-4F94-9E62-5D43A02D033C}
Expand All @@ -67,5 +79,7 @@ Global
{4B16340A-C493-41AB-85E8-E32C92533118} = {BD68BFA8-3EC7-4689-987E-6422A37CF3B0}
{414C51A1-6237-43BB-A59A-E9879880EF73} = {3B0D8F6E-C701-446E-BAE3-B6FDF1812901}
{1F2F89EE-2032-4350-BFC9-6B74D477DE95} = {F2F213A8-6D57-492F-BA11-C9F26057B1DA}
{A73658B1-0C37-4EAD-AAF8-8FECD2EEFC9A} = {BD68BFA8-3EC7-4689-987E-6422A37CF3B0}
{F97FB46C-223C-4818-8A5A-330E897F4FC0} = {3B0D8F6E-C701-446E-BAE3-B6FDF1812901}
EndGlobalSection
EndGlobal
47 changes: 47 additions & 0 deletions Speckle.Revit2024.Fakes.Generator/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System.Reflection;
using Speckle.Shared;

var asm = Assembly.GetEntryAssembly();
Assembly GetAssembly(string name)
{
var path = Path.Combine(Path.GetDirectoryName(asm.Location), name);
return Assembly.ReflectionOnlyLoadFrom(path);
}

Generator generator =
new(
"Speckle.Revit2024.Fakes",
[GetAssembly("RevitAPI.dll"), GetAssembly("RevitAPIUI.dll")],
[
"Autodesk.Revit.DB",
"Autodesk.Revit.DB.Architecture",
"Autodesk.Revit.ApplicationServices",
"Autodesk.Revit.Creation",
"Autodesk.Revit.UI",
"Autodesk.Revit.DB.ExtensibleStorage",
"Autodesk.Revit.DB.ExternalService",
"Autodesk.Revit.DB.Structure",
"Autodesk.Revit.DB.Electrical",
"Autodesk.Revit.DB.Plumbing",
"Autodesk.Revit.DB.Fabrication",
"Autodesk.Revit.DB.Mechanical",
"Autodesk.Revit.DB.Analysis",
"Autodesk.Revit.DB.PointClouds",
"Autodesk.Revit.Exceptions"
],
[
new("WallSweepInfo", []),
new("ToggleButtonData", []),
new("RadioButtonGroup", []),
new("PanelScheduleTemplate", [new("IsValidType")]),
new("FabricReinSpanSymbol", [new("Create")]),
new("PathReinSpanSymbol", [new("Create")]),
new("RebarSystemSpanSymbol", [new("Create")]),
new("ProjectInfo", [new("Name")]),
new("Dimension", [new("Name")]),
new("ReferencePlane", [new("Name")]),
new("ImageView", [new("Create")])
],
GeneratorOptions.ExplicitProperties
);
generator.Generate();
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net48</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<Import Project="..\Speckle.Shared\Speckle.Shared.projitems" Label="Shared" />
<ItemGroup>
<PackageReference Include="Speckle.Revit.API" VersionOverride="2024.0.0" />
</ItemGroup>
</Project>
46 changes: 46 additions & 0 deletions Speckle.Revit2024.Fakes.Generator/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"version": 2,
"dependencies": {
".NETFramework,Version=v4.8": {
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
},
"PolySharp": {
"type": "Direct",
"requested": "[1.14.1, )",
"resolved": "1.14.1",
"contentHash": "mOOmFYwad3MIOL14VCjj02LljyF1GNw1wP0YVlxtcPvqdxjGGMNdNJJxHptlry3MOd8b40Flm8RPOM8JOlN2sQ=="
},
"Speckle.Revit.API": {
"type": "Direct",
"requested": "[2024.0.0, )",
"resolved": "2024.0.0",
"contentHash": "a4dsvZ00ocvzTgCD6dUdydf0jIZDVcDhs6dUX9cv+y3aTDbU8rmzhYXWt8sThedIG+IPSVa0vHmAH9pKiJL3SQ=="
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
}
},
".NETFramework,Version=v4.8/win7-x64": {}
}
}
102 changes: 102 additions & 0 deletions Speckle.Revit2024.Fakes/Enumerables.Plumbing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
using System.Collections;
using System.Collections.Generic;

namespace Autodesk.Revit.DB.Plumbing
{
public partial class FluidTemperatureSetIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class FluidType
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}
}

namespace Autodesk.Revit.DB.Electrical
{
public partial class CableTraySizeIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class CableTraySizes
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ConduitSizeIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ConduitSizes
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ConduitSizeSettingIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ConduitSizeSettings
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}
}

namespace Autodesk.Revit.DB.Mechanical
{
public partial class DuctSizeIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class DuctSizes
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class DuctSizeSettingIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class DuctSizeSettings
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}
}

namespace Autodesk.Revit.DB.Structure
{
public partial class RebarContainer
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class RebarContainerIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}
}

namespace Autodesk.Revit.DB.PointClouds
{
public partial class PointCollection
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class PointIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class CloudPoint
{
public static implicit operator XYZ(CloudPoint cp) => new(cp.X, cp.Y, cp.Z);
}
}
134 changes: 134 additions & 0 deletions Speckle.Revit2024.Fakes/Enumerables.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
using System.Collections;
using System.Collections.Generic;

namespace Autodesk.Revit.DB;

public partial class Definitions
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class CurveLoop
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportFontTable
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportPatternTable
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportLineweightTableIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ExportPatternTableIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ExportFontTableIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class CurveLoopIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ExportLayerTableIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class ExportLinetypeTableIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class GeometryElement
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportLinetypeTable
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportLineweightTable
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ExportLayerTable
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class SolidCurveIntersection
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class KeyBasedTreeEntries
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class FilteredElementCollector
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class FilteredWorksetCollector
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class DefinitionGroups
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ComponentRepeater
{
IEnumerator IEnumerable.GetEnumerator() => throw new System.NotImplementedException();
}

public partial class ComponentRepeaterIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class KeyBasedTreeEntriesIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class FilteredElementIdIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class FilteredElementIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class FilteredWorksetIdIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}

public partial class FilteredWorksetIterator
{
object IEnumerator.Current => throw new System.NotImplementedException();
}
9 changes: 9 additions & 0 deletions Speckle.Revit2024.Fakes/Speckle.Revit2024.Fakes.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>true</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" />
</ItemGroup>
</Project>
Loading

0 comments on commit 343e627

Please sign in to comment.