Message 1 of 5
Not applicable
03-25-2017
12:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I try the code " Autodesk . Revit .DB .Rectangle rect = UIView . GetWindowRectangle (); " in Revit 2017 . I got the error " CS0120 An object reference is required for the non-static field , method ,or property 'UIView . GetWindowRectangle () ' " . How to cure it ? Any help will appreciate .
I know Rectangle class have moved from the UI namespace in the Revit 2015 and 2016 APIs to DB in Revit 2017:
Solved! Go to Solution.