Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding fields to a schedule

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
AlexanderSkibin
2047 Views, 3 Replies

Adding fields to a schedule

Hi,

 

I cant find out how to add a filed to a schedule.

I try to create a schedule and if I use ScheduleFieldType.Instance Revit derives many different fields. Can I choose these fields?

 

Regards, Alexander

3 REPLIES 3
Message 2 of 4

 

I believe you can use the ViewSchedule.Definition.AddField(ScheduleFieldType fieldType, ElementId parameterId) method to add a new field populated with a desired parameter once you know its ElementId which you can get from the ParameterSet of a FamilySymbol, FamilyInstance or similar element.

 

Message 3 of 4

Thank you, I will try.
Message 4 of 4

My solution is:

ElementId mark = new ElementId(BuiltInParameter.ALL_MODEL_MARK);
if (schedulableField.ParameterId == mark)
{
ScheduleField field = schedule.Definition.AddField(schedulableField );
}

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community