找回密码
 注册
搜索
查看: 20326|回复: 18

[VB & C#] vs写运算器 debug步骤

[复制链接]
发表于 2010-6-13 17:21:01 | 显示全部楼层 |阅读模式
本帖最后由 panhao1 于 2010-6-13 17:22 编辑

先看原文

来自http://www.grasshopper3d.com/forum/topics/guide-to-creating-custom?id=2985220%3ATopic%3A56785&page=4#comments

Ok. Finally sussed it. What a pain. Im using VS2008. Jon/David thanks for your input.

So

作者用VS2008 我还是用的VS2005,作者说的够详细了 而且绝对可行
所以我不做翻译,仅作补充说明,帮住那些刚开始做vs的童鞋

1. Assuming we are in debug mode, Project> Properties > Compile>Build Events

OK
copy "$(Targetpath)" "yourprojectnamehere.gha"

This is entered in the Post Build Command line. As per Ben's instructions.

首先要把文件后缀改成gha 而不是dll

2 Project > Properties > Debug > Start External program

Set path to Rhino4.exe

As per David's instructions

在启动选项时选犀牛的可执行文件
2.jpg

3 Launch Rhino, type

_GrasshopperDeveloperSettings

Then uncheck Memory load, and set path to your debug file location used by the VS2008 IDE

This is as per David's instructions
在犀牛输入很神奇的命令GrasshopperDeveloperSettings,再改下vs里的设置,主要是生成路径和覆盖文件选项
1.jpg


4 Tools > Options

Check Show All Settings on bottom left hand corner of dialog box

Select Debugging tree node

Uncheck

"Require Source files to exactly match the original version"

VIOLA, you shoudl be able to debug now in VS2008.
再把版本设置给改下就可以了
3.jpg
把要求原始版本XXOO选项的勾给去掉
cheers

评分

参与人数 2强度 +6 照度 +53 收起 理由
qq56 + 1 + 3 HAO
skywoolf + 5 + 50 感谢分享

查看全部评分

 楼主| 发表于 2010-6-13 17:24:50 | 显示全部楼层
觉得有用就吼声啊 装作不关心是很伤害积极性的哦
回复

使用道具 举报

发表于 2010-6-13 18:17:50 | 显示全部楼层
楼主的编程能力好强啊,支持!!!!!!!!!!!
回复

使用道具 举报

发表于 2010-6-13 18:21:10 | 显示全部楼层
{:3_51:}严重支持!!
回复

使用道具 举报

发表于 2010-6-13 19:38:51 | 显示全部楼层
很重要的东西,顶
回复

使用道具 举报

发表于 2010-6-13 20:18:44 | 显示全部楼层
顶一个先。。。。。。。。
回复

使用道具 举报

发表于 2010-6-14 17:31:34 | 显示全部楼层
O(∩_∩)O哈哈~学习了
回复

使用道具 举报

发表于 2010-6-16 19:49:28 | 显示全部楼层
本帖最后由 renn 于 2010-6-16 19:58 编辑

请问下lz,有没有办法decompile GH自带的GHA?
直接将扩展名改为dll,再找个支持 。net 的decompiler 就okay了?
回复

使用道具 举报

发表于 2010-6-17 09:38:10 | 显示全部楼层
好高深哦,崇拜下
回复

使用道具 举报

 楼主| 发表于 2010-6-18 19:35:53 | 显示全部楼层
8# renn

偷看人家代码是可耻的行为
我已经被鄙视过一次了

自带的运算器分别在grasshopper。dll 和gha文件里面
这些运算器都很简单  若要自己写 一般直接继承类就可以了
你要自己写特殊gha也行 改写GH_component貌似是没有限制的
甚至可以做游戏看电影等 我发过一个播放音乐的

当然复杂的gha 也很容易死机
回复

使用道具 举报

发表于 2010-6-24 14:00:34 | 显示全部楼层
這個一定要大叫的啊!!
回复

使用道具 举报

发表于 2010-8-12 16:36:53 | 显示全部楼层
這個一定要大叫的啊!!
回复

使用道具 举报

发表于 2010-9-17 02:34:11 | 显示全部楼层
绝对的支持啊
回复

使用道具 举报

发表于 2011-2-18 14:31:15 | 显示全部楼层
顶一个··强烈支持
回复

使用道具 举报

发表于 2011-4-10 13:09:53 | 显示全部楼层
很重要的东西,顶 强烈支持
回复

使用道具 举报

发表于 2011-8-16 14:41:55 | 显示全部楼层
虽然支持但不知道支持的是什么.........
回复

使用道具 举报

发表于 2011-9-1 14:12:03 | 显示全部楼层
好                         的
回复

使用道具 举报

发表于 2011-10-19 05:20:12 | 显示全部楼层
太有用了。。
回复

使用道具 举报

发表于 2014-2-16 22:43:51 | 显示全部楼层
相当的犀利
回复

使用道具 举报

NCFZ微信公众号

手机版|小黑屋|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 ) 辽公网安备21021102000973号

GMT+8, 2026-11-23 19:30 , Processed in 0.054611 second(s), 29 queries , Gzip On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表