I'm noticing some strange behaviour with the Z height reading of the Level 01 view origin from an out-of-the-box architectural template. When creating a new RVT using the architectural template (from Revit 2015-17), there are two default plan levels: Level 00 and Level 01. When I extract the Level 01 view origin (using the View class ViewOrigin property) it always reports 0.0 as the Z height, instead of its actual height. If I delete this level and create a new level with the same name at the same height, the Z coordinate reading is then correct. I need to know the correct height for a script I'm writing and want to avoid having to write a bug fix just to handle this error. If anyone can tell me if this is indeed a bug or as-designed behaviour, that would most certainly be appreciated!
Default OOTB Arch Template Level 0 origin
BUG? Default OOTB Arch Template Level 0 origin - noticce its Z height is incorrectly reported as 0.0
The actual height of Level 01:
New Level 02 added to the document - Notice its Z height is correctly reported
Delete OOTB Level 01 and re-create it - Now the Z height is correctly reported
Solved! Go to Solution.
Solved by matthew_taylor. Go to Solution.
Just noticed I posted the wrong image and didn't update the subtitle showing the error in Level 01. My apologies for causing any confusion, here it is showing the error described:
BUG? Default OOTB Arch Template Level 1 origin - noticce its Z height is incorrectly reported as 0.0
Hi Thomas,
I can confirm that the template shows this. (I used RevitLookup.)
According to the developer guide though, a ViewPlan's origin 'is not meaningful': http://www.revitapidocs.com/2017/dbc12b94-75fb-4f5b-ddaf-00f76c6f9290.htm
I'd read that as 'it's not supposed to be depended upon'.
I would consider using the ViewPlan.GenLevel.Elevation for the Z ordinate, if you can access that in Dynamo.
Cheers,
-Matt