-
From the
Compass,
click
My 3D Modeling Apps
, and select
Engineering Rules Capture.
-
From the
action bar,
click
Action
.
For full information about actions, see
Engineering Rules Capture
Users Guide: Working with Actions: Creating an Action.
-
In the
Action Editor, do the following:
-
Click the text pane to enter it.
-
Press
Enter to go to a new line.
-
Click
Language Browser.
-
In the
Language Browser, the
Search box, start typing
import.
The hits are displayed dynamically as you type.
-
Double-click the search result
ImportModelicaFile.
ImportModelicaFile()
is added in the
Action Editor pane.
-
Click in the bracket of the above function and type the file
path with quotes.
The full text is
now:ImportModelicaFile("E:\MyExperiments\MyModelX.mo")
-
Click
OK.
The result is:
- The action is created.
- In the
tree,
under the
Relations.1 node, the action is displayed
with an icon
.
-
In the
tree,
under the
Relations.1 node, right-click
Action 1 and select
.
-
In the
Insert Object dialog box, click
OK.
The Modelica file
MyModelX is imported in session, at root
level.
-
From the
Compass,
click
My 3D Modeling Apps
, and select
Behavior Modeling.
Note:
You can now edit and run the action directly without
changing app. You can edit the action by double-clicking the action in the
tree.