Create a copy of an existing schedule?

Create a copy of an existing schedule?

Anonymous
Not applicable
1,329 Views
4 Replies
Message 1 of 5

Create a copy of an existing schedule?

Anonymous
Not applicable

I'm trying to create a copy of an existing schedule (screenshot attached below), with a difference that "ГОСТ Р 52544-2006" needs to be changed to "ГОСТ 34028-2016". I know how to extract the text from the cells using the GetCellText() method, but is it possible to create a new schedule and populate it with data from an existing schedule using Revit API?schedule.PNG

 

0 Likes
1,330 Views
4 Replies
Replies (4)
Message 2 of 5

BenoitE&A
Collaborator
Collaborator

Hi,

To "copy" a schedule in Revit you use the method Duplicate. It duplicates your schedule with all its properties, etc... (nice method).

To modify the data in a schedule is another problem though (which is not a programmation one) : in schedules you have the results of parameters of elements in the Revit document. So if you want to change one element in the schedule you have to adress the parameter having the value "ГОСТ Р 52544-2006" and change it to "ГОСТ 34028-2016". You can do this manually or automatically (if you must do it many times) using Parameter.Set

Hope it helps

Benoit

 


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 3 of 5

Anonymous
Not applicable

Do you know how to get that "Parameter"?

0 Likes
Message 4 of 5

BenoitE&A
Collaborator
Collaborator

Well you have to find its name. This I can not do for you. Best way : install Revit LookUp and check the ParameterSet of your element.

Then you use the command : myelement.LookupParameter("NameoftheParameter");


Benoit FAVRE
CEO of etudes & automates
www.etudesetautomates.com/
0 Likes
Message 5 of 5

FrankHolidaytoiling
Advocate
Advocate

Is is possible to clone the schedule, rename it and place on a sheet? Then if possible once on the sheet or before set the filter of a room number, so i can show only ther FFE families i need in the schedule?