DynamoDS / Dynamo

Open Source Graphical Programming for Design
https://dynamobim.org
Other
1.74k stars 634 forks source link

Document.ActiveView does not work with structural plan views #5196

Closed RhysProbyn closed 8 years ago

RhysProbyn commented 9 years ago

This is an old issue, seen in this thread: http://dynamobim.com/forums/topic/error-with-doc-activeview-and-structural-plans/

Document.ActiveView throws an error when used with a "structural plan" in Revit, however "floor plans" work fine.

Error log:

Warning: Document.get_ActiveView operation failed. Unable to cast object of type 'Revit.Elements.UnknownElement' to type 'Revit.Elements.Views.View'.

tatlin commented 9 years ago

There is a pull request to fix this I believe

-matt

On Aug 28, 2015, at 1:24 AM, RhysProbyn notifications@github.com wrote:

This is an old issue, seen in this thread: http://dynamobim.com/forums/topic/error-with-doc-activeview-and-structural-plans/

Document.ActiveView throws an error when used with a "structural plan" in Revit, however "floor plans" work fine.

Error log:

Warning: Document.get_ActiveView operation failed. Unable to cast object of type 'Revit.Elements.UnknownElement' to type 'Revit.Elements.Views.View'.

— Reply to this email directly or view it on GitHub.

josols commented 9 years ago

https://github.com/DynamoDS/DynamoRevit/pull/550 Looks like Dimitar has solved it as well?