Closed sorinsaladea closed 4 years ago
Hello @sorinsaladea, I just tried this myself and it seems array of records is not yet implemented. I will create fix soon.
@sorinsaladea,
Here is a complete example to re-create that XML:
ws = autosar.workspace(version="4.2.2")
package = ws.createPackage('Constants', role='Constant')
package.createConstant('CDiagNv_NvMServiceRequestType', None,
[
{'ServiceId': 0, 'RequestResult': 0}
], label = None)
ws.saveXML('Constants.arxml', filters=['/Constants'])
Hello,
Is there a way to create the following structure?
I tried creating array data type, record data type and RECORD-VALUE-SPECIFICATION and ARRAY-VALUE-SPECIFICATION are reversed.