Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rhino7 fileio #34

Merged
merged 3 commits into from
Oct 10, 2024
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
5 changes: 3 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.28.2",
"version": "0.29.2",
"commands": [
"dotnet-csharpier"
]
],
"rollForward": false
}
}
}
6 changes: 3 additions & 3 deletions Build/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<PackageVersion Include="Speckle.Revit.API" Version="2023.0.0" />
<PackageVersion Include="RhinoCommon" Version="7.13.21348.13001" />
<PackageVersion Include="RhinoWindows" Version="7.13.21348.13001" />
<PackageVersion Include="System.Drawing.Common" Version="8.0.6" />
<GlobalPackageReference Include="PolySharp" Version="1.14.1" />
<GlobalPackageReference Include="MinVer" Version="5.0.0" />
<GlobalPackageReference Include="MinVer" Version="6.0.0" />
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="System.Drawing.Common" Version="8.0.6" />
</ItemGroup>
</Project>
</Project>
4 changes: 2 additions & 2 deletions Speckle.Revit2022.Fakes.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Assembly GetAssembly(string name)
"Autodesk.Revit.DB.Mechanical",
"Autodesk.Revit.DB.Analysis",
"Autodesk.Revit.DB.PointClouds",
"Autodesk.Revit.Exceptions"
"Autodesk.Revit.Exceptions",
],
[
new("WallSweepInfo", []),
Expand All @@ -40,7 +40,7 @@ Assembly GetAssembly(string name)
new("ProjectInfo", [new("Name")]),
new("Dimension", [new("Name")]),
new("ReferencePlane", [new("Name")]),
new("ImageView", [new("Create")])
new("ImageView", [new("Create")]),
],
GeneratorOptions.ExplicitProperties
);
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2022.Fakes.Generator/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2022.Fakes/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
4 changes: 2 additions & 2 deletions Speckle.Revit2023.Fakes.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Assembly GetAssembly(string name)
"Autodesk.Revit.DB.Mechanical",
"Autodesk.Revit.DB.Analysis",
"Autodesk.Revit.DB.PointClouds",
"Autodesk.Revit.Exceptions"
"Autodesk.Revit.Exceptions",
],
[
new("WallSweepInfo", []),
Expand All @@ -40,7 +40,7 @@ Assembly GetAssembly(string name)
new("ProjectInfo", [new("Name")]),
new("Dimension", [new("Name")]),
new("ReferencePlane", [new("Name")]),
new("ImageView", [new("Create")])
new("ImageView", [new("Create")]),
],
GeneratorOptions.ExplicitProperties
);
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2023.Fakes.Generator/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2023.Fakes/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
4 changes: 2 additions & 2 deletions Speckle.Revit2024.Fakes.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Assembly GetAssembly(string name)
"Autodesk.Revit.DB.Mechanical",
"Autodesk.Revit.DB.Analysis",
"Autodesk.Revit.DB.PointClouds",
"Autodesk.Revit.Exceptions"
"Autodesk.Revit.Exceptions",
],
[
new("WallSweepInfo", []),
Expand All @@ -40,7 +40,7 @@ Assembly GetAssembly(string name)
new("ProjectInfo", [new("Name")]),
new("Dimension", [new("Name")]),
new("ReferencePlane", [new("Name")]),
new("ImageView", [new("Create")])
new("ImageView", [new("Create")]),
],
GeneratorOptions.ExplicitProperties
);
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2024.Fakes.Generator/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
6 changes: 3 additions & 3 deletions Speckle.Revit2024.Fakes/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
4 changes: 3 additions & 1 deletion Speckle.Rhino7.Fakes.Generator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Assembly GetAssembly(string name)
"Rhino.Commands",
"Rhino.Render",
"Rhino.Display",
"Rhino.Geometry.Collections"
"Rhino.Geometry.Collections",
"Rhino.FileIO",
],
[
new("HostUtils", [new("GetCustomComputeEndpoints")]),
Expand All @@ -43,6 +44,7 @@ Assembly GetAssembly(string name)
new("CustomRenderMeshProvider2", [new("BoundingBox")]),
new("Color4f", [new("GetObjectData")]),
new("Point3dList", [new("Duplicate"), new("System.ICloneable.Clone")]),
new("File3dmCommonComponentTable`1", [new("System.Collections.Generic.ICollection<T>.Add")]),
]
);
generator.Generate();
6 changes: 3 additions & 3 deletions Speckle.Rhino7.Fakes.Generator/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"MinVer": {
"type": "Direct",
"requested": "[5.0.0, )",
"resolved": "5.0.0",
"contentHash": "ybkgpQMtt0Fo91l5rYtE3TZtD+Nmy5Ko091xvfXXOosQdMi30XO2EZ2+ShZt89gdu7RMmJqZaJ+e1q6d+6+KNw=="
"requested": "[6.0.0, )",
"resolved": "6.0.0",
"contentHash": "+/SsmiySsXJlvQLCGBqaZKNVt3s/Y/HbAdwtop7Km2CnuZbaScoqkWJEBQ5Cy9ebkn6kCYKrHsXgwrFdTgcb3g=="
},
"PolySharp": {
"type": "Direct",
Expand Down
10 changes: 10 additions & 0 deletions Speckle.Rhino7.Fakes/SHA1OpenNURBS.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Rhino.FileIO;

public partial class SHA1OpenNURBS
{
protected override void HashCore(byte[] array, int ibStart, int cbSize) => throw new NotImplementedException();

protected override byte[] HashFinal() => throw new NotImplementedException();

public override void Initialize() => throw new NotImplementedException();
}
5 changes: 5 additions & 0 deletions Speckle.Rhino7.Fakes/generated/Rhino.BitmapExtensions.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ public static System.Drawing.Bitmap ConvertToNormalMap(
System.Boolean bLossyCompressionSource,
out System.Boolean bPositiveZComponent
) => throw new System.NotImplementedException();

public static Rhino.FileIO.FileReference BitmapAsTextureFileReference(
System.Drawing.Bitmap bitmap,
System.UInt32 crc
) => throw new System.NotImplementedException();
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ public virtual Rhino.Display.VisualAnalysisMode[] GetActiveVisualAnalysisModes()

public virtual System.String ShortDescription(System.Boolean plural) => throw new System.NotImplementedException();

public virtual void Description(Rhino.FileIO.TextLog textLog) => throw new System.NotImplementedException();

public virtual System.Boolean IsMeshable(Rhino.Geometry.MeshType meshType) =>
throw new System.NotImplementedException();

Expand Down
5 changes: 5 additions & 0 deletions Speckle.Rhino7.Fakes/generated/Rhino.DocObjects.Texture.s.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public virtual System.String FileName
get => throw new System.NotImplementedException();
set { }
}
public virtual Rhino.FileIO.FileReference FileReference
{
get => throw new System.NotImplementedException();
set { }
}
public virtual System.Guid Id
{
get => throw new System.NotImplementedException();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Rhino.FileIO;

public partial class BinaryArchiveException : System.IO.IOException
{
public BinaryArchiveException() { }

public BinaryArchiveException(System.String message) => throw new System.NotImplementedException();
}
24 changes: 24 additions & 0 deletions Speckle.Rhino7.Fakes/generated/Rhino.FileIO.BinaryArchiveFile.s.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace Rhino.FileIO;

public partial class BinaryArchiveFile : System.IDisposable
{
public BinaryArchiveFile() { }

public BinaryArchiveFile(System.String filename, Rhino.FileIO.BinaryArchiveMode mode) =>
throw new System.NotImplementedException();

public virtual System.Boolean Open() => throw new System.NotImplementedException();

public virtual void Close() => throw new System.NotImplementedException();

public virtual void Dispose() => throw new System.NotImplementedException();

public virtual Rhino.FileIO.BinaryArchiveReader Reader
{
get => throw new System.NotImplementedException();
}
public virtual Rhino.FileIO.BinaryArchiveWriter Writer
{
get => throw new System.NotImplementedException();
}
}
11 changes: 11 additions & 0 deletions Speckle.Rhino7.Fakes/generated/Rhino.FileIO.BinaryArchiveMode.s.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Rhino.FileIO;

public enum BinaryArchiveMode
{
Unknown,
Read,
Write,
ReadWrite,
Read3dm,
Write3dm,
}
Loading