Open and run Grasshopper from a batch file 用批处理命令自动打开指定的3dm文件和GH文件
来源:互联网 发布:ai高版本软件 编辑:程序博客网 时间:2024/06/06 17:37
用批处理命令自动打开指定的Rhinoceros 文件和grasshopper文件。只需要根据本地地址修改以下代码中的PATH_EXE、PATH_DM、PATH_GH即可。
@ECHO OFFtitle This is a bat file to open Rhinoceros and Grasshopperset "PATH_EXE=C:\Program Files\Rhinoceros 5 (64-bit)\System\rhino.exe"set "PATH_DM=C:\Users\CHANT\Desktop\test.3dm"set "PATH_GH=C:\Users\CHANT\Desktop\Ex.gh"echo open %PATH_DM%echo open %PATH_GH%"%PATH_EXE%" /nosplash /runscript="-grasshopper editor load document open %PATH_GH% _enter" "%PATH_DM%"
后面的内容节选自本身参考的文章
How to automatically open Rhino and run a Grasshopper file using a batch file?A batch file is a file that allows Windows to run a list of commands automatically. They are simple text files with file extension .bat that you can easily write yourself. This post is a good tutorial onhow to make a batch file.
Copy this into a text document, and change the fields to your own file locations. Save the file, and change the extension from .txt to .bat.
@ECHO OFFcd **PATH TO DIRECTORY CONTAINING GH FILE**"**PATH TO RHINO.EXE**" /nosplash /runscript="-grasshopper editor load document open **GRASSHOPPER FILE NAME** _enter" "**PATH TO ASSOCIATED RHINO FILE**"
For example, I have a Rhino and a GH file on my desktop, respectively called random.gh and random2.3dm.
@ECHO OFFcd C:\Users\jrams\Desktop"C:\Program Files\Rhinoceros 5 (64-bit)\System\rhino.exe" /nosplash /runscript="-grasshopper editor load document open C:\Users\jrams\Desktop\random.gh _enter" "C:\Users\jrams\Desktop\random2.3dm"
阅读全文
0 0
- Open and run Grasshopper from a batch file 用批处理命令自动打开指定的3dm文件和GH文件
- run a PowerShell script from a batch file
- 自动打开host 文件的批处理
- 批处理自动打开Hosts文件
- Batch 批处理搜索文件
- windows 批处理命令打开文件
- pb 自动打开指定文件名的文件
- 用批处理命令实现FTP文件的自动传输
- 用批处理命令实现FTP文件的自动传输
- 用批处理命令实现FTP文件的自动传输
- 用批处理命令实现FTP文件的自动传输
- Mac Intellij Application run error for too many file open or 解决文件打开数过多
- 打开指定目录 and 打开指定文件
- [乐意黎原创] 用批处理(batch) 删除带有前缀的文件和文件名
- svn提示“Cannot open file ... 系统找不到指定的文件”
- 求一个自动执行删除指定文件的批处理
- ruby FILE::open 打开文件的字符集设置
- 批处理自动设置指定文件/文件夹属性
- 视频教程:Java七大外企经典面试套路之基础篇
- Unity3D游戏开发之Unity3D场景编辑器扩展开发
- RxJava 2.0 从入门到精通(一)
- Android 自定义View实现跑马灯效果。没有任何焦点和长度限制。
- 每周荐书:Web扫描、HTML 5、Python(评论送书)
- Open and run Grasshopper from a batch file 用批处理命令自动打开指定的3dm文件和GH文件
- Python学习笔记(15)-Python代码转换为exe可执行程序详解
- ubuntu 设置su,sudo不用输入密码
- 跳跃表原理
- 调用FTPClient 的retrieveFileStream(String remote)方法后的处理
- LINUX中mysql命令
- (搬运).net起步 (用配置文件属性维护网站用户信息 2)
- 无监督学习:无监督降维
- C#阿里云视频转码之消息接受