Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to select three different categories of elements using the iselectionfilter but my conditional clause to select beams in they normal to view is not working
public class Support : ISelectionFilter private bool IsEligibleSupport(Element element) { BeamGeometry beamgeometry = new BeamGeometry(Doc); bool beamparallel=beamgeometry.IsParallelToView(Doc,element); int CategoryId= element.Category.Id.IntegerValue; if (CategoryId==(int)BuiltInCategory.OST_StructuralColumns||
CategoryId==(int)BuiltInCategory.OST_Walls) if(CategoryId==(int)BuiltInCategory.OST_StructuralFraming &&
beamparallel == true) return false; return true; } public bool AllowElement(Element ele) { if(IsEligibleSupport(ele) ) return true; return false; } public bool AllowReference(Reference r, XYZ point) { return true; } }
Solved! Go to Solution.