Colors from Area Plan Legend

A couple of weeks ago i came across this workflow for extracting usable colors from a Color Fill Legend.

Having worked with this for a bit, I’m finding that the View.ExportAsImage node works fine when the source view is a Floor Plan but fails if the source image is an Area Plan. Which is unfortunate in my case because it is Area Plan colors I am looking to “harvest.” (BTW the sample image is showing a successful run using a Room Plan Legend).

Does anyone know what’s up with this? I understand that Area Plans are a different animal but I don’t see how that hurts exporting to an image. Alternatively, does anyone have a workaround for getting an Area Plan Legend to show on a floor plan sheet …

Thanks, wwm

This sounds like something that @Konrad_K_Sobon could have a look at in his crusades against bugs on the Revit side of Dynamo: https://github.com/DynamoDS/DynamoRevit/pull/1696

AreaPlans are now handled. That was fixed here: https://github.com/DynamoDS/DynamoRevit/pull/1679 It’s because Area Plan previously was considered an UnknownElement while this will make it a View.

This will be available in the next release of Dynamo.

4 Likes

@Konrad_K_Sobon you have me wanting all the software version more than any autodesk marketing effort I’ve seen in the past 10 years.

Seriously though thanks for the efforts. Much appreciated.

1 Like

Any progress on making the colors for the fills accessible programmatically? It’s no fun to change their RGBs manually, and AutoHotKey is my last resort to paste the values into the dialog.

None of that stuff is available via API. Please engage Autodesk Revit Development team about this first.

Please start a new post with the same screenshot, wired watch nodes, and expanded warnings. Hard to help otherwise.