Creates a new Area BoundaryConditions element on a host element. 
   Namespace:   Autodesk.Revit.Creation  
  Assembly:   RevitAPI  (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0) 
Syntax
| C# | 
|---|
   |  
| Visual Basic | 
|---|
   |  
| Visual C++ | 
|---|
   |  
Parameters
- hostElement
 -  Type:  Autodesk.Revit.DB Element  
A Wall, Slab or Slab Foundation to host the boundary conditions. 
- X_Translation
 -  Type:  Autodesk.Revit.DB.Structure TranslationRotationValue  
A value indicating the X axis translation option. 
- X_TranslationSpringModulus
 -  Type:  System Double  
Translation Spring Modulus for X axis. Ignored if X_Translation is not "Spring". 
- Y_Translation
 -  Type:  Autodesk.Revit.DB.Structure TranslationRotationValue  
A value indicating the Y axis translation option. 
- Y_TranslationSpringModulus
 -  Type:  System Double  
Translation Spring Modulus for Y axis. Ignored if Y_Translation is not "Spring". 
- Z_Translation
 -  Type:  Autodesk.Revit.DB.Structure TranslationRotationValue  
A value indicating the Z axis translation option. 
- Z_TranslationSpringModulus
 -  Type:  System Double  
Translation Spring Modulus for Z axis. Ignored if Z_Translation is not "Spring". 
Return Value
If successful, NewAreaBoundaryConditions returns an object for the newly created BoundaryConditions with the BoundaryType = 2 - "Area". a null reference ( Nothing in Visual Basic) is returned if the operation fails.Remarks
 This method will only function with the Autodesk Revit Structure application. 
 Examples
bool CreateAreaConditionWithElement(Wall wall, Autodesk.Revit.Creation.Document docCreation)
{
    // Create Area Boundary Conditions using a given Wall and defaulting to fixed in all directions
    BoundaryConditions condition = docCreation.NewAreaBoundaryConditions(wall, TranslationRotationValue.Fixed, 0, 
                                                                               TranslationRotationValue.Fixed, 0, 
                                                                               TranslationRotationValue.Fixed, 0);
    return (null != condition);
} Private Function CreateAreaConditionWithElement(wall As Wall, docCreation As Autodesk.Revit.Creation.Document) As Boolean
    ' Create Area Boundary Conditions using a given Wall and defaulting to fixed in all directions
    Dim condition As BoundaryConditions = docCreation.NewAreaBoundaryConditions(wall, TranslationRotationValue.Fixed, 0, TranslationRotationValue.Fixed, 0, TranslationRotationValue.Fixed, _
        0)
    Return (condition IsNot Nothing)
End Function Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.Exceptions ArgumentException | Thrown if the host element does not exist in the given document. |