Validation needed. Parameters won't overwrite when added to key schedule.

Validation needed. Parameters won't overwrite when added to key schedule.

ska137
Contributor Contributor
877 Views
9 Replies
Message 1 of 10

Validation needed. Parameters won't overwrite when added to key schedule.

ska137
Contributor
Contributor

I inherited a project where room information are written via key schedule. I wanted to delete the value of one of the parameters as we didn't want to show it to the consultant. Via RevitLookUp, I knew I won't be able to write on it but I tried anyway via Dynamo and Pyrevit. I was hoping maybe I can get to table data and write it from there via view schedule but no luck. The only way that I see that this can be edited is to edit one by one the schedule or is there a work around? Is it safe to say that I should avoid the use of key parameter moving forward since I can use the dictionary anyway if  I want to edit the values? Many thanks.

edit: Apologies for the confusion I thought I'll make myself clearer if I explained first what I tried to do. So to make my question simpler, on this example:

Room Type - this is the key name
Base Finish
Wall Finish
Floor Finish
How can I change the value of these finishes without typing it one by one on schedule? This is just a sample parameters. I have a lot. I got hundreds of rooms.


0 Likes
Accepted solutions (1)
878 Views
9 Replies
Replies (9)
Message 2 of 10

Mike.FORM
Advisor
Advisor

If you don't want a value to shown to a consultant than just remove the field from the schedule.

If you want the value to be blank then just edit the key schedule to make that value be blank for all your options.

0 Likes
Message 3 of 10

RDAOU
Mentor
Mentor

@ska137 

 

I read the post twice and still slightly confused what exactly is happening.

 

The title says, parameters not overwritten when added to key schedule. In the description you talk about rvt LookUP, dynamo and pyrevit and trying to delete parameter values…


my question to you:

  • How are you transmitting the model to the consultant? 
  • Are you deleting or overwriting? Certain parameters cannot be restored to their blank state. You need to overwrite with a value.
  • what do you mean by values not being overwritten? When you change values in key schedule it is not being reflected in the room parameters/schedule? Did you try to cut / paste aligned same place to see if you can force refresh the new values?
  • after changing/faking those values did u consider a copy for yourself ?!

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 4 of 10

ska137
Contributor
Contributor

thanks for the reply, my answers here:

  • How are you transmitting the model to the consultant? 
    - i will send them the rvt model
  • Are you deleting or overwriting? Certain parameters cannot be restored to their blank state. You need to overwrite with a value.
     - technically remove/delete the parameter values, overwrite with dash "-" if that will answer your question
  • what do you mean by values not being overwritten? When you change values in key schedule it is not being reflected in the room parameters/schedule? Did you try to cut / paste aligned same place to see if you can force refresh the new values?
     - it is being reflected to everything, the primary question was, how to write/overwrite the values of a parameter that is not a key name, without typing one by one on schedule. i have 900+ rooms. this is a hospital.
    for example:
    Room Type - this is the key name
    Base Finish
    Wall Finish
    Floor Finish
    how do you suggest to overwrite the value of those 3 finishes?

  • after changing/faking those values did u consider a copy for yourself ?!
     - i don't know what you mean by this.
0 Likes
Message 5 of 10

ska137
Contributor
Contributor

it's not the schedule actually, it is showing on the tags, so the work around i did was to just create a new type of the tag without the label for that parameter.
but still, i wanted to find out if there is a way to change/overwrite a parameter value e.g. wall finishes to a 900+ rooms, without typing it one by one on schedule itself

0 Likes
Message 6 of 10

ToanDN
Consultant
Consultant

@ska137 wrote:

it's not the schedule actually, it is showing on the tags, so the work around i did was to just create a new type of the tag without the label for that parameter.
but still, i wanted to find out if there is a way to change/overwrite a parameter value e.g. wall finishes to a 900+ rooms, without typing it one by one on schedule itself


Using a key schedule is exactly how you avoid changing/overwriting a parameter value 900 times. 

- if you want to replace the value of a parameter, for example Wall Finish with - altogether than simple open the Key schedule and replace the value of Room Finish with a - and it will update for 900 rooms automatically

- if you want to keep the information in the model, but not showing it on the tags then do what you did, replace the label with a - text

 

To answer your question earlier on not using a key schedule moving forward:   No, that is a bad idea.  Key schedules are great to populate information consistently and systematically, especially for big projects.

0 Likes
Message 7 of 10

ska137
Contributor
Contributor

well the client doesn't want to show the consultant the info so there's that 🤷‍♂️

- if you want to replace the value of the parameter with - altogether than simple open the Key schedule and do it and it will update for 900 rooms

answer: 900 unique types on the key schedule. so if i understood you correctly the solution is to type the new value in the schedule. and if really is the only answer then i guess on big projects, I will avoid to use key schedules just so not to turn the parameters into read-only mode. it'll always be easier to manipulate the data via dynamo and few lines of code.
Thanks for your answer.

0 Likes
Message 8 of 10

RDAOU
Mentor
Mentor

@ska137 

 

What I meant in the last question is that after you overwrite the values of the parameter/schedule field to "-" they would be gone from the projects for both you and the consultant...You would need a back up of those value you overwritten unless you are making those changes only in the transmitted model or published model (if using ACC)

 

What is the issue you are having in Dynamo? It runs with errors? it runs but nothing happens in the model (happens a lot in RVT 2025)? One reason you wont be able to overwrite those parameters in the room is having the parameter you are trying to overwrite as a field in the key schedule. To overwrite the parameter the dyno graph should

(edited)

  1. Remove the field of the parameter to modify from the Key Schedule. (When removed, data will become Blank)
  2. Set the value of the parameter directly to the Room elements.  
  3. Readd field to Key Schedule (no need to re-add it if you do not want to share with consultant anyways)

Key Schedule take 2.gif

 

Key Schedule Values_Edit_0_2024-12-17.png

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 9 of 10

RDAOU
Mentor
Mentor
Accepted solution

@ska137 

 

Another approach which seems to work with no issues with respect to field parameters being Read Only, is treating the data rows in a key schedule as elements (opposed to fields associated with parameters in previous reply). It overwrites the fields in Key Schedule and subsequently populates in Room Schedule and Room Tags

 

I was actually surprised when I saw it worked. Tested on 3 live projects and it seems to run with no issues. Try it

 

Key Schedule Set Values.gif

 

Key Schedule Values_Edit_1_2024-12-17.png

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Message 10 of 10

ska137
Contributor
Contributor

Holy st man, it worked! I'm in the middle of writing a code with this logic:

  • Get the room id and key name and all the parameters, put in a dictionary
  • with the room id, remove the value of key name so it won't be included on key schedule
  • create a new key schedule with the new parameter value
  • write back the key name with the new the parameter values

 

Capture1.png

 


thanks for this, now I need to investigate the inside of that springs node.

also I have a back up of the file, this is just a copy. thanks again!