Share

DirectShape.IsSupportedDocument Method

Tests whether a DirectShape or a DirectShapeType may be created in this document.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public static bool IsSupportedDocument(
	Document document
)

Parameters

document  Document
Document to be tested.

Return Value

Boolean
True if a DirectShape or a DirectShapeType object can be created in this document, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

Some types of Document, such as 2D families, can't support DirectShape functionality.

See Also

Reference

Was this information helpful?