How to Export Component Architecture View as Image in System Composer (R2021b)?
Show older comments
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:
- 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.
- 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!
Answers (1)
Josh Kahn
on 10 Mar 2025
0 votes
There is no way to do this in 21b but Report Generation APIs and an export button were added in 22b:
Regards,
Josh
4 Comments
Truong Minh
on 19 Feb 2026
Hi @Josh Kahn
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
Josh Kahn
on 25 Feb 2026
Truong Minh
on 26 Feb 2026
Hi @Josh Kahn
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
Josh Kahn
on 27 Feb 2026
@Truong Minh, please submit a support ticket and they can provide you with a workaround 🙂
Categories
Find more on System Composer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!