Skip to content

Commit

Permalink
Set ParentNodeId of nodes at import from NodeSet2 files. (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinMoldovean authored Dec 10, 2020
1 parent c171b14 commit e53d97d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,14 @@ private NodeState Import(ISystemContext context, UANode node)
}
}

string parentNodeId = (node as UAInstance)?.ParentNodeId;

if (!String.IsNullOrEmpty(parentNodeId))
{
// set parent NodeId in Handle property.
importedNode.Handle = ImportNodeId(parentNodeId, context.NamespaceUris, true);
}

return importedNode;
}

Expand Down

0 comments on commit e53d97d

Please sign in to comment.