feat: complete p-rec-annot line connection pipeline
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user