I'm using Revit 2013. I want to get the material from a family document (e.g.
Material m = m_familyDocument.Settings.Materials.get_Item(name)
may it be that - when compiling - you have linked to the 2012 RevitAPI.dll while running the addin in Revit 2013 ?
I've noticed in another posting that you code for both 12 and 13, so maybe you use a 2012 method that is already deprecated in 2013 ?
You are right. So is that means we must use different version of RevitAPI.dll if we want to run addin in different Revit version?
May I know what is the correct function used to get the material from family document if I only have the name? Thanks.
here is more information about running code both with 2012 and 2013:
If you compile your code, you can see it in the compiler warnings which methods may disappear in following Revit API versions.
To answer the other question, getting materials by name from a family document: another one may give you more infos, I've no time...
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register