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: 

Edit schedule

1 REPLY 1
Reply
Message 1 of 2
Anonymous
427 Views, 1 Reply

Edit schedule

Hello. I am asking you to help me. I want to insert data into a cell of the schedule or edit it using revit api. I use the following methods:
1- element.LookupParameter("Name parament").Set("Value");
2- TableSectionData.SetCellText("value");

I get an exception: Autodesk.Revit.Exceptions InvalidOperationException This operation is forbidden for cells in standard schedule body sections.

I ask you to help me and how to achieve the result.

Best regards
Alex

 

Git repository : https://github.com/WINt1703/Test

1 REPLY 1
Message 2 of 2
jeremytammik
in reply to: Anonymous

SetCellText cannot be used, as the error message you quote clearly states.

 

To understand this in more depth, please search this forum for 'SetCellText' and read the numerous previous discussions on this topic.

  

The schedule is a view of the BIM, so the data is displays is read-only.

  

To modify it, you need to modify the model appropriately.

 

Your item 1 is a possible approach. It depends on your model, the elements, and their data.

    



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

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

Post to forums  

Autodesk Design & Make Report