delete an attachment from the linked MapleSim model - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim : MapleSim Application Programming Interface : API Commands : MapleSim/LinkModel/DeleteAttachment

DeleteAttachment - delete an attachment from the linked MapleSim model

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:-LinkModel'filename'=catkernelopts'toolboxdir'=MapleSim,/data/examples/RLCcircuit.msim:

Set an attachment to the linked MapleSim Model:

datathis will be the ship

data:=this 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]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam