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

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

Anonymous
Not applicable
294 Views
0 Replies
Message 1 of 1

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

Anonymous
Not applicable

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);

}

0 Likes
295 Views
0 Replies
Replies (0)