Revit API

Reply
Contributor
AlexanderSkibin
Posts: 23
Registered: ‎11-11-2013
Message 1 of 4 (228 Views)
Accepted Solution

Adding fields to a schedule

228 Views, 3 Replies
11-19-2013 11:54 PM

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

Valued Contributor
Scott_Wilson
Posts: 94
Registered: ‎04-10-2013
Message 2 of 4 (216 Views)

Re: Adding fields to a schedule

11-20-2013 01:10 AM in reply to: AlexanderSkibin

 

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.

 

Contributor
AlexanderSkibin
Posts: 23
Registered: ‎11-11-2013
Message 3 of 4 (213 Views)

Re: Adding fields to a schedule

11-20-2013 01:27 AM in reply to: Scott_Wilson
Thank you, I will try.
Contributor
AlexanderSkibin
Posts: 23
Registered: ‎11-11-2013
Message 4 of 4 (166 Views)

Re: Adding fields to a schedule

11-24-2013 09:23 PM in reply to: AlexanderSkibin
My solution is:

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit

Twitter

Facebook

Blogs

Youtube