list the attachments of 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/ListAttachments

ListAttachments - list the attachments of the linked MapleSim model

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

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):

A:=MapleSim:-LinkModel'filename'=catkernelopts'toolboxdir'=MapleSim,/data/examples/RLCcircuit.msim:

Set the attachment to the linked MapleSim model.

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