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

Online Help

All Products    Maple    MapleSim


ListAttachments

list the attachments of the linked MapleSim model

 

Calling Sequence

Parameters

Returns

Options

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel(options);

A:-ListAttachments(options)

Parameters

options

-

(optional) equation(s) of the form name = value

Returns

• 

list : list of the attachments in the linked model

Options

• 

showcategories = true or false

  

True means each element in the returned list is a sublist containing the name of the attachment and its category. False means each element is the name of the attachment. The default is false.

Description

• 

A:-ListAttachments returns the list of names of the existing attachments in 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.

Examples

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

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

Set the attachment to the linked MapleSim model.

datathis will be the ship

datathis will be the ship

(1)

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

List the attachments of the linked MapleSim model.

A:-ListAttachments

data.txt

(2)

List the attachments with the categories.

A:-ListAttachmentsshowcategories

data.txt,other

(3)

See Also

MapleSim

MapleSim[LinkModel]

MapleSim[LinkModel][SetAttachment]