Skip to content

Commit ec3999f

Browse files
KyllianAubryGitHub Enterprise
authored andcommitted
SKA-997: handle GenerationTool for FMI2 FMUs (#186)
1 parent cba3bcb commit ec3999f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

FmuImporter/FmiBridge/FmiModel/Internal/ModelDescription.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ public ModelDescription(Fmi2.fmiModelDescription input, Action<LogSeverity, stri
110110
ModelName = input.modelName;
111111
Description = input.description;
112112
InstantiationToken = input.guid.Normalize();
113+
GenerationTool = string.IsNullOrEmpty(input.generationTool)
114+
? GenerationTools.Unset
115+
: input.generationTool.Normalize().Contains("Vector vVIRTUALtarget")
116+
? GenerationTools.Vector_vVIRTUALtarget
117+
: GenerationTools.Other;
113118
FmiVersion = input.fmiVersion;
114119
Version = input.version;
115120
VariableNamingConvention =

0 commit comments

Comments
 (0)