You can export the values of a runtime object through the Variables pane to the following Specifications - a new InstanceSpecification.
- an existing InstanceSpecification.
- the InstanceSpecification that created the runtime object. Once exported, the values of a runtime object will be set to the slots of the InstanceSpecification.
The type of InstanceSpecification you want to export the values of a runtime object to, depends on the element you used to create the runtime object. If the element is a Classifier, you can export the values of the runtime object to either of the following - A new InstanceSpecification.
- An existing InstanceSpecification.
If the element is an InstanceSpecification, you can export the values of the runtime object to either of the following - A new InstanceSpecification.
- The same InstanceSpecification that you used to create that runtime object.
To export a runtime value to a new InstanceSpecification
Do either of the following
- Click a runtime object whose value you want to export in the Name column and click the Export to New Instance icon on the Variables pane toolbar.
- Right-click the row and select Export Value To > New Instance
![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > Export_toNewInst.png (Exporting Value of the Runtime Object to a New Instance) Exporting Value of the Runtime Object to a New Instance](/download/attachments/106656260/Export_toNewInst.png?version=1&modificationDate=1496884781186&api=v2)
2. The Select Owner dialog will open. Select the owner of the new InstanceSpecification (the system folder). ![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > select-owner-a.png (Selecting the Owner ofInstance Specification in the Select Owner Dialog) Selecting the Owner ofInstance Specification in the Select Owner Dialog](/download/attachments/106656260/select-owner-a.png?version=1&modificationDate=1496884781130&api=v2)
3. Click OK. To export a runtime value to an existing InstanceSpecification
Do either of the following
- Click a runtime object whose value you want to export in the Name column and click the Export to Instance icon on the Variables pane toolbar.
- Right-click the row and select Export Value To > Instance.
![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > Export_toExist_Inst.png (Exporting a Runtime Valuetoan Existing Instance through the Context Menu) Exporting a Runtime Valuetoan Existing Instance through the Context Menu](/download/attachments/106656260/Export_toExist_Inst.png?version=1&modificationDate=1496884781302&api=v2)
To export the value of a runtime object using this method, the runtime object must be created from a Classifier. |
2. The Select Instance dialog will open. Select an InstanceSpecification that will be used to save the runtime object (You can select only the InstanceSpecification whose classifier is the same as that of the runtime object).
![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > select-instance-a.png (Selecting an InstanceSpecification in the Select Instance Dialog) Selecting an InstanceSpecification in the Select Instance Dialog](/download/attachments/106656260/select-instance-a.png?version=1&modificationDate=1496884781073&api=v2)
3. Click OK. To export a runtime value to the InstanceSpecification that has created the runtime object
Do either of the following
- Click a runtime object whose value you want to export in the Name column and click the Export to Instance icon on the Variables pane toolbar.
- Right-click the row and select Export Value To > Instance.
![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > Export_toCreatorInstance.png (Exporting a Runtime Value to the Creating Instance through the Context Menu) Exporting a Runtime Value to the Creating Instance through the Context Menu](/download/attachments/106656260/Export_toCreatorInstance.png?version=1&modificationDate=1496884781417&api=v2)
2. Once Magic Model Analyst exported and saved the values of the runtime object to the Instance Specification that created it, you can see the hyperlink to that particular Instance Specification in the Simulation Console pane. ![Magic Model Analyst 2021x Refresh1 > Exporting runtime objects to InstanceSpecifications > 110150_2016-06-28+12_07_54-Greenshot.png (Successful Export Notification and Hyperlink) Successful Export Notification and Hyperlink](/download/attachments/106656260/110150_2016-06-28%2B12_07_54-Greenshot.png?version=1&modificationDate=1496884781017&api=v2)
3. Click the hyperlink, and you will see the exact Instance Specification in the Containment tree. This method allows you to export the value of the runtime object to the slots of the Instance Specification that has created the object. You can see the notification of each successful export and a location hyperlink, if any, in the Simulation Console pane. To export the value of a runtime object using this method, the runtime object must be created from an Instance Specification. |
|