Team,
I'm working with our internal developer on some custom Revit applications and we are in need of some help. We are currently developing a color scheme app and when our designers insert the color scheme into a project some materials absorb other materials appearances because they share the same asset name. We are trying to write a section of code that allows us to rename each materials assest name with the assigned jpg name (for each material in the color scheme) before it's pushed into the project material browser. That way we don't need to physically go in and rename all the materials in all of the color schemes.
Example:
CURRENT SITUATION
- Material 1 Name = Flooring - Tan
- Material Asset Name = Default
- Material JPG Assigned = Interface-Monochrome -Castor.JPG
- Material 2 Name =Flooring Grey
- Material Asset Name = Default
- Material JPG Assigned = Interface-Monochrome -Flannel 101838.jpg
After code is implemented then it will look like this...
IDEAL SITUATION:
- Material 1 Name = Flooring - Tan
- Material Asset Name = Interface-Monochrome -Castor.JPG
- Material JPG Assigned = Interface-Monochrome -Castor.JPG
- Material 2 Name =Flooring Brown
- Material Asset Name = Interface-Monochrome -Flannel 101838.jpg
- Material JPG Assigned = Interface-Monochrome -Flannel 101838.jpg
Does that make sense?
I'm working with our internal developer on some custom Revit applications and we are in need of some help. We are currently developing a color scheme app and when our designers insert the color scheme into a project some materials absorb other materials appearances because they share the same asset name. We are trying to write a section of code that allows us to rename each materials assest name with the assigned jpg name (for each material in the color scheme) before it's pushed into the project material browser. That way we don't need to physically go in and rename all the materials in all of the color schemes.
Example:
CURRENT SITUATION
- Material 1 Name = Flooring - Tan
- Material Asset Name = Default
- Material JPG Assigned = Interface-Monochrome -Castor.JPG
- Material 2 Name =Flooring Grey
- Material Asset Name = Default
- Material JPG Assigned = Interface-Monochrome -Flannel 101838.jpg
After code is implemented then it will look like this...
IDEAL SITUATION:
- Material 1 Name = Flooring - Tan
- Material Asset Name = Interface-Monochrome -Castor.JPG
- Material JPG Assigned = Interface-Monochrome -Castor.JPG
- Material 2 Name =Flooring Brown
- Material Asset Name = Interface-Monochrome -Flannel 101838.jpg
- Material JPG Assigned = Interface-Monochrome -Flannel 101838.jpg
Does that make sense?
Comment