Closed chuongmep closed 2 years ago
The Arc
object is a pure memory-only geometry object. It is not a database resident Revit Element
. Therefore, the RevitLookup code should not allow it to be snooped as if it were. -- https://www.revitapidocs.com/2022/1f5f541e-9335-aef3-0e75-59eed9ae2221.htm -- Something may be wrong with the snoop routing. Maybe it should terminate before drilling down into the geometry objects, or treat them differently than the database elements derived from the Element
base class.
Fixed
Exceptions are now displayed correctly. The very throwing of the exception is caused by the fact that the object is unloaded from memory when you call another method. I just ran into this when I was developing my plugin. This is how the get_Geometry () method works.
Also, when throwing an exception, the error message is taken from the nested one, instead of the wrapping one.
Finally, the error messages will be more informative 🙃
@jeremytammik can you set the dev branch by default? its content will be displayed on the github page, it makes sense since it is updated more often
@Nice3point yes, sure, thank you for the good suggestion! done.
error messages will be more informative
wow, brilliant! very useful feature! strong didactical learning support :-)
Image Problem :
File sample :
Drawing1.zip
revitfile.zip
Step by step :