I've had a look at the "ScheduleCreation" sample provided in the SDK & I've tried changing this line:
ViewSchedule schedule = ViewSchedule.CreateSchedule(document, new ElementId(BuiltInCategory.OST_Walls), ElementId.InvalidElementId);
to this:
ViewSchedule schedule = ViewSchedule.CreateSchedule(document, new ElementId(BuiltInCategory.OST_Sheets), ElementId.InvalidElementId);
But I get this error:
"categoryId is not a valid category for a regular schedule.
Parameter name: categoryIdA transaction or sub-transaction was opened but not closed. All changes to the active document made by External Command will be discarded."
So how do I go aobut creating a new Sheet List?
thx,
Barry
Solved! Go to Solution.
Link copied