Namespace:
Autodesk.Revit.DB
Wall
Class
Description:
Represents a wall in Autodesk Revit.
Represents a wall in Autodesk Revit.
Remarks:
The wall object represents all the different kinds of walls in Revit.
The wall object represents all the different kinds of walls in Revit.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Element
Autodesk.Revit.DB.HostObject
Autodesk.Revit.DB.Wall
System.Object
Autodesk.Revit.DB.Element
Autodesk.Revit.DB.HostObject
Autodesk.Revit.DB.Wall
Examples
public void GetInfo_Wall(Wall wall)
{
string message = "Wall : ";
// Get wall AnalyticalModel type
AnalyticalModel model = wall.GetAnalyticalModel();
if (null != model)
{
// For some situation(such as architecture wall or in building version),
// this property may return null, but if it doesn't return null, it should
// be AnalyticalModelWall.
message += "\nWall AnalyticalModel type is : " + model;
}
wall.Flip();
message += "\nIf wall Flipped : " + wall.Flipped;
// Get curve start point
message += "\nWall orientation point is :(" + wall.Orientation.X + ", "
+ wall.Orientation.Y + ", " + wall.Orientation.Z + ")";
// Get wall StructuralUsage
message += "\nWall StructuralUsage is : " + wall.StructuralUsage;
// Get wall type name
message += "\nWall type name is : " + wall.WallType.Name;
// Get wall width
message += "\nWall width is : " + wall.Width;
TaskDialog.Show("Revit",message);
}