Files
speckle-sharp-host-apis/Speckle.Revit2024.Fakes.Generator/Program.cs
T
Adam Hathcock fb415d0416
.NET Build and Publish / build (push) Has been cancelled
Fix rhino7 fileio (#34)
* fix issue with basetype being null

* add Rhino.FileIO properly

* update csharpier
2024-10-10 10:13:02 +01:00

48 lines
1.5 KiB
C#

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();