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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim/LinkModel/GetFilename

GetFilename

get linked MapleSim model filename

 

Calling Sequence

Returns

Options

Description

Examples

Calling Sequence

A := MapleSim:-LinkModel();

A:-GetFilename()

Returns

• 

string : path to the linked MapleSim model

Options

• 

directory = truefalse

  

True means returns the directory in which the file is located. The default is false.

Description

• 

A:-GetFilename returns the absolute path of the filename of the linked MapleSim model as a string.

• 

An error is raised if the MapleSim file has not been created (saved to disk).

• 

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:

Get the linked MapleSim model filename.

A:-GetFilename

Get the directory of the linked model.

A:-GetFilenamedirectory

See Also

FileTools[AbsolutePath]

FileTools[ParentDirectory]

MapleSim

MapleSim[LinkModel]