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

4 thoughts on “Find Column Base Offset Values

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s