delete an attachment from the linked MapleSim model
A := MapleSim:-LinkModel();
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
data:=this will be the ship
Check the attachment was set:
Delete the attachment
Check that the deletion was successful:
Download Help Document