diff --git a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/PlantReadPath.cs b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/PlantReadPath.cs index 420ba39..2fde9ab 100644 --- a/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/PlantReadPath.cs +++ b/Plant3D2026/P_Rec_Annot/src/PRecAnnot.Plant3D2026/PlantReadPath.cs @@ -163,7 +163,7 @@ internal sealed class PlantOrthoViewportReader : IOrthoViewportReader if (files is null) return null; foreach (var file in files) { - var value = file?.GetType().GetProperty("Value")?.GetValue(file)?.ToString(); + var value = file as string ?? file?.GetType().GetProperty("Value")?.GetValue(file)?.ToString(); if (!string.IsNullOrWhiteSpace(value)) return value; } }