command-line-interface - 仅从命令行运行 AutoCAD

标签 command-line-interface autocad

我想运行 AutoCAD 脚本,将生成的图形打印为 PDF 并退出 AutoCAD,所有这些都无需单击(因此我们可以在服务器上安排)。使用 AutoCAD 可以吗?

最佳答案

是的,使用/b命令行参数

Command Line Switch Reference

/b Script name
Designates a script to run after you start the program (b stands for batch process). If the script file is in the Start In folder, a full path to the script file is required unless this security measure is suppressed either by including the /six command line switch, or setting the LEGACYCODESEARCH system variable to 1. Scripts can be used to set up drawing parameters in a new drawing file. An SCR file type is assumed.

如果您希望 AutoCAD 在完成脚本后退出,您还需要将其作为脚本的一部分。

关于command-line-interface - 仅从命令行运行 AutoCAD,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46642520/

相关文章:

go - 在 Go w/Cobra 中创建具有相同名称的子命令

rust - 有没有办法让 clap treat -?和-h一样吗?

lisp - 调试这个 LISP 病毒正在做什么

python - 通过 Python 打开一个新的 AutoCAD 实例

ms-access - 使用 Access 2007 中的 VBA 在 AutoCAD (dwg) 文件中搜索

html - 在 HTML 中嵌入 DWG 文件

php - 有什么方法可以知道 php 脚本是否在 cli 模式下运行?

C# 类与其他 .NET 语言互操作

bash - 有什么办法可以下载 Facebook 群组吗?

autocad - B-Rep 和 Mesh 索引表示之间的主要区别是什么