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

DirectShape.IsValidCategoryId

Method
Description:
Test the category id to make sure the category is allowed for a DirectShape or DirectShapeType.
Syntax
public static bool IsValidCategoryId(
	ElementId categoryId,
	Document doc
)
Parameters
Parameter Type Description
categoryId ElementId Category id to be tested.
doc Document Document to look up the category by id.
Return Value
Type Description
Boolean True if the category is allowed for a DirectShape or DirectShapeType, false if not.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null