Test the category id to make sure the category is allowed for a DirectShape or DirectShapeType.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static bool IsValidCategoryId( ElementId categoryId, Document doc )
Parameters
Return Value
BooleanTrue if the category is allowed for a DirectShape or DirectShapeType, false if not.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |