Set Material to By Category Programmatically

Set Material to By Category Programmatically

jnoordzij
Advocate Advocate
867 Views
2 Replies
Message 1 of 3

Set Material to By Category Programmatically

jnoordzij
Advocate
Advocate

Hi

 

I am looking for a way to set the material parameter of an object within a family to <By Category> programmatically. 

 

I found this page, giving a clear solution, but I cant get it to work myself. 

https://www.revitforum.org/third-party-add-ins-api-r-d/1326-set-material-bycategory-via-api.html

 

Can anyone verify if the solution mentioned there still works anno 2019?

 

Other solutions or suggestions are also welcome

 

Thanks 

0 Likes
Accepted solutions (1)
868 Views
2 Replies
Replies (2)
Message 2 of 3

jnoordzij
Advocate
Advocate
Accepted solution

Still works. Got it to work myself 🙂

0 Likes
Message 3 of 3

adcdao
Advocate
Advocate

The link is no longer valid.

 

Thanks!

0 Likes