2024 Method
Changes 0
M

AssemblyViewUtils.CreateSingleCategorySchedule

Description:
Creates a new single-category schedule assembly view for the assembly instance.
Remarks:
The new single-category schedule will be preloaded with fields "Family and Type" and "Count". The schedule will be empty if there are no elements of the specified category in the assembly instance. The document must be regenerated before using the schedule.
Overloads (2):
CreateSingleCategorySchedule(Document,ElementId,ElementId,ElementId,Boolean)
public static ViewSchedule CreateSingleCategorySchedule(
	Document document,
	ElementId assemblyInstanceId,
	ElementId scheduleCategoryId,
	ElementId viewTemplateId,
	bool isAssigned
)
  • document
    The document to which the view will be added.
  • assemblyInstanceId
    Id of the assembly instance that owns the new view.
  • scheduleCategoryId
    Id of the category for which the schedule will be created. Use ViewSchedule.IsValidCategoryForSchedule() to check if a category can be scheduled.
  • viewTemplateId
    Id of the view template that is used to create the view; if invalidElementId, the view will be created with the default settings.
  • Boolean
    isAssigned
    If true, the template will be assigned, if false, the template will be applied.
Return Value ViewSchedule A new single-category schedule assembly view.