Message 1 of 4
Material.GetParameterAsString() returns null

Not applicable
04-04-2016
12:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am porting a material takeoff application from Revit 2014 to 2016. I have managed to catch most of the API changes. Retreiving a parameter valuse from Material is one that is not working like it does in Revit 2014.
The UsageId parameter is a string storage type we used in Revit 2014. Material.GetParamaterAsString("UsageId", true) will return the value since it is a string with Revit 2014.
Using the same method with the same model with Revit 2016 returns an empty string. I am wondering if I have to use a different method to retreive a material's parameter value?
Any ideas why this is different in Revit 2016.
Larry