feat: complete p-rec-annot line connection pipeline

This commit is contained in:
codex
2026-08-07 09:59:54 +03:00
parent 01a0b711d0
commit 532c9dc1f2
11 changed files with 264 additions and 11 deletions
@@ -3,7 +3,7 @@ using PRecAnnot.Core;
namespace PRecAnnot.Plant3D2026;
internal sealed record LineNumberRuntimeConfiguration(LineNumberAnnotationSettings Annotations, AnnotateLineNumbersAssets Assets);
internal sealed record LineNumberRuntimeConfiguration(LineNumberAnnotationSettings Annotations, AnnotateLineNumbersAssets Assets, LineConnectionAssets Connections);
internal static class LineNumberRuntimeConfigurationReader
{
@@ -11,7 +11,8 @@ internal static class LineNumberRuntimeConfigurationReader
{
var annotationPath = RequiredLocalFile("P_REC_ANNOT_LINE_NUMBER_ANNOTATION_SETTINGS_PATH");
var drawingPath = RequiredLocalFile("P_REC_ANNOT_LINE_NUMBER_DRAWING_SETTINGS_PATH");
return new(new LineNumberAnnotationSettingsLoader().Load(File.ReadAllText(annotationPath)), new AnnotateLineNumbersSettingsLoader().Load(File.ReadAllText(drawingPath)));
var drawingXml = File.ReadAllText(drawingPath);
return new(new LineNumberAnnotationSettingsLoader().Load(File.ReadAllText(annotationPath)), new AnnotateLineNumbersSettingsLoader().Load(drawingXml), new LineConnectionSettingsLoader().Load(drawingXml));
}
private static string RequiredLocalFile(string variable)