MapleSimConnector
SaveCode
save source files
Calling Sequence
Parameters
Returns
Description
SaveCode(filename, source_code, param_opts)
filename
-
string ; filename user wants to save to
source_code
string; source code user want to save
opts
(optional) equation(s) of the form option = value; specify options for SaveCode
string
The SaveCode command saves the source code that you generated to a specific file.
The opts arguments are optional arguments of the form option = value, where option is one of the names listed below. These arguments correspond to keyword parameters; the left side of an equation is the keyword, the right side is the value. Each keyword parameter has a default value that is assigned if the parameter is not passed.
The following paragraphs describe each of the keyword parameters. The first line of each paragraph specifies the format of the argument: the left side is the keyword and the right side specifies the type of the value. If the type is truefalse, then passing just the keyword is equivalent to passing keyword = true.
path = truefalse
Specifies the path and name of the file to which to save the source code.
extension = string
Specifies the extension of the file.
interactive = truefalse
Opens a dialog box that allows you to save the source code. Use this command as an alternative to using the path and extension commands.
See Also
MapleSim
Download Help Document