ViewShapeBuilder Members


The ViewShapeBuilder type exposes the following members.

Constructors

Name Description
Public method ViewShapeBuilder
Default constructor for an ViewShapeBuilder object.
Public method ViewShapeBuilder(DirectShapeTargetViewType)
A constructor for an ViewShapeBuilder object that takes a view type. It will infer the view normal from view type. View normal and view type are used to validate the geometry to be stored as a view-specific shape representation of a DirectShape object.

Methods

Name Description
Public method AddCurve
Add a curve to the GRep associated to this ViewShapeBuilder.
Public method Dispose
Releases all resources used by the ViewShapeBuilder
Public method Equals
Determines whether the specified Object is equal to the current Object .
(Inherited from Object .)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method Reset
Clears the accumulated geometry and resets other ViewShapeBuilder parameters to invalid values.
Public method SetShape(DirectShape)
Set a view-specific shape of the DirectShape object to geometry accumulated in this ViewShapeBuilder object. The view type currently set in ViewShapeBuilder is used. Since the accumulated geometry was validated by ViewShapeBuilder already, this skips the second validation in DirectShape. This function resets this ViewShapeBuilder object: the geometry is transferred to DirectShape, view normal and view type are invalidated.
Public method SetShape(DirectShapeType)
Set a view-specific shape of the DirectShapeType object to geometry accumulated in this ViewShapeBuilder object. The view type currently set in ViewShapeBuilder is used. Since the accumulated geometry was validated by ViewShapeBuilder already, this skips the second validation in DirectShapeType. This function resets this ViewShapeBuilder object: the geometry is transferred to DirectShapeType, view normal and view type are invalidated.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method ValidateCurve
Validates curve to be added to the view-specific shape being constructed. Called by addCurve. Expects a valid view normal to be set prior to the call. This function may be used to pre-validate the geometry being added to avoid addCurve throwing an InvalidArgumentException
Public method ValidateViewType
Validates the incoming view type. As of today, the only allowed view type is Plan.

Properties

Name Description
Public property IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public property ViewNormal
Normal of the view that will display the shape being built. Must be set explicitly before adding any geometry. Must be a unit vector. This is used to validate incoming geometry - it must be orthogonal to the viewNormal.
Public property ViewType
View type where the view-specific shape currently being built will be used

See Also