Genius Loci // Set ColorFill Scheme Properties

Hi all – I’m having trouble with this new node I’ve found to get and set Color Fill definitions between different schemes. The script runs without errors, but it doesn’t perform what I viewed here (about halfway down the page): Design Options in Area Plan — Quadmeta

Ideally, the ‘TEST FROM’ in my example, would copy the color scheme with all of its (in this case) numbers or variables, but in my latest attempt, it’s only bringing over the color fill for one of them (not all). What’s the best way to fix here?

‘TEST FROM’ scheme set with four colors and numbers from ‘Areas (Gross Building)’:

After running the script, the name of the scheme is copied, but only one of the fills comes along to ‘Areas (Rentable)’:

How can I get all of the variables from the original definition to copy over? TIA!

Hi @ashley.hastingsWB,

Obviously, there are 4 areas in the Gross Building plan and a single area in the Rentable plan.
The result therefore seems logical to me and has nothing to do with Dynamo.
You can check in your area plans if this is the case.

Hi @Alban_de_Chasteigner, thank you for your response – really appreciate it. When you say it has nothing to do with Dynamo, how do you mean? Am I to manually match the number of areas between Gross and Rentable first before running the script?

I’ve also just tried it by having both Gross and Rentable have the same number of variables, and the only thing that copies over is the naming of the color scheme (both now say ‘TEST FROM’, for example), but the colors don’t match.

What am I missing?

Hi,

You’re not showing your graph with previews enabled under the nodes so I don’t know.
Make sure you have the updated Genius Loci package.

It is working for me.


Copy values.dyn (19.7 KB)

Hi Alban, this sample works only if there is already a ColorFill scheme assigned to the Area Plan.

If it is None I don’t think it works, even if there is a ColorFill available:

image

The node View Set ColorFill Scheme fails for me…

Okay, I have managed to get to Alban’s example to basically work, and still my script is useless.

The values are copied only for the number of areas existing in the target area plan (see below screen cap)

This means, to make a perfect copy color fill scheme in Dynamo, you actually need to:

  1. Create the new Area Scheme (otherwise you already agave the color scheme available to use). Cannot do it in Dynamo (there is no ColorFill scheme available if you duplicate an existing Color Scheme). Only Revit UI seems able to create a usable Color Scheme.
  2. Create the new Are Plan (created with the new Area Scheme).
  3. Assign an Area Scheme to the Area Plan (cannot be “None”). This can be done in Dynamo but you need to find the exact ColorFill Scheme (normally is “Schema 1” but you need the Revit element, not just the name).
  4. Create ALL AREAS that exist in the source Area Plan so that every value of the parameter used in the ColorFill Scheme also exists in the Target Area Plan.
  5. Run you script.

Then, the two ColorFill will match.

This is useless already, because transferring Color Fill Schemes across project, renaming the Area Plan, and transferring back actually gives you all the color palette without need to create exactly all the areas you need to use, so, actually the non-dynamo workaround works better, and I wasted 2 days of work.

allright yeah have to admit i dont have go so deep into it..

It’s quite alright, you are obviously not responsible for Revit’s crazy API…

Thanks for helping out in the community.