Dynamo to swap out Assets in a Material

We are using our Revit model to test exterior finish schemes and while Design Options are feasible I think they are also a bit of nightmare since it’s the entire exterior that’s changing, including Walls, Roofs, Fascias, Railings, Model In-Place elements…all really annoying stuff to make duplicate types of just to change the material. We’d rather not save a copy of the model per scheme either because our drawings & design will still be developing during all of this and nobody wants to redo that work once we decide on a scheme.

So I’m hoping there’s a Dynamo solution to this i’m just not sure how if its possible and havent found anything on it

The idea would be to make Generic Material types pertaining to each section of the exterior, then use dynamo swap out specific Material Assets per material. For example, we’d name one material ‘Main House Siding Material’ then our script would swap in either ‘4" Wood Panels’ or ‘6" Shiplap’ Assets.

Any help would be greatly appreciated

thanks!

Swapping assets is certainly doable, but you may want to consider just having materials for each asset and setting parameter values accordingly (easier to keep a consistent use for stuff you don’t want to change), and will ensure that you have all data collected added and resolved in a cleaner way (whoops we failed to set the parameter values for the material at the same time and now it looks great but it’s from the wrong company). It’s also easier to manage the library of materials than the library of assets (IMO).

To set assets, look into the GeniusLoci package.

3 Likes

This is awesome! Thank you!

Do you know if it’s possible to select materials from a list rather than by Select Model Element? it would be great if I could swap multiple materials in one script (List In, List Out)

Use the Categories node to collect materials.

2 Likes

After poking around for a bit, I’m breaking down to ask the question. And I’ll be honest, I haven’t dug to deep, but I’m not sure what I’m looking to do is 100% possible.
When working on BIM 360 projects and dealing with materials, from time to time, some of our offices aren’t able to load custom materials that are located on a separate network. Our individual office all have access to the data. We’ve created a way by which we can path to them. And the method is working with our linked cad files. However material asset images appear to be a different animal.
Using the packages mentioned above I can get all the assets. However getting the rendered image path is proving to be difficult. All I’m looking to do is tell Revit to get all the material assets in the model, find the File Path for the png or jpg that’s used in the appearance asset and reload it from the same path. Anyone else try to do this?

Also trying to figure this one out, looking into Revit SDK now

The only option I’ve seen or gotten from Autodesk was to push all the materials used to everyone’s local C drive in the default location so they are available.
I’ve heard that as a similar solution when trying to deploy packages.

One team in our office has successfully mapped the location using Creative Cloud. Some cloud based services like Desktop Connector includes the user name in the file path because it points to documents on the C Drive. Others, like creative cloud I believe ensured that cloud locations are identical regardless of user, so the common paths can actually be used to link textures in Revit and you get cloud syncing. https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables

I have yet to successfully map across two different partnering offices, but I feel like I am finally close to a solution with this exact same BIM 360 texture mapping issue.