If you have used the sysml importer for EA or Rhapsody. you know the topic: both importers can "import external diagrams as images". That means, the final diagrams are not real medini sysml diagrams but they show snapshots of the original diagram as it looks like in the external tool.
There are use cases where you want to replicate that, for example if you have imported your system model from Excel or any other tool and there is a picture of that to be shown. Find an extended diagram.js method attached to this article that offers a function to exactly do that. Example code is also attached.
Happy Scripting
Jan