Skip to main content

此模块将 XMCD 中的 mathcad 文件转换为与 Smath Studio 兼容的 XMCD

项目描述

mathcad2smath

使用 Smath Studio 支持将 mathcad XMCD 转换为 XMCD 的命令工具。

用法:

mathcad2smath [-h] [-o] [-r] [-d BASEDIR] [-p PREFIX] [-s SUFIX] [--ignore_custom]
              [-e ADD_EXTERNAL [ADD_EXTERNAL ...]] [--external_path EXTERNAL_PATH] [-f FILENAME]

Convert XMCD mathcad files into XMCD compatible with Smath Studio

optional arguments:
  -h, --help            show this help message and exit
  -o, --overwrite       Overwrite the output file if exist
  -r, --recursive       Find XMCD files recursively
  -d BASEDIR, --basedir BASEDIR
                        The basedir to convert the XMCD's file
  -p PREFIX, --prefix PREFIX
                        The prefix to output file
  -s SUFIX, --sufix SUFIX
                        The sufix to output file
  --ignore_custom       Include a "custom.sm" file into output XMCD directory with mathcad specific functions   
  -e ADD_EXTERNAL [ADD_EXTERNAL ...], --add_external ADD_EXTERNAL [ADD_EXTERNAL ...]
                        Add user externals files into output XMCD directory. Try to add a file relative to      
                        "external_path", then try to get the file as full path. If a "*" is used, try to add    
                        all SM file in "external_path"
  --external_path EXTERNAL_PATH
                        The path to user external files
  -f FILENAME, --filename FILENAME
                        Convert specific file
  --smath_path SMATH_PATH
                        Path to Smath Studio instalation, convert external files to SM when needed
  --save_as_sm          Save output file as SM file

"custom.sm" 文件具有 Smath Studio 中未定义的 "ceil" 和 "floor" 函数,并且还定义了 "Percent" 变量,因为在 Smath 导入 XMCD 文件时 "%" 字符被翻译为 "Percent" .

SMATH_PATH 用于在文件中存在链接工作表时转换 SM 文件中的 XMCD,因为 Smath 中的“包含”功能仅适用于 SM 文件。这也用于使用“save_as_sm”选项将转换后的文件另存为 SM。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

mathcad2smath-1.8.1.tar.gz (23.0 kB 查看哈希

已上传 source

内置分布

mathcad2smath-1.8.1-py3-none-any.whl (26.4 kB 查看哈希

已上传 py3