Adding an SML Model
Follow this procedure to add an SML model to a project using Twin Builder‘s SML Model Editor:
- Select Tools > Edit Libraries > Models. The Edit Libraries dialog box appears.
- Click Add Model to open the Add Model dialog box.
- Select the SML radio button.
- Type the new SML model name in the Name field.
The SML Model Editor opens, displaying new SML model entity declarations in a tab bearing the model name you chose above.
- Edit the SML model source code as needed.
- Optionally, you can check syntax.
- When finished editing, select SML Model Editor > Compile & Update Project to add the model to the project. See Importing and Updating Twin Builder Models and Components for additional details.
You can use Export ModelName Text As to open a dialog box to save and export the code present in the editor.