girishchandranc / autosarfactory

AutosarFactory is a python package which helps user to read/create/modify AUTOSAR standard arxml files.
MIT License
87 stars 28 forks source link

Export referenced elements or export multiple packages. #22

Open punithspal opened 7 months ago

punithspal commented 7 months ago

This is extension to the arxml export support provided previously.

For example, there are three packages.

  1. AUTOSAR Platform Package- which has all datatype, constraints, units etc
  2. SWCs package- where all the SWC are defined
  3. An other package- may be consisting of compu methods, init values etc

Now, when i export a SWC arxml, it contains only the SWC and not the referrenced elements. When this arxml is imported in a tool like simulink, the model will load with errors.

It would be beneficial, while exporting a component in an arxml, if all the referenced elements are also exported or if we can export multiple packages together in one arxml.

girishchandranc commented 6 months ago

Hi @punithspal , Thanks for the request. If I understood you correctly, you want to export a self contained arxml file with all the referenced nodes. If this understanding correct?

punithspal commented 6 months ago

Yes, this is exactly what I have requested.