# 参考file:///D:/ProgramFiles/MSC.Software/Adams/2017_2/help/wwhelp/wwhimpl/common/html/wwhelp.htm#href=adams_view/command_server.html&single=true
# 参考https://blog.youkuaiyun.com/weixin_33698043/article/details/94562370
'''
先在Adams中打开Command_Server(tool→Command Navigator→Command_Server)。
需要注意的是,指令如果没有发送成功,会造成通讯崩溃。
Command Server - Language
1. Commands:
command strings beginning with the string "cmd" are assumed to be valid Adams View
Example: "cmd file command read file='load_model.cmd'"
Returns: “cmd: 0” (on success)
“cmd: 1” (error detected in View command)
2. Queries:
command strings beginning with the string "query" are assumed to be valid Adams View Expressions;
the Command&nb

本文详细介绍了如何使用Adams View的Command Server进行模型操作和数据查询,包括通过Python发送命令和查询的具体示例,以及如何处理多条指令和二进制模式。
最低0.47元/天 解锁文章
138





