NCF参数化建筑论坛

标题: vs写运算器 debug步骤 [打印本页]

作者: panhao1    时间: 2010-6-13 17:21
标题: vs写运算器 debug步骤
本帖最后由 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

在启动选项时选犀牛的可执行文件
[attach]8717[/attach]

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里的设置,主要是生成路径和覆盖文件选项
[attach]8718[/attach]


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.
再把版本设置给改下就可以了
[attach]8719[/attach]
把要求原始版本XXOO选项的勾给去掉
cheers
作者: panhao1    时间: 2010-6-13 17:24
觉得有用就吼声啊 装作不关心是很伤害积极性的哦
作者: stratagem    时间: 2010-6-13 18:17
楼主的编程能力好强啊,支持!!!!!!!!!!!
作者: skywoolf    时间: 2010-6-13 18:21
{:3_51:}严重支持!!
作者: funnyplay    时间: 2010-6-13 19:38
很重要的东西,顶
作者: divedragon    时间: 2010-6-13 20:18
顶一个先。。。。。。。。
作者: 董羽天    时间: 2010-6-14 17:31
O(∩_∩)O哈哈~学习了
作者: renn    时间: 2010-6-16 19:49
本帖最后由 renn 于 2010-6-16 19:58 编辑

请问下lz,有没有办法decompile GH自带的GHA?
直接将扩展名改为dll,再找个支持 。net 的decompiler 就okay了?
作者: nice    时间: 2010-6-17 09:38
好高深哦,崇拜下
作者: panhao1    时间: 2010-6-18 19:35
8# renn

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

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

当然复杂的gha 也很容易死机
作者: franksu86    时间: 2010-6-24 14:00
這個一定要大叫的啊!!
作者: shisanlang    时间: 2010-8-12 16:36
這個一定要大叫的啊!!
作者: iamwon    时间: 2010-9-17 02:34
绝对的支持啊
作者: JEREMY    时间: 2011-2-18 14:31
顶一个··强烈支持
作者: ax    时间: 2011-4-10 13:09
很重要的东西,顶 强烈支持
作者: orange-TA    时间: 2011-8-16 14:41
虽然支持但不知道支持的是什么.........
作者: zouanmm    时间: 2011-9-1 14:12
好                         的
作者: aduonisi2010    时间: 2011-10-19 05:20
太有用了。。
作者: 左手◆23年    时间: 2014-2-16 22:43
相当的犀利




欢迎光临 NCF参数化建筑论坛 (http://ncf-china.com/) Powered by Discuz! X3.2