<Code Lib>
2026 Method
Changes 0
M

DirectShape.IsValidCategoryId

Description:
Test the category id to make sure the category is allowed for a DirectShape or DirectShapeType.

public static bool IsValidCategoryId(
	ElementId categoryId,
	Document doc
)

  • categoryId
    Category id to be tested.
  • doc
    Document to look up the category by id.
Return Value Boolean True if the category is allowed for a DirectShape or DirectShapeType, false if not.

Loading…