
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, every body,
i am a newbie for Revit API. Now i have a problems with the change name of Drawy by in Sheet list
Here is my code to filter all the schedule in the document. But i don't how to take and change the value or parameter in List Sheet schedule.
UIApplication uiap = commandData.Application;
UIDocument uidoc = uiap.ActiveUIDocument;
Document doc = uidoc.Document;
string ListSchedule = "";
FilteredElementCollector fi = new FilteredElementCollector(doc);
fi.OfCategory(BuiltInCategory.OST_Schedules);
fi.OfClass(typeof(ViewSchedule));
foreach (ViewSchedule sht in fi)
{
ListSchedule += sht.Name.ToString()+Environment.NewLine;
}
TaskDialog.Show("All Schedules in the document", ListSchedule);
Thank you so much for your help!
Solved! Go to Solution.