feat: add p-rec-annot Plant component geometry adapter

This commit is contained in:
codex
2026-08-07 09:22:16 +03:00
parent 95ae9dfd18
commit 43c9e42b5b
4 changed files with 90 additions and 0 deletions
@@ -87,6 +87,20 @@ public sealed record GeometrySnapshot
public double? Elevation { get; init; }
}
// Platform-neutral result of the legacy GetComponentGeometry contract. The
// Plant adapter is responsible for reading Parts/Pipes and normalising units;
// consumers do not take a dependency on Autodesk managed assemblies.
public sealed record ComponentGeometryDefinition(
string Kind,
IReadOnlyDictionary<string, string> Parameters,
Bounds3Dto Bounds,
bool ImperialDimensions);
public sealed record ComponentGeometryReadResult(bool Success, ComponentGeometryDefinition? Geometry, string? FailureCode = null);
public interface IPlantComponentGeometryReader
{
ComponentGeometryReadResult Read(string stableEntityId, bool convertToMetric);
}
public sealed record OrthoViewportInfo
{
public required string Id { get; init; }