DeleteAttachment - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeleteAttachment

delete an attachment from the linked MapleSim model

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-DeleteAttachment(name)

Parameters

name

-

string ; the name of the attachment to delete

Description

• 

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.

Examples

Linking to a MapleSim model (located in .msim file):

AMapleSim:-LinkModelfilename=catkerneloptstoolboxdir=MapleSim,/data/examples/RLCcircuit.msim:

Set an attachment to the linked MapleSim Model:

datathis will be the ship

datathis will be the ship

(1)

A:-SetAttachmentdata.txt,data,category=other

Check the attachment was set:

A:-ListAttachments

data.txt

(2)

Delete the attachment

A:-DeleteAttachmentdata.txt

Check that the deletion was successful:

A:-ListAttachments

(3)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][ListAttachments]

MapleSim[LinkModel][SetAttachment]