Hello everyone,
I cannot get Base Level and Top Level of a selected column by the below codes:
Code:
UIDocument uidoc = new UIDocument(Document);
Document doc = uidoc.Document;
ElementSet col = uidoc.Selection.Elements;
String BLevel ="";
String TLevel ="";
foreach(Element e in col)
{
Parameter pT = e.get_Parameter("Top Level");
Parameter pB = e.get_Parameter("Base Level");
TLevel = pT.AsString();
BLevel = pB.AsString();
TaskDialog.Show("Column constraint", BLevel+" & "+TLevel);
}
The following codes allow me get the Base Level of the column but I have no idea how to get the Top Level.
Code:
UIDocument uidoc = new UIDocument(Document);
Document doc = uidoc.Document;
ElementSet col = uidoc.Selection.Elements;
String BLevel ="";
Level BL;
foreach(Element e in col)
{
BL = e.Level;
BLevel = BL.Name;
TaskDialog.Show("Column constraint", BLevel);
}
I'm using Revit One Box 2013.
Thank for any help.