The Viewport type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| AssemblyInstanceId |
The id of the assembly instance to which the element belongs.
(Inherited from Element) | |
| BoundingBox | Retrieves a box that circumscribes all geometry of the element. (Inherited from Element) | |
| Category | Retrieves a Category object that represents the category or sub category in which the
element resides. (Inherited from Element) | |
| CreatedPhaseId |
Id of a Phase at which the Element was created.
(Inherited from Element) | |
| DemolishedPhaseId |
Id of a Phase at which the Element was demolished.
(Inherited from Element) | |
| DesignOption | Returns the design option to which the element belongs. (Inherited from Element) | |
| Document | Returns the Document in which the Element resides. (Inherited from Element) | |
| Geometry | Retrieves the geometric representation of the element. (Inherited from Element) | |
| GroupId |
The id of the group to which an element belongs.
(Inherited from Element) | |
| Id |
A unique identifier for an Element in an Autodesk Revit project.
(Inherited from Element) | |
| IsModifiable |
Identifies if the element is modifiable.
(Inherited from Element) | |
| IsTransient |
Indicates whether an element is transient or permanent.
(Inherited from Element) | |
| IsValidObject |
Specifies whether the .NET object represents a valid Revit entity.
(Inherited from Element) | |
| LabelLineLength | The length of the viewport label line in sheet space, measured in feet. | |
| LabelOffset | The offset is a two-dimensional vector from left bottom corner of the viewport with Rotation set to None to the left end of the viewport label line. The Z coordinate is ignored. | |
| LevelId |
The id of the level associated with the element.
(Inherited from Element) | |
| Location | This property is used to find the physical location of an element within a project. (Inherited from Element) | |
| Name | A human readable name for the Element. (Inherited from Element) | |
| OwnerViewId |
The id of the view that owns the element.
(Inherited from Element) | |
| Parameter[BuiltInParameter] | Retrieves a parameter from the element given a parameter id. (Inherited from Element) | |
| Parameter[Definition] | Retrieves a parameter from the element based on its definition. (Inherited from Element) | |
| Parameter[Guid] | Retrieves a parameter from the element given a GUID for a shared parameter. (Inherited from Element) | |
| Parameters | Retrieves a set containing all of the parameters that are contained within the element. (Inherited from Element) | |
| ParametersMap | Retrieves a map containing all of the parameters that are contained within the element. (Inherited from Element) | |
| Pinned |
Identifies if the element has been pinned to prevent changes.
(Inherited from Element) | |
| Rotation | The rotation of the viewport on the sheet. | |
| SheetId | The element id of the ViewSheet on which the viewport appears, or InvalidElementId if this viewport does not associate a view with placement onto a sheet. | |
| UniqueId |
A stable unique identifier for an element within the document.
(Inherited from Element) | |
| VersionGuid |
Get the element version Guid.
(Inherited from Element) | |
| ViewAnchor | Specifies the method by which the view will be positioned on the sheet and for the case when it is swapped to another view. Default is set to ViewAnchor.ViewOrigin. | |
| ViewId | The element id of the associated View. | |
| ViewportPositioning | Obsolete. Specifies the method the viewport will be positioned on the sheet when swapped to another view. Default is set to ViewportPositioning::ViewportCenter. | |
| ViewPosition | Specifies view's position. Default is set to XYZ.Zero. | |
| ViewSpecific |
Identifies if the element is owned by a view.
(Inherited from Element) | |
| WorksetId |
Get Id of the Workset which owns the element.
(Inherited from Element) |
