XML Export;Method with Array of Struct

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
ThiloK
Jr. Member
Jr. Member
Posts: 2
Joined: 22 Jun 2015, 11:25

XML Export;Method with Array of Struct

Post by ThiloK »

Hello,

currently I'm using UaModeler 1.4.1 329.

I modeled a method below an object in Objects-Space.
This method is meant to add an instance below the same object.
In the InputArguments there is an array of struct, in UaModeler I added a value for ArrayDimensions but in the exported XML I don't see any.

For clarity the structure if the method as a tree

Method
- InputArguments
-- Id:String
-- SamplingInterval:UInt16
-- Motor:MotorType[10]

with Structure MotorType
- SerialNumber:String
- ...

User avatar
Support Team
Hero Member
Hero Member
Posts: 3068
Joined: 18 Mar 2011, 15:09

Re: XML Export;Method with Array of Struct

Post by Support Team »

Hello ThiloK,

We tried to reproduce. In our exported XML file the ArrayDimensions tag is filled correctly:

<Value>
<uax:ListOfExtensionObject>
<uax:ExtensionObject>
<uax:TypeId>
<uax:Identifier>i=297</uax:Identifier>
</uax:TypeId>
<uax:Body>
<uax:Argument>
<uax:Name>StructureArray</uax:Name>
<uax:DataType>
<uax:Identifier>ns=1;i=3002</uax:Identifier>
</uax:DataType>
<uax:ValueRank>1</uax:ValueRank>
<uax:ArrayDimensions>6</uax:ArrayDimensions>
<uax:Description/>
</uax:Argument>
</uax:Body>
</uax:ExtensionObject>
</uax:ListOfExtensionObject>
</Value>

Best Regards
Support Team

Post Reply