Commands  ›  Architecture / Schedules  ›  Architecture Create Schedule For Category With Field List

Architecture Create Schedule For Category With Field List

Architecture / Schedules writes to model Public API · not yet exposed

Coming soon

Before you run this

Active document open; category is a valid BuiltInCategory int value; field_names non-empty; project has at least one element in the category (Revit will still create an empty schedule, but we warn via WireRecoverable).

After it runs

Exactly one new ViewSchedule added. One committed Transaction. Audit entry recorded.

When to use this

Don't use this when

Editing an existing ViewSchedule (use the dedicated edit commands).

Decision flow

1) User or Bot supplies category int value (BuiltInCategory cast to int), schedule name, field names csv. 2) Validate — category id is a known BuiltInCategory; schedule name non-empty; at least one field name. Else WireError + abort. 3) Open Transaction 'Create category schedule'. 4) schedule = ViewSchedule.CreateSchedule(doc, new ElementId(category)); try set schedule.Name (swallow NameClash with WireRecoverable). 5) fields = GetScheduleFieldsByName.Find(doc, schedule.Definition, splitCsv). 6) For each field: schedule.Definition.AddField(field). 7) Commit. 8) Bot: JSON {ok, schedule_id, schedule_name, added_field_count}. User: toast 'Schedule {schedule.Name} created with {n} field(s).' 9) Any exception → tracker.Fail(ex); WireFault {category, schedule_name, field_count}.

What you'll see in the chat

on start
Creating schedule for category with field list…
thinking
Resolving schedulable fields for supplied names…
Adding fields in order…
on success
Schedule '{schedule_name}' created with {field_count} field(s).
on failure
Could not create schedule: {error}.

REST API

Not yet exposed

This command does not carry a [RestApi] attribute today. Once tagged, this section will auto-populate with:

  • POST /api/v1/commands/architecture_create_schedule_for_category_with_field_list
  • Request body schema (from [RestApiParam])
  • Response schema (from [RestApiResponse])
  • curl / JS / Python code examples

Keywords & intent patterns

create schedule · category schedule · schedule fields · Revit schedule view · drawing production

PillarArchitecture / Schedules