ListAttachments - MapleSim Help

Online Help

All Products    Maple    MapleSim


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

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

Set the attachment to the linked MapleSim model.

datathis will be the ship

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

 


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