GetAttachment
get the attachment of the linked MapleSim model
Calling Sequence
Parameters
Returns
Description
Examples
A := MapleSim:-LinkModel();
A:-GetAttachment(name)
name
-
string ; name of the attachment to retrieve
anything : contents of the specified attachment
A:-GetAttachment returns the contents of the specified attachment of 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.
Linking to a MapleSim model (located in .msim file):
A≔MapleSim:-LinkModel⁡filename=cat⁡kernelopts⁡toolboxdir=MapleSim,/data/examples/RLCcircuit.msim:
Setting the attachment to the linked MapleSim Model:
data≔this will be the ship
A:-SetAttachment⁡data.txt,data,category=other
Listing the attachments of the linked MapleSim Model:
A:-ListAttachments⁡
data.txt
Getting the data from the specified attachment of the linked MapleSim Model:
A:-GetAttachment⁡data.txt
this will be the ship
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][ListAttachments]
MapleSim[LinkModel][SetAttachment]
Download Help Document