RVTDocs.com
Namespace: Autodesk.Revit.DB Class: DirectShape

DirectShape.IsSupportedDocument

Method
Description:
Tests whether a DirectShape or a DirectShapeType may be created in this document.
Remarks:
Some types of Document, such as 2D families, can't support DirectShape functionality.
Syntax
public static bool IsSupportedDocument(
	Document document
)
Parameters
Parameter Type Description
document Document Document to be tested.
Return Value
Type Description
Boolean True if a DirectShape or a DirectShapeType object can be created in this document, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null