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();
}
}
[…] Read more […]
[…] Find Column Base Offset Values […]
hi , good morning sir .. this module returns 0 for me and i dont know why ..
Have you stepped through the code to see where the problem happens?