ListAttachments
list the attachments of the linked MapleSim model
Calling Sequence
Parameters
Returns
Options
Description
Examples
A := MapleSim:-LinkModel(options);
A:-ListAttachments(options)
options
-
(optional) equation(s) of the form name = value
list : list of the attachments in the linked model
showcategories = true or false
True means each element in the returned list is a sublist containing the name of the attachment and its category. False means each element is the name of the attachment. The default is false.
A:-ListAttachments returns the list of names of the existing attachments in the linked model A.
The A := MapleSim:-LinkModel() statement needs to be run prior to successfully using any of the ModelObject A's export functions.
Link to a MapleSim model (located in .msim file):
A≔MapleSim:-LinkModel⁡filename=cat⁡kernelopts⁡toolboxdir=MapleSim,/data/examples/RLCcircuit.msim:
Set the attachment to the linked MapleSim model.
data≔this will be the ship
A:-SetAttachment⁡data.txt,data,category=other
List the attachments of the linked MapleSim model.
A:-ListAttachments⁡
data.txt
List the attachments with the categories.
A:-ListAttachments⁡showcategories
data.txt,other
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][SetAttachment]
Download Help Document