Dear Emil,
Well, you did not look carefully enough 🙂
I performed a simple Internet search for "revit api LoadCaseArray".
One of the first hits is The Building Coder article on
http://thebuildingcoder.typepad.com/blog/2016/04/whats-new-in-the-revit-2017-api.html
Searching that for LoadCaseArray, you first see it listed in the section on
Obsolete API removal
http://thebuildingcoder.typepad.com/blog/2016/04/whats-new-in-the-revit-2017-api.html#2.22
It does not refer to the LoadCaseArray class, though, but the NewLoadCombination method that was using it.
Another hit is the old online Revit 2014 API documentation entry for LoadCaseArray:
http://revitapisearch.com/html/b956962a-5802-cca1-e806-cc0461fac741.htm
That tells me that this is a collection class.
In the far distant past, the Revit API defined heaps of custom collection classes.
They have (almost) all been replaced by generic collections, i.e., something like List<LoadCase>.
You need to look for the updated signature of whatever method call you need to make.
What method is it?
NewLoadCombination?
What argument does it take?
I performed a new Internet search for "revit api NewLoadCombination", which turns up The Building Coder article on
http://thebuildingcoder.typepad.com/blog/2015/04/whats-new-in-the-revit-2016-api.html
It includes this section:
Load cases and load combinations
The Revit API classes related to Load Cases and Load Combinations have been significantly renovated. This has introduced new members to the LoadCombnation, LoadCase, LoadNature and LoadUsage class, and resulted in several previously existing member being marked deprecated and replaced, as shown in this table:
- Deprecated member → New/replacement member
- Document.NewLoadCombination() → LoadCombination.Create()
I hope this answers your question.
Well, maybe not quite.
The whole area of load combinations seems to have been cleaned up quite significantly in the past few releases.
One of the first places to look for working sample code and see how different classes, method calls and properties are used together to achieve certain tasks is the Revit SDK sample collection.
Always perform the following searches before asking anyone else for help:
1. Revit API help file RevitAPI.chm for classes, properties and methods
2. Developer Guide for background understanding.
3. Revit SDK samples to see how to solve tasks
In this cases, I see lots and lots of results searching the Revit SDK samples for LoadCombination.
I much more hope that your are not only fed, but also transformed into a competent fisherman 🙂
Good luck with your further searches.
Cheers,
Jeremy