Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to create a task dialog show like this
Here is my code:
Why "elements" is red under line, where i miss?
Solved! Go to Solution.
I want to create a task dialog show like this
Here is my code:
Why "elements" is red under line, where i miss?
Solved! Go to Solution.
Look at the warning message in the Visual Studio build output console window and you will see the explanation (deprecated API usage) including a suggestion on how to fix it.
Or, if it is an error and not just a warning, then that API call is not just deprecated but actually obsolete and has been removed, replaced by something more modern, e.g., the GetElementIds method:
http://www.revitapidocs.com/2017/4af3bdc7-e69c-8aa6-406d-865d7f036927.htm
Introduced in Revit 2012:
Returns a collection containing the ids of the selected elements. This collection can be used directly with FilteredElementCollector.
http://thebuildingcoder.typepad.com/blog/2013/02/whats-new-in-the-revit-2012-api.html
Cheers,
Jeremy