Find Column Base Offset Values

For someone who asked: “I’m trying to get the offset values. How should I proceed?”

public void columns()
{
    Document doc = this.ActiveUIDocument.Document;
    FilteredElementCollector collector = new FilteredElementCollector(doc)
        .OfClass(typeof(FamilyInstance))
        .WhereElementIsNotElementType()
        .OfCategory(BuiltInCategory.OST_StructuralColumns);
    foreach (Element e in collector)
    {
        Parameter baseOffsetParameter = e.get_Parameter(BuiltInParameter.FAMILY_BASE_LEVEL_OFFSET_PARAM);    
        double baseOffsetValue = baseOffsetParameter.AsDouble();
    }
}    
Advertisements