查看: 2895|回复: 7

Python Scripting in Vasari 2.1 and Revit 2012

  [复制链接]

发表于 2011-10-3 23:14:57 | 显示全部楼层 |阅读模式
It’s here! Daren Thomas has posted installers for RevitPythonShell for BOTH Revit 2012 and Vasari 2.1.
What does this mean? You, dear reader, can now script live in a Vasari session using Python. Behold!

高清视频下载地址:
http://dl.dbank.com/c0aihr3qlf
The samples I’m showing are things that I am not capable of cobbling together on my own . . . I’m NOT AT ALL a coding person. It’s actually my desperate hope that you will understand these concepts much better than I and do something cool with the tools. Keep an eye on Nathan Miller’s site, I’m sure he will have good stuff. My Create Surface script is a simplification of his supershapes script posted here. Thanks to Aki Hogge for everything else.

I have tried a bunch of times to get through “Hello World” in both full Visual Studio and VSTA for Revit and each time just failed miserably. I’ve had much more success with this tool and can see a way to actually progressing in my API education. So if you have tried and failed with the Revit API in the past, give this a shot. Here’s the text version of how to get started:
RevitPythonShell for Vasari in 5 minutes:
Run Vasari at least once on the computer in question
Install IronPython: http://ironpython.net/
Install RevitPythonShell:
http://code.google.com/p/revitpy ... 2.1.exe#makechanges
Download some starter samples from here.
Open Vasari >Addins tab>RevitPythonShell>Configure . . .>
In Search Paths tab, add the Lib folder in your IronPython installation (ex, C:\Program Files (x86)\IronPython 2.7\Lib), this is for autocomplete
In Commands tab>Add> select the attached pySamples
Save and restart Vasari. Play with samples.

All the samples run in Mass.rfa files, GoalSeeker uses the Goalseeker example files. It all works in either Vasari or Revit.

To monkey with the scripts live, just open them in an editor (notepad works, I’m sure there are way better ones) make changes, save and then run again in Vasari.

There’s no official SDK or documentation for the Vasari API, but it is essentially a slimmed down version of the Revit API, with detail model elements and such removed.
所需文件统一打包在:
原文地址(需翻墙):http://buildz.blogspot.com/2011/ ... g-in-vasari-21.html

评分

1

查看全部评分

回复

使用道具 举报

发表于 2011-10-3 23:19:00 | 显示全部楼层
本帖最后由 maya88 于 2011-10-3 23:23 编辑

好贴,支持,似乎回复不能复制过来,哈哈,wudingmao1 提供的插件很好。
哈哈,看视频分享提供是FIRST1啊,呵呵。
回复 支持 反对

使用道具 举报

发表于 2011-10-3 23:25:46 | 显示全部楼层
下载链接出现乱码,求真相,如图:
1.jpg
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-4 17:53:54 | 显示全部楼层
maya88 发表于 2011-10-3 23:25
下载链接出现乱码,求真相,如图:

视频是我叫他帮忙弄上去的。网盘什么的不想弄。我改天在发下高清!这几天有事
回复 支持 反对

使用道具 举报

发表于 2011-10-4 23:30:15 | 显示全部楼层
补充一下 压缩包里缺失了 IronPython 2.7 !
回复 支持 反对

使用道具 举报

发表于 2011-10-9 23:14:27 | 显示全部楼层
本帖最后由 maya88 于 2011-10-9 23:18 编辑
first1 发表于 2011-10-4 23:30
补充一下 压缩包里缺失了 IronPython 2.7 !


请OSCAR补充一下遗失文件,多谢!    另说明:视频地址可以下载了。
回复 支持 反对

使用道具 举报

发表于 2011-10-11 10:49:51 | 显示全部楼层
maya88 发表于 2011-10-9 23:14
请OSCAR补充一下遗失文件,多谢!    另说明:视频地址可以下载了。

http://download.codeplex.com/Dow ... 000&Build=18207

评分

1

查看全部评分

回复 支持 反对

使用道具 举报

发表于 2012-11-29 15:46:21 | 显示全部楼层
看看,貌似是个好东西
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则