Check Framing property start extension is active or not for that instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I want to check the instance property of structural framing start extension is active for that instance or not.
If it is active then using API I want to manage start extension of that instance, if not then I want to manage start cut back property
How can I do this? Using separately I able to manage that. If I want to manage at a time both then what should I
FilteredElementCollector frame = new FilteredElementCollector(doc, doc.ActiveView.Id);
frame.OfClass(typeof(FamilyInstance));
frame.OfCategory(BuiltInCategory.OST_StructuralFraming);
foreach (FamilyInstance f in frame)
{
f.get_Parameter(BuiltInParameter.START_JOIN_CUTBACK).Set(start);
f.get_Parameter(BuiltInParameter.END_JOIN_CUTBACK).Set(end);
f.get_Parameter(BuiltInParameter.START_EXTENSION).Set(start);
f.get_Parameter(BuiltInParameter.END_EXTENSION).Set(end);
}