Difference between revisions of "CAEngine::SaveModuleFile/zh"
(Created page with "CAEngine::SaveModuleFile") |
(Created page with " * 41 – “无效对象名称” * 46 – “模块不能保存”") |
||
(7 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
= SaveModuleFile(modName, filePath) = | = SaveModuleFile(modName, filePath) = | ||
− | + | 将标识符为modName的模块保存到«filePath»文件中。 | |
− | = | + | = 参 数 = |
− | ; | + | ;modName:string(字符串)—— 模块的标识符 |
− | ; | + | ;filePath:string(字符串)——与 [[CurrentModelDirectory]]相关 |
− | = | + | = 返回值 = |
− | + | Boolean(布尔值:success或者 failure) | |
− | = | + | = 示例用法 = |
// C# | // C# | ||
bool b = ade.SaveModuleFile("Function_lib", "C:\TEMP\NEWMOD.ANA"); | bool b = ade.SaveModuleFile("Function_lib", "C:\TEMP\NEWMOD.ANA"); | ||
− | = [[ErrorCode]] | + | = [[CAEngine::ErrorCode/zh | 错误代码]] = |
− | * 41 – | + | |
− | * 46 – | + | * 41 – “无效对象名称” |
+ | * 46 – “模块不能保存” |
Latest revision as of 02:42, 21 October 2015
ADE User Guide > ADE Server Class Reference > CAEngine
SaveModuleFile(modName, filePath)
将标识符为modName的模块保存到«filePath»文件中。
参 数
- modName:string(字符串)—— 模块的标识符
- filePath:string(字符串)——与 CurrentModelDirectory相关
返回值
Boolean(布尔值:success或者 failure)
示例用法
// C# bool b = ade.SaveModuleFile("Function_lib", "C:\TEMP\NEWMOD.ANA");
错误代码
- 41 – “无效对象名称”
- 46 – “模块不能保存”
Comments
Enable comment auto-refresher