C# Class Revit.SDK.Samples.NewHostedSweep.CS.HostedSweepCreator

Provides functions to create hosted sweep and preserves available edges and type. It is the base class of FasciaCreator, GutterCreator, and SlabEdgeCreator.
Mostra file Open project: AMEE/revit Class Usage Examples

Protected Properties

Property Type Description
m_elemGeom ElementGeometry>.Dictionary
m_rvtDoc System.Windows.Forms.Document
m_rvtUIDoc UIDocument

Public Methods

Method Description
Create ( CreationData creationData ) : ModificationData

Create a hosted-sweep according to the CreationData parameter.

Protected Methods

Method Description
CreateHostedSweep ( ElementType symbol, ReferenceArray refArr ) : HostedSweep

Create a hosted-sweep according to the given Symbol and ReferenceArray.

ExtractGeom ( Autodesk elem ) : ElementGeometry

Extract the geometry of the given Element.

HostedSweepCreator ( Autodesk rvtDoc ) : System

Constructor which takes a Revit.Document as parameter.

Method Details

Create() public method

Create a hosted-sweep according to the CreationData parameter.
public Create ( CreationData creationData ) : ModificationData
creationData CreationData CreationData parameter
return ModificationData

CreateHostedSweep() protected abstract method

Create a hosted-sweep according to the given Symbol and ReferenceArray.
protected abstract CreateHostedSweep ( ElementType symbol, ReferenceArray refArr ) : HostedSweep
symbol ElementType Hosted-sweep Symbol
refArr ReferenceArray Hosted-sweep ReferenceArray
return HostedSweep

ExtractGeom() protected method

Extract the geometry of the given Element.
protected ExtractGeom ( Autodesk elem ) : ElementGeometry
elem Autodesk Element parameter
return ElementGeometry

HostedSweepCreator() protected method

Constructor which takes a Revit.Document as parameter.
protected HostedSweepCreator ( Autodesk rvtDoc ) : System
rvtDoc Autodesk Revit.Document parameter
return System

Property Details

m_elemGeom protected_oe property

Dictionary to store element's geometry which this creator can be used.
protected Dictionary m_elemGeom
return ElementGeometry>.Dictionary

m_rvtDoc protected_oe property

Revit active document.
protected Document,System.Windows.Forms m_rvtDoc
return System.Windows.Forms.Document

m_rvtUIDoc protected_oe property

Revit UI document.
protected UIDocument m_rvtUIDoc
return UIDocument