Maple Student Edition
Maple Personal Edition
Maple Player for iPad
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Other Application Areas
High Schools & Two-Year Colleges
Testing & Assessment
High Performance Computing
Maple Ambassador Program
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
SetModel - set linked Modelica or MapleSim model
A := MapleSim:-LinkModel();
string ; name of the model in the linked Modelica file or the filename of the MapleSim model
A:-SetModel links A to the specified model.
If A is linked to a Modelica file, SetModel allows you to choose a different model defined in the same Modelica file.
If A is linked to a MapleSim model, SetModel expects the filename of a new model to link to.
It is recommended that you use the LinkModel command to change the linked model instead of the SetModel command.
The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.
Linking to a Modelica model (located in .mo file):
There are two models in this Modelica file: "Main" and "Ball". Check which model A is linked to:
Setting linked model to the "Ball" model.
Check that setting was successful:
MapleSim, MapleSim[LinkModel], MapleSim[LinkModel][GetModel]
Download Help Document