Create new material and set appearance

Create new material and set appearance

Anonymous
Not applicable
2,622 Views
1 Reply
Message 1 of 2

Create new material and set appearance

Anonymous
Not applicable

Hello,

 

I've tried searching around for a similar question but haven't seen much. I was wondering if it is possible to create a new material and then set it's appearance using the Revit 2014 API.

 

As far as I can tell I can create a new material with Material.Create but then to create a new AppearanceAssetElement I need to have an Asset to pressumably set the values onto. But I can't see how to create a new Asset.

 

Essentially what I want to do is to be able to create new materials at run time from some external material definition source. The source isn't the problem, nor is translating the values from the source into the values that go onto an Asset, just creating the material with the rendering asset.

 

Thanks for any help.

2,623 Views
1 Reply
Reply (1)