How to change a managed image?

Are you trying to change the file path for an existing ImageType or just change the assigned ImageType to a different, already loaded one? The file path for the referenced image is read-only. Not sure if there’s a way to change it through the API, but I haven’t come across one yet. Changing the parameter from one ImageType to another can be done with the standard Element.SetParameterByName node.

Ah, like a good detective story, there are twists and turns at every roadblock.

To Nick, yes, I’m interested in assigning the already loaded images. I believe the graph from @Sovitek goes a long way to creating images, but I have not been able to test that just yet, now waiting on PM decisions.

However, when you collect the images from elements, at least one has to be assigned to an element, otherwise you get none, and then you can only (so far for me) only gain access to all images through that magical node from springs, “Collect AllTypesOf” which opens up all the loaded images, then you can apply them to your mechanical or whatever elements.

Part of this little journey was inspired by the Aussie Bim guru, Images Processing in Dynamo (Intelligent Facades 1/3) - YouTube

However, I was also interested in applying images to rooms such to produce a consistent room schedule, i.e. you can control a room schedule by applying colors to say, a “color” field to control the colors in a floorplan.

If you are using room names as a legend every time you introduce a new room name, you get a new color. With the ability to assign a colour to the “image” field in rooms, you can control the color output of a floorplan. There are pluses and minuses to this, but this is my result, if you create a color legend as such;

And then you create a room schedule with say room name, room number, “image” “color” where the image is just a solid block of color i.e. blue.jpg


Now on your sheet you can place your legend (actually a schedule) displaying the colors you have chosen or from a list to import color “swatches” through dynamo to control floor plan layouts.

Of course, you can achieve the same result by setting up “Departments” or even “Colors”.

The pluses of using a schedule, are, this way you get a multi-field legend.

The bottom legends are color field legends in the views.

The top legends are schedules placed on the sheet.

310_EQUIP_SCHEDULES.dyn (26.4 KB)

You can get all ImageTypes from the ElementTypes and All Elements of Type nodes. No need for custom packages. Then you can assign the specific ImageType to each element as you please. The color scheme and scheduling should be no issue. You can handle it exactly as you’ve mentioned.

1 Like

Excellent Nick, a true alchemist for the seasons, here is the 4711 version, needed for an after letour experience, that’s what I was looking for in the beginning, the yellow guernsey, signpost > Paris.

4711_EQUIP_SCHEDULES.dyn (29.7 KB)