Message 1 of 4
Shared parameter to schedulable field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Is it possible through the API to add columns to a schedule directly from a shared parameter files without creating a project parameter
I know that I can add Built in Parameters
ScheduleDefinition msd = mvs.Definition; schedulableFields=msd.GetSchedulableFields(); ScheduleField mnamefield = msd.AddField(new SchedulableField(ScheduleFieldType.Instance, new ElementId(BuiltInParameter.ALL_MODEL_MARK)));
I know that I can search for specific text strings
IList<SchedulableField> schedulableFields = viewSched.Definition.GetSchedulableFields(); SchedulableField field0 = schedulableFields.Where(sf => sf.GetName(doc) == "NameOfParameter").FirstOrDefault(); ScheduleField scheduleField0 = viewSched.Definition.AddField(field0);
The idea would be to create the full version of the schedule possibly before the families with all the parameters have been added to the project.