Skip to content

Commit

Permalink
Fix for GitHub issue 199 (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
juileetikekar authored May 10, 2024
1 parent 2f6c666 commit 4e97b13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AasxPackageLogic/ThingDescription/TDJsonImport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,10 @@ public static Aas.SubmodelElementCollection BuildForms(JObject tdJObject)
// AAS Semantic ID
public static Aas.Reference createSemanticID(string tdType)
{
Aas.Reference tdSemanticId = new(Aas.ReferenceTypes.ExternalReference, new List<Aas.IKey>() { new Aas.Key((Aas.KeyTypes)Aas.Stringification.KeyTypesFromString(tdType), TDSemanticId.getSemanticID(tdType)) });
var key = Aas.Stringification.KeyTypesFromString(tdType);
Aas.Reference tdSemanticId = new(Aas.ReferenceTypes.ExternalReference, new List<Aas.IKey>() {
new Aas.Key(key == null ? Aas.KeyTypes.GlobalReference : (Aas.KeyTypes)key,
TDSemanticId.getSemanticID(tdType))});

return tdSemanticId;
}
Expand Down

0 comments on commit 4e97b13

Please sign in to comment.