Hi,
I would like to add shared parameters to a schedule and then the room parameters that you can grab from a multi-category schedule like room:name etc.
Is this possible? If so how do I find a shared parameter fromthe project, do i use the guid?
AddRegularFieldToSchedule(viewschedule, new ElementId( ?));
cheers,
Fabio
Solved! Go to Solution.
Solved by matthew_taylor. Go to Solution.
Solved by FrankHolidaytoiling. Go to Solution.
the room parameter is simply a builtinparameter, called room_number
so adding shared parameters to the schedulable fields is now my issue
I'm pretty sure there's a really good example of this in the SDK.
Here are a few starter lines that should either solve your problem or give you some keywords to start your search:
Dim schedulableFields As IList(Of DB.SchedulableField) = viewSched.Definition.GetSchedulableFields() Dim field0 As DB.SchedulableField = schedulableFields.Where(Function(sf) sf.GetName(doc) = "NameOfParameter).FirstOrDefault Dim scheduleField0 As DB.ScheduleField = viewSched.Definition.AddField(field0)
A quick search on TheBuildingCoder should yield further results.
Cheers,
-Matt
[Edit: wording fix]
I searched for eons for the parchment daniel jackson, many scholarly thanx!
Can't find what you're looking for? Ask the community or share your knowledge.