get the attachment 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/GetAttachment

GetAttachment - get the attachment of the linked MapleSim model

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetAttachment(name)

Parameters

name

-

string ; name of the attachment to retrieve

Returns

• 

anything : contents of the specified attachment

Description

• 

A:-GetAttachment returns the contents of the specified attachment of 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

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

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

Setting 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

Listing the attachments of the linked MapleSim Model:

A:-ListAttachments

data.txt

(2)

Getting the data from the specified attachment of the linked MapleSim Model:

A:-GetAttachmentdata.txt

this will be the ship

(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