Revit API

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

Schedule - calculated value / field

941 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: 663
Registered: ‎08-20-2007
Message 2 of 6 (843 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: 63
Registered: ‎12-29-2012
Message 3 of 6 (728 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: 663
Registered: ‎08-20-2007
Message 4 of 6 (724 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: 63
Registered: ‎12-29-2012
Message 5 of 6 (715 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: 63
Registered: ‎12-29-2012
Message 6 of 6 (712 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
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.