Making API for energy calculation, unable to "Set Parameters for certain walls to certain directions"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Developing RevitAPI, calculating net energy transfer by a bulidng, it involves the directions of the walls, it works on a simple model, but not a more complicated real life model. Need help.
//Checking for SouthWest Facing Walls & Windows
bool isSouthWestFacing = IsSouthWestFacing(exteriorDirection);
if (isSouthWestFacing)
{
SouthWest_Wall_Lst.Add(WE);
inserts_0 = (WE as HostObject).FindInserts(true, true, true, true);
ParaSouthWestWall = WE.LookupParameter("SouthWest");
using (Transaction trans = new Transaction(doc, "ETTV_1"))
{
trans.Start();
ParaSouthWestWall.Set(1);
foreach (ElementId emtid in inserts_0)
{
Element emt = doc.GetElement(emtid);
emt.LookupParameter("SouthWest").Set(1);
}
trans.Commit();
}
}
the first error occurs when i try to set(1) the SpecialParameters "southwest" to a checkbox