-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* basics for revit 2024 * run generator first time * copied fill ins from 2023
- Loading branch information
1 parent
e519034
commit 343e627
Showing
2,063 changed files
with
83,007 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
12 changes: 12 additions & 0 deletions
12
Speckle.Revit2024.Fakes.Generator/Speckle.Revit2024.Fakes.Generator.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.