DeleteAttachment
delete an attachment from the linked MapleSim model
Calling Sequence
Parameters
Description
Examples
A := MapleSim:-LinkModel();
A:-DeleteAttachment(name)
name
-
string ; the name of the attachment to delete
A:-DeleteAttachment(name) deletes the attachment name from the linked MapleSim model A.
A:-DeleteAttachment cannot be used on models linked to Modelica files.
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:
Set an attachment to the linked MapleSim Model:
data≔this will be the ship
A:-SetAttachment⁡data.txt,data,category=other
Check the attachment was set:
A:-ListAttachments⁡
data.txt
Delete the attachment
A:-DeleteAttachment⁡data.txt
Check that the deletion was successful:
See Also
MapleSim
MapleSim[LinkModel]
MapleSim[LinkModel][ListAttachments]
MapleSim[LinkModel][SetAttachment]
Download Help Document