ViewDrafting
Description:
ViewDrafting represents a drafting view within the model.
ViewDrafting represents a drafting view within the model.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Element
Autodesk.Revit.DB.View
Autodesk.Revit.DB.ViewDrafting
Autodesk.Revit.DB.ImageView
System.Object
Autodesk.Revit.DB.Element
Autodesk.Revit.DB.View
Autodesk.Revit.DB.ViewDrafting
Autodesk.Revit.DB.ImageView
public class ViewDrafting : View
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Create(Document, ElementId) | ViewDrafting | Creates a new ViewDrafting in the model. | |
| ArePhasesModifiable() | bool | Returns true if the properties CreatedPhaseId and DemolishedPhaseId can be modified for this Element. | Element |
| CanBeHidden(View) | bool | Indicates if the element can be hidden in the view. | Element |
| CanBeLocked() | bool | Identifies if the element can be locked. | Element |
| CanDeleteSubelement(Subelement) | bool | Checks if given subelement can be removed from the element. | Element |
| CanHaveAnalyticalModel() | bool | Indicates whether the Element can have an Analytical Model. | Element |
| CanHaveTypeAssigned() | bool | Identifies if the element can have a type assigned. | Element |
| CanHaveTypeAssigned(Document, ICollection<ElementId>) | bool | Checks if all elements in the set can have a type assigned. | Element |
| ChangeTypeId(Document, ICollection<ElementId>, ElementId) | IDictionary | Changes the type of all elements in the given set. | Element |
| ChangeTypeId(ElementId) | ElementId | Changes the type of the element. | Element |
| DeleteEntity(Schema) | bool | Deletes the existing entity created by %schema% in the element | Element |
| DeleteSubelement(Subelement) | bool | Removes a subelement from the element. | Element |
| DeleteSubelements(IList<Subelement>) | bool | Removes the subelements from the element. | Element |
| Dispose() | None | Releases all resources used by the | Element |
| GetAnalyticalModelId() | Element Id. | Retrieves the Element Id of the Analytical Model Element for this Element. | Element |
| GetAnalyticalModel() | Writeable Analytical Model. | Retrieves writeable Analytical Model for Element. | Element |
| GetChangeTypeAny() | ChangeType | Returns ChangeType associated with any change in an element. | Element |
| GetChangeTypeElementAddition() | ChangeType | Returns ChangeType associated with element addition | Element |
| GetChangeTypeElementDeletion() | ChangeType | Returns ChangeType associated with element deletion. | Element |
| GetChangeTypeGeometry() | ChangeType | Returns ChangeType associated with a change in the geometry of an element | Element |
| GetChangeTypeParameter(ElementId) | ChangeType | Returns ChangeType associated with a change in a parameter's value | Element |
| GetChangeTypeParameter(Parameter) | ChangeType | Returns ChangeType associated with a change in a parameter's value | Element |
| GetDependentElements(ElementFilter) | IList<ElementId> | Get all elements that, from a logical point of view, are the children of this Element. | Element |
| GetEntity(Schema) | The returned Entity. | Returns the existing entity corresponding to the Schema if it has been saved in the Element, or an invalid entity otherwise. | Element |
| GetEntitySchemaGuids() | IList<Guid> | Returns the Schema guids of any Entities stored in this element. | Element |
| GetExternalFileReference() | ExternalFileReference | Gets information pertaining to the external file referenced by the element. | Element |
| GetExternalResourceReference(ExternalResourceType) | ExternalResourceReference | Gets the ExternalResourceReference associated with a specified external resource type. | Element |
| GetExternalResourceReferences() | IDictionary | Gets the full map of the external resource references referenced by the element. | Element |
| GetGeneratingElementIds(GeometryObject) | ICollection<ElementId> | Returns the ids of the element(s) that generated the input geometry object. | Element |
| GetGeometryObjectFromReference(Reference) | GeometryObject | Retrieve one geometric primitive contained in the element given a reference. | Element |
| GetMaterialArea(ElementId, Boolean) | double | Gets the area of the material with the given id. | Element |
| GetMaterialIds(Boolean) | ICollection<ElementId> | Gets the element ids of all materials present in the element. | Element |
| GetMaterialVolume(ElementId) | double | Gets the volume of the material with the given id. | Element |
| GetMonitoredLinkElementIds() | IList<ElementId> | Provides the link instance IDs when the element is monitoring. | Element |
| GetMonitoredLocalElementIds() | IList<ElementId> | Provides the local element IDs when the element is monitoring. | Element |
| GetOrderedParameters() | IList<Parameter> | Gets the parameters associated to the element in order. | Element |
| GetParameterFormatOptions(ElementId) | FormatOptions | Returns a FormatOptions override for the element Parameter, or a default FormatOptions if no override exists. | Element |
| GetParameter(ForgeTypeId) | Parameter | Retrieves a parameter from the element given identifier. | Element |
| GetParameters(String) | IList<Parameter> | Retrieves the parameters from the element via the given name. | Element |
| GetPhaseStatus(ElementId) | ElementOnPhaseStatus | Gets the status of a given element in the input phase | Element |
| GetSubelements() | IList<Subelement> | Returns the collection of element subelements. | Element |
| GetTypeId() | ElementId | Returns the identifier of this element's type. | Element |
| GetValidTypes() | ICollection<ElementId> | Obtains a set of types that are valid for this element. | Element |
| GetValidTypes(Document, ICollection<ElementId>) | ICollection<ElementId> | Obtains a set of types that are valid for all given elements. | Element |
| HasPhases() | bool | Returns true if this Element has the properties CreatedPhaseId and DemolishedPhaseId. | Element |
| IsCreatedPhaseOrderValid(ElementId) | bool | Returns true if createdPhaseId and demolishedPhaseId are in order. | Element |
| IsDemolishedPhaseOrderValid(ElementId) | bool | Returns true if createdPhaseId and demolishedPhaseId are in order. | Element |
| IsExternalFileReference() | bool | Determines whether this Element represents an external file. | Element |
| IsHidden(View) | bool | Identifies if the element has been permanently hidden in the view. | Element |
| IsMonitoringLinkElement() | bool | Indicate whether an element is monitoring any elements in any linked models. | Element |
| IsMonitoringLocalElement() | bool | Indicate whether an element is monitoring other local elements. | Element |
| IsPhaseCreatedValid(ElementId) | bool | Returns true if createdPhaseId is an allowed value for the property CreatedPhaseId in this Element. | Element |
| IsPhaseDemolishedValid(ElementId) | bool | Returns true if demolishedPhaseId is an allowed value for the property DemolishedPhaseId in this Element. | Element |
| IsValidType(Document, ICollection<ElementId>, ElementId) | bool | Checks if given type is valid for the set of elements. | Element |
| IsValidType(ElementId) | bool | Checks if given type is valid for this element. | Element |
| LookupParameter(String) | nullNothingnullptr | Attempts to find a parameter on the element which has the given name. | Element |
| RefersToExternalResourceReference(ExternalResourceType) | bool | Determines whether this Element uses external resources associated with a specified external resource type. | Element |
| RefersToExternalResourceReferences() | bool | Determines whether this Element uses external resources. | Element |
| SetEntity(Entity) | None | Stores the entity in the element. If an Entity described by the same Schema already exists, it is overwritten. | Element |
| AddFilter(ElementId) | None | Adds a filter to the view. | View |
| AllowsAnalysisDisplay() | bool | Identifies if this view allows display of Analysis results. | View |
| ApplyViewTemplateParameters(View) | None | Applies to this view the parameters of the input view that are not controlled by the current view template. | View |
| AreGraphicsOverridesAllowed() | bool | Determines if Visibility/Graphics Overriddes can be applied to the view. | View |
| CanApplyColorFillScheme(ElementId, ElementId) | bool | Checks if the id can be applied as the scheme id of specified category to this view. | View |
| CanCategoryBeHidden(ElementId) | bool | Checks whether the category can be hidden in the view. | View |
| CanCategoryBeHiddenTemporary(ElementId) | bool | Check if category can be temporarily hidden in the view. | View |
| CanEnableTemporaryViewPropertiesMode() | bool | Indicates if Temporary View Properties mode can be applied for view in current state. | View |
| CanModifyDetailLevel() | bool | Check if Detail Level can be modified. | View |
| CanModifyDisplayStyle() | bool | Indicates if DisplayStyle can be modified. | View |
| CanModifyViewDiscipline() | bool | Indicates if the View Discipline can be modified | View |
| CanUseDepthCueing() | bool | Indicates if view can use Depth Cueing | View |
| CanUseTemporaryVisibilityModes() | bool | Indicates if view can use temporary visibility modes | View |
| CanViewBeDuplicated(ViewDuplicateOption) | bool | Identifies if this view can be duplicated. | View |
| ConvertTemporaryHideIsolateToPermanent() | None | Convert all temporary hidden elements or categories to permanently hidden in view. | View |
| ConvertToIndependent() | None | Convert the dependent view to independent. | View |
| CreateViewTemplate() | View | Creates a new view template instance from this view instance. | View |
| DisableTemporaryViewMode(TemporaryViewMode) | None | Disables the specified temporary view mode. | View |
| Duplicate(ViewDuplicateOption) | ElementId | Duplicates this view. | View |
| EnableRevealHiddenMode() | None | Enables Reveal Hidden elements mode. | View |
| EnableTemporaryViewPropertiesMode(ElementId) | bool | Turns Temporary View Properties mode on or off. In this mode, any changes made to the view are temporary and will be discarded once the mode is disabled. | View |
| GetBackground() | Current background. | Returns the current background set for the view. | View |
| GetCalloutParentId() | ElementId | Gets ID of the callout parent view. | View |
| GetCategoryHidden(ElementId) | bool | Checks if elements of the given category are set to be invisible (hidden) in this view. | View |
| GetCategoryOverrides(ElementId) | OverrideGraphicSettings | Gets graphic overrides for a category in view. | View |
| GetColorFillSchemeId(ElementId) | ElementId | Returns id of the color fill scheme element applied to the view. | View |
| GetCropRegionShapeManagerForReferenceCallout(Document, ElementId) | ViewCropRegionShapeManager | Returns an object for managing view crop region shape for reference callout. | View |
| GetCropRegionShapeManager() | ViewCropRegionShapeManager | Returns an object for managing view crop region shape. | View |
| GetDependentViewIds() | ICollection<ElementId> | Get the ids of dependent views. | View |
| GetDepthCueing() | ViewDisplayDepthCueing | Returns the current depth cueing settings for the view. | View |
| GetDirectContext3DHandleOverrides() | DirectContext3DHandleOverrides | Returns DirectContext3D handle overrides object for the view. | View |
| GetElementOverrides(ElementId) | OverrideGraphicSettings | Gets graphic overrides for an element in the view. | View |
| GetFilterOverrides(ElementId) | OverrideGraphicSettings | Gets graphic overrides that a filter applies to the view. | View |
| GetFilters() | ICollection<ElementId> | Gets the filters applied to the view. | View |
| GetFilterVisibility(ElementId) | bool | Gets the visibility of the elements associated with a filter. | View |
| GetIsFilterEnabled(ElementId) | bool | Identifies if the filter is enabled in this view. | View |
| GetNonControlledTemplateParameterIds() | ICollection<ElementId> | Returns a list of parameters that are not marked as included when this view is used as a template. | View |
| GetOrderedFilters() | IList<ElementId> | Gets the filters applied to the view in the order they are applied. | View |
| GetPointCloudOverrides() | PointCloudOverrides | Returns point cloud overrides object for the view. | View |
| GetPrimaryViewId() | ElementId | Get the id of the primary view. | View |
| GetReferenceCallouts() | ICollection<ElementId> | Returns element ids of all reference callouts in the view. | View |
| GetReferenceElevations() | ICollection<ElementId> | Returns element ids of all reference elevations in the view. | View |
| GetReferenceSections() | ICollection<ElementId> | Returns element ids of all reference sections in the view. | View |
| GetSketchyLines() | ViewDisplaySketchyLines | Returns the current sketchy lines settings for the view. | View |
| GetTemplateParameterIds() | IList<ElementId> | Returns a list of parameter ids that may be controlled when this view is assigned as a template. | View |
| GetTemporaryViewPropertiesId() | ElementId | When Temporary View Properties mode is in progress it provides view id that overrode settings for current view. Outside Temporary View Properties mode InvalidElementId will be returned. | View |
| GetTemporaryViewPropertiesName() | string | When Temporary View Properties mode is in progress, name of applied template is returned. Outside Temporary View Properties mode, empty string will be returned. | View |
| GetViewDisplayModel() | ViewDisplayModel | Returns the current view display model settings for the view. | View |
| GetWorksetVisibility(WorksetId) | WorksetVisibility | Returns the visibility settings of a workset for this particular view. | View |
| GetWorksharingDisplayMode() | WorksharingDisplayMode | Gets the current worksharing display mode for this view. | View |
| HasDetailLevel() | bool | Check if the view has a Detail Level property | View |
| HasDisplayStyle() | bool | Indicates if view has a DisplayStyle property | View |
| HasViewDiscipline() | bool | Indicates if the view has a Discipline property | View |
| HideActiveWorkPlane() | None | Hide the active work plane of the view. | View |
| HideCategoriesTemporary(ICollection<ElementId>) | None | Set multiple categories to be temporarily hidden in the view. | View |
| HideCategoryTemporary(ElementId) | None | Set one category to be temporarily hidden in the view. | View |
| HideElements(ICollection<ElementId>) | None | Sets the elements to be hidden in the view. | View |
| HideElementsTemporary(ICollection<ElementId>) | None | Set multiple elements to be temporarily hidden in the view. To hide a group completely, you must also include all members of all groups and nested groups in your input. | View |
| HideElementTemporary(ElementId) | None | Set one element to be temporarily hidden in the view. | View |
| IsCategoryOverridable(ElementId) | bool | Checks whether the category can have graphic overrides in this view. | View |
| IsElementVisibleInTemporaryViewMode(TemporaryViewMode, ElementId) | bool | Identifies if the input element is visible for the temporary view mode for this view. | View |
| IsFilterApplied(ElementId) | bool | Indicates if a filter is applied to the view. | View |
| IsInTemporaryViewMode(TemporaryViewMode) | bool | Returns true if the view is in a particular temporary view mode. | View |
| IsolateCategoriesTemporary(ICollection<ElementId>) | None | Set categories to be temporarily isolated in the view. | View |
| IsolateCategoryTemporary(ElementId) | None | Set one category to be temporarily isolated in the view. | View |
| IsolateElementsTemporary(ICollection<ElementId>) | None | Set multiple elements to be temporarily isolated in the view. To isolate a group completely, you must also include all members of all groups and nested groups in your input. | View |
| IsolateElementTemporary(ElementId) | None | Set one element to be temporarily isolated in the view. | View |
| IsTemporaryHideIsolateActive() | bool | Indicates if the view is temporarily hiding or isolating elements or categories. | View |
| IsTemporaryViewPropertiesModeEnabled() | bool | Returns true when Temporary View Properties mode is in progress, false otherwise. | View |
| IsValidViewScale(Int32) | bool | This validator checks that the view scale is in the allowable range. | View |
| IsValidViewTemplate(ElementId) | bool | Verifies that the view represented by templateId can be set as the controlling view template for this view. | View |
| IsViewValidForTemplateCreation() | bool | Verifies that the view is valid for template creation. | View |
| IsWorksetVisible(WorksetId) | bool | Indicates whether the workset is visible in this view. | View |
| Print() | None | Print this view with the default view template and using the print setting of the current active document. | View |
| Print(Boolean) | None | Print this view with the default view template, and either the view's document's print setting or the print setting of the current active document. | View |
| Print(View) | None | Print this view with the given view template and using the print setting of the current active document. | View |
| Print(View, Boolean) | None | Print this view with the given view template, and either the view's document's print setting or the print setting of the current active document. | View |
| RemoveCalloutParent() | None | Replaces callout parent ID with InvalidElementId. | View |
| RemoveFilter(ElementId) | None | Removes a filter from the view. | View |
| RestoreCalloutParent() | None | Restores callout parent ID to the original view ID if that view is still available. | View |
| SetBackground(ViewDisplayBackground) | None | Sets the background for the view. Background can only be set for 3d views and for Sections/Elevations. | View |
| SetCategoryHidden(ElementId, Boolean) | None | Sets if elements of the given category will be visible in this view. | View |
| SetCategoryOverrides(ElementId, OverrideGraphicSettings) | None | Sets graphic overrides for a category in view. | View |
| SetColorFillSchemeId(ElementId, ElementId) | None | Applies color fill scheme to this view. | View |
| SetDepthCueing(ViewDisplayDepthCueing) | None | Sets the depth cueing settings for the view. | View |
| SetElementOverrides(ElementId, OverrideGraphicSettings) | None | Sets graphic overrides for an element in the view. | View |
| SetFilterOverrides(ElementId, OverrideGraphicSettings) | None | Sets the overrides associated with a filter. | View |
| SetFilterVisibility(ElementId, Boolean) | None | Sets the visibility of the elements associated with a filter. | View |
| SetIsFilterEnabled(ElementId, Boolean) | None | Sets the filter enabled flag. | View |
| SetNonControlledTemplateParameterIds(ICollection<ElementId>) | None | Sets the parameters that will not be included when this view is used as a template. | View |
| SetSketchyLines(ViewDisplaySketchyLines) | None | Sets the sketchy lines settings for the view. | View |
| SetViewDisplayModel(ViewDisplayModel) | None | Sets the view display model settings for the view. | View |
| SetWorksetVisibility(WorksetId, WorksetVisibility) | None | Sets visibility for a workset in this view. | View |
| SetWorksharingDisplayMode(WorksharingDisplayMode) | None | Sets the worksharing display mode for this view. | View |
| ShowActiveWorkPlane() | None | Show the active work plane of the view. | View |
| SupportedColorFillCategoryIds() | ICollection<ElementId> | Returns collection of all category ids that correspond to elements that can potentially be colored in this view according to a color fill scheme. The set may be different depending on the view type. | View |
| SupportsRevealConstraints() | bool | Checks that the view can have the Reveal Constraints mode activated. | View |
| SupportsWorksharingDisplayMode(WorksharingDisplayMode) | bool | Checks whether this view supports the given worksharing display mode. | View |
| UnhideElements(ICollection<ElementId>) | None | Sets the elements to be shown in the given view if they are currently hidden. | View |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AssemblyInstanceId | ElementId | The id of the assembly instance to which the element belongs. | Element |
| BoundingBox | BoundingBoxXYZ | Retrieves a box that circumscribes all geometry of the element. | Element |
| Category | Category | Retrieves a Category object that represents the category or sub category in which the element resides. | Element |
| CreatedPhaseId | ElementId | Id of a Phase at which the Element was created. | Element |
| DemolishedPhaseId | ElementId | Id of a Phase at which the Element was demolished. | Element |
| DesignOption | DesignOption | Returns the design option to which the element belongs. | Element |
| Document | Document | Returns the Document in which the Element resides. | Element |
| Geometry | GeometryElement | Retrieves the geometric representation of the element. | Element |
| GroupId | ElementId | The id of the group to which an element belongs. | Element |
| Id | ElementId | A unique identifier for an Element in an Autodesk Revit project. | Element |
| IsTransient | bool | Indicates whether an element is transient or permanent. | Element |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. | Element |
| LevelId | ElementId | The id of the level associated with the element. | Element |
| Location | Location | This property is used to find the physical location of an element within a project. | Element |
| Name | string | A human readable name for the Element. | Element |
| OwnerViewId | ElementId | The id of the view that owns the element. | Element |
| Parameter | Parameter | Retrieves a parameter from the element given a parameter id. | Element |
| Parameter | Parameter | Retrieves a parameter from the element based on its definition. | Element |
| Parameter | Parameter | Retrieves a parameter from the element given a GUID for a shared parameter. | Element |
| ParametersMap | ParameterMap | Retrieves a map containing all of the parameters that are contained within the element. | Element |
| Parameters | ParameterSet | Retrieves a set containing all of the parameters that are contained within the element. | Element |
| Pinned | bool | Identifies if the element has been pinned to prevent changes. | Element |
| UniqueId | string | A stable unique identifier for an element within the document. | Element |
| VersionGuid | Guid | Get the element version Guid. | Element |
| ViewSpecific | bool | Identifies if the element is owned by a view. | Element |
| WorksetId | WorksetId | Get Id of the Workset which owns the element. | Element |
| AnalysisDisplayStyleId | ElementId | Element id of Analysis Display Style associated with the view. | View |
| AreAnalyticalModelCategoriesHidden | bool | Indicates if analytical model categories are currently hidden in the view. | View |
| AreAnnotationCategoriesHidden | bool | Indicates if annotation categories are currently hidden in the view. | View |
| AreCoordinationModelHandlesHidden | bool | Indicates if Coordination Model handles are currently hidden in the view. | View |
| AreImportCategoriesHidden | bool | Indicates if import categories are currently hidden in the view. | View |
| AreModelCategoriesHidden | bool | Indicates if model categories are currently hidden in the view. | View |
| ArePointCloudsHidden | bool | Indicates if point clouds are currently hidden in the view. | View |
| AssociatedAssemblyInstanceId | ElementId | The Id of the assembly instance that owns the assembly view. | View |
| CanBePrinted | bool | Test whether the view can be printed. | View |
| CropBoxActive | bool | Whether or not the Crop Box/Region is active for the view. | View |
| CropBox | BoundingBoxXYZ | The Crop Box applied to the view, or an outline encompassing the crop region applied to the view. | View |
| CropBoxVisible | bool | Whether or not the Crop Box/Region is visible for the view. | View |
| DetailLevel | ViewDetailLevel | The detail level of this view. | View |
| Discipline | ViewDiscipline | The Discipline of the view. | View |
| DisplayStyle | DisplayStyle | The DisplayStyle of the view. Returns DisplayStyle.Wireframe if the view has no display style. | View |
| GenLevel | Level | The level for the view. | View |
| IsAssemblyView | bool | Indicates if the view is assembly view. | View |
| IsCallout | bool | Indicates if the view is a callout view. | View |
| IsTemplate | bool | Test whether the view is a view template. | View |
| Origin | XYZ | Returns the origin of the screen. | View |
| Outline | BoundingBoxUV | The bounds of the view in paper space (in feet). | View |
| PartsVisibility | PartsVisibility | The visibility setting for parts in this view. | View |
| RevealConstraintsMode | bool | Indicates whether the Reveal Constraints mode is activated in the view. | View |
| RightDirection | XYZ | The direction towards the right side of the screen. | View |
| Scale | int | The scale of the view. | View |
| ShadowIntensity | int | The intesity of cast shadows - 0 = no shadows, 100 = black. | View |
| SketchPlane | SketchPlane | The sketch plane assigned to the view for model curve creation. | View |
| SunAndShadowSettings | SunAndShadowSettings | The sun and shadow settings assigned to the view for shadow calculation and rendering. | View |
| SunlightIntensity | int | The intensity of the simulated (directional) sunlight. 0 = no directional light; maximum value is 100. | View |
| TemporaryViewModes | TemporaryViewModes | Data of temporary view modes associated with this view. | View |
| Title | string | The view title. This consists of the view name plus other modifiers, such as the view type, sheet number, area scheme, and/or assembly type, depending on the specifics of the view. | View |
| UpDirection | XYZ | The direction towards the top of the screen. | View |
| ViewDirection | XYZ | The direction towards the viewer. | View |
| ViewTemplateId | ElementId | The id of the template view that controls this view's parameters. | View |
| ViewType | ViewType | The type of the view. | View |