Revit API

Reply
Active Member
RayRay_46
Posts: 7
Registered: ‎04-20-2010
Message 1 of 6 (905 Views)

Schedule - calculated value / field

905 Views, 5 Replies
02-21-2013 02:14 PM

hi,

 

Using the ScheduleDefinition.GetSchedulableFields it is possible to iterate through the available (shared) parameters and add or insert (addfield or insertfield) them to the created schedule.

 

However I wish to add a calculated value / calculated field to the schedule. This field does not show up in GetSchedulableFields because this field has to be added 'on the fly'. In the API there is a schedulefieldtype.formula member which suggest it may be possible to add a calculated field. Does anyone know how to add a calculated field because I am running out of ideas

 

regards,

Raymond

 

ADN Support Specialist
jeremytammik
Posts: 564
Registered: ‎08-20-2007
Message 2 of 6 (807 Views)

Re: Schedule - calculated value / field

03-14-2013 04:22 AM in reply to: RayRay_46

Dear Raymond,

Yes, sorry, currently not possible. Revit 2013 provided a first stab at a schedule API, to be fledged out in future, e.g. to access individual values.

Cheers, Jeremy.



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Valued Contributor
YarUnderoaker
Posts: 53
Registered: ‎12-29-2012
Message 3 of 6 (692 Views)

Re: Schedule - calculated value / field

06-01-2013 03:27 PM in reply to: jeremytammik

Hi.

Is this possible in Revit 2014? I can find how  to add calculated fields.

ADN Support Specialist
jeremytammik
Posts: 564
Registered: ‎08-20-2007
Message 4 of 6 (688 Views)

Re: Schedule - calculated value / field

06-01-2013 05:00 PM in reply to: YarUnderoaker

Sure. Look at the new SDK samples:

 

  • ScheduleAutomaticFormatter
  • ScheduleCreation
  • ScheduleToHTML

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Valued Contributor
YarUnderoaker
Posts: 53
Registered: ‎12-29-2012
Message 5 of 6 (679 Views)

Re: Schedule - calculated value / field

06-02-2013 12:45 AM in reply to: jeremytammik

Exactly, thank you. I habitually use the SDK 2013 and was looking for methods in documentation and forgot that there is already a new one :smileyhappy:

Valued Contributor
YarUnderoaker
Posts: 53
Registered: ‎12-29-2012
Message 6 of 6 (676 Views)

Re: Schedule - calculated value / field

06-02-2013 01:59 AM in reply to: YarUnderoaker

Unfortunately I still can't see what to do for creating calculated fields :smileysad:

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.