GetFilename
get linked MapleSim model filename
Calling Sequence
Returns
Options
Description
Examples
A := MapleSim:-LinkModel();
A:-GetFilename()
string : path to the linked MapleSim model
directory = truefalse
True means returns the directory in which the file is located. The default is false.
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.
Link to a MapleSim model (located in .msim file).
A≔MapleSim:-LinkModel⁡filename=cat⁡kernelopts⁡toolboxdir=MapleSim,/data/examples/RLCcircuit.msim:
Get the linked MapleSim model filename.
A:-GetFilename⁡
Get the directory of the linked model.
A:-GetFilename⁡directory
See Also
FileTools[AbsolutePath]
FileTools[ParentDirectory]
MapleSim
MapleSim[LinkModel]
Download Help Document