You can export to Modelica file only parts, ports, and connectors displayed in the Internal Block Diagram. The mechanism generates Modelica (.mo) file with an IBD name and save it to your file directory. See the following figure as example of export result and difference between whole (exporting Block) and partial (exporting IBD) model export. After the Circuit IBD export, only displayed parts are exported: Source, Resistor, Capacitor and Ground. Differently, when exporting the Circuit Block - all parts are exported: Source, Resistor, Capacitor, Inductor, Resistor and Ground. Learn how to export the whole model >>
The difference between whole (exporting Block) and partial (exporting IBD) export.
Procedure of partial export to the Modelica file
You can use the Internal Block Diagram to select what to export to Modelica. Prepare the IBD by modifying an existing or creating a new one and display parts and ports automatically. Follow the procedure below, to export the Inetrnal Block Diagram to the *.mo file.
To export a part of model to the Modelica file
Create new or modify existing Internal Block Diagram by displaying elements you want to export.