C# Class Revit.SDK.Samples.Selections.CS.PlanarFaceFilter

A Filter for planar face. Only planar faces are allowed to be picked.
Inheritance: ISelectionFilter
显示文件 Open project: AMEE/revit

Public Methods

Method Description
AllowElement ( Element element ) : bool

Allow all the element to be selected

AllowReference ( System.Reference refer, XYZ point ) : bool

Allow planar face reference to be selected

PlanarFaceFilter ( Document doc ) : System

Constructor the filter and initialize the document.

Method Details

AllowElement() public method

Allow all the element to be selected
public AllowElement ( Element element ) : bool
element Element A candidate element in selection operation.
return bool

AllowReference() public method

Allow planar face reference to be selected
public AllowReference ( System.Reference refer, XYZ point ) : bool
refer System.Reference A candidate reference in selection operation.
point XYZ The 3D position of the mouse on the candidate reference.
return bool

PlanarFaceFilter() public method

Constructor the filter and initialize the document.
public PlanarFaceFilter ( Document doc ) : System
doc Document The document.
return System