There are four kinds of Walls represented by the WallType.WallKind enumeration:
The Wall and WallType class work with the Basic wall type while providing limited function to the Stacked and Curtain walls. On occasion you need to check a Wall to determine the wall type. For example, you cannot get sub-walls from a Stacked Wall using the API. WallKind is read only and set by System Family.
The Wall.Flipped property and Wall.flip() method gain access to and control Wall orientation. In the following examples, a Wall is compared before and after calling the flip() method.
Figure 33: Original wall
Figure 34: Wall after flip
Table 24: Wall Location Line
Location Line Value |
Description |
0 |
Wall Centerline |
1 |
Core Centerline |
2 |
Finish Face: Exterior |
3 |
Finish Face: Interior |
4 |
Core Face: Exterior |
5 |
Core Face: Interior |
There are five static override methods in the Wall class to create a Wall:
Table 25: Create() Overrides
Name |
Description |
Create(Document, Curve, WallType, Level, Double, Double, Boolean, Boolean) |
Creates a new rectangular profile wall within the project using the specified wall type, height, and offset. |
Create(Document, IList Curve , Boolean) |
Creates a non rectangular profile wall within the project using the default wall style. |
Create(Document, Curve, ElementId, Boolean) |
Creates a new rectangular profile wall within the project on the level specified by ElementId using the default wall style. |
Create(Document, IList Curve , ElementId, ElementId, Boolean) |
Creates a non rectangular profile wall within the project using the specified wall type. |
Create(Document, IList Curve , ElementId, ElementId, Boolean, XYZ) |
Creates a non rectangular profile wall within the project using the specified wall type and normal vector. |
The WallType Wall Function (WALL_ATTR_EXTERIOR) parameter influences the created wall instance Room Bounding and Structural Usage parameter. The WALL_ATTR_EXTERIOR value is an integer:
Table 26: Wall Function
Wall Function |
Interior |
Exterior |
Foundation |
Retaining |
Soffit |
Value |
0 |
1 |
2 |
3 |
4 |
The following rules apply to Walls created by the API:
For more information about structure-related functions such as the AnalyticalModel property, refer to Structural Engineering.