How to Export Component Architecture View as Image in System Composer (R2021b)?

Context:
I am using MATLAB R2021b with the System Composer toolbox and would like to export the architecture view of a component (e.g., from the Architecture Diagram) as an image file (e.g., PNG, JPEG, or PDF). However, I have not found a straightforward method to accomplish this.
Attempted Solutions:
  1. GUI Approach:
  • Looked for export options under the File > Export menu in the architecture view, but no image-export options appear.
  • Tried right-clicking on the diagram canvas or component, but no "Export to Image" option is available.
  1. Command-Line Approach:
  • Checked the systemcomposer API documentation for R2021b but did not find methods like exportDiagram or similar for views.
Question:
  • Is there a supported workflow to export the architecture view as an image in System Composer (R2021b)?
  • Are there hidden options, specific APIs, or workarounds (e.g., screen capture scripts) for this version?
Additional Notes:
  • I reviewed the R2021b documentation (System Composer Export/Print) but found no relevant guidance.
  • If newer versions (e.g., R2023a+) support this feature, confirmation would also be helpful.
Thank you for your assistance!

Réponses (1)

4 commentaires

Do you mean that we need to generate report to have images?
Or do we have API to directly export view to image (png or svg)?
Thanks and Regards,
Minh
Thanks for the answer!
For the views: I have used ViewFinder to get view result and export image source using .Snapshort.Image and it worked.
For the sequence diagrams: I don't know the way to get the sequence diagram image. My workaround solution now is to get sequence diagram svg text in generated html. Do we have better way to get the svg image of sequence diagram?
BR,
Minh
@Truong Minh, please submit a support ticket and they can provide you with a workaround 🙂

Connectez-vous pour commenter.

Catégories

En savoir plus sur System Composer dans Centre d'aide et File Exchange

Produits

Version

R2021b

Question posée :

le 4 Mar 2025

Commenté :

le 27 Fév 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by