Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66666

Select cutted windows in section views

$
0
0

 

2016-09-18_01-52-00.png

Hello friends 

I want to select only cutted window in section view.

IList<Reference> myRefs = uidoc.Selection.PickObjects(ObjectType.Element, new WindowsSelectionFilter());

How can i modify my selection filter

public bool AllowElement(Element elem)
        {
            if (elem.Category.Id.IntegerValue == (int)BuiltInCategory.OST_Windows)
            {
                    return true;
            }

            return false;
        }

        public bool AllowReference(Reference reference, XYZ position)
        {
            return true;
        }

Thanks in advance...

 


Viewing all articles
Browse latest Browse all 66666

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>