简体   繁体   English

Revit API SharpDeveloper

[英]Revit API SharpDeveloper

When Im writing a plugin in Visual studio, its very nice to attach the plug in to Revit and get feedback at the time my plug in fails. 当我在Visual Studio中编写插件时,将插件附加到Revit并在插件失败时获得反馈非常好。 I can inspect all the variables etc.. and get the error is relatively informative. 我可以检查所有变量等。并且得到的错误是相对有益的。

When Im writing a macro with sharp develop - the error message thrown in Revit is relatively vague. 当我用快速开发编写宏时-在Revit中引发的错误消息相对模糊。 I know I can step through a macro - but this can be cumbersome when going through a foreach loop of all the views. 我知道我可以单步执行宏-但这在遍历所有视图的foreach循环时可能会很麻烦。 Is there any way to get back into sharp development at the point of failure so I can inspect whats going on with the code? 有什么办法可以在故障点恢复到急剧的开发状态,以便我可以检查代码的状况吗?

Can't you set a conditional breakpoint in SharpDevelop, like in the Visual Studio debugger? 您不能像在Visual Studio调试器中那样在SharpDevelop中设置条件断点吗? Then you could loop through hundreds of views and break at one specific one by matching the name or element id or some other specific identifier... 然后您可以遍历数百个视图,并通过匹配名称或元素ID或其他特定的标识符来打破一个特定的视图...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM