Regarding Parameter retrival and updating parameter value

Regarding Parameter retrival and updating parameter value

Anonymous
Not applicable
428 Views
1 Reply
Message 1 of 2

Regarding Parameter retrival and updating parameter value

Anonymous
Not applicable

Hi,

 

How I need to retrieve Parameter "Keyword" from Material in Revit.?

 

While trying to update a value in a Parameter "LightFixtureRadius" am getting an error message as mentioned in the attachment.

Kindly help me to accomplish this.

 

Thanks and Regards,

 

Vinoth Kumar R

 

 

0 Likes
429 Views
1 Reply
Reply (1)
Message 2 of 2

matthew_taylor
Advisor
Advisor

Hi @Anonymous,

You should investigate your material in RevitLookup. They're not an 'all-in-one' element, they link to various assets.

The part that shows 'Structural aspect' - that element has a parameter that has a 'Keywords' parameter.

It looks like the Material class has properties for StructuralAssetId, ThermalAssetId, AppearanceAssetId etc.

Get the elementIds, convert to elements, and investigate whether they have the information you want.

 

The Autodesk.Revit.Utility namespace may help you also: http://www.revitapidocs.com/2017/56410233-9c8f-db1d-0940-954dd9d7682c.htm

 

Your second item doesn't appear to be an API question. You're best asking in one of the other Revit forums.

 

Cheers,

 

-Matt


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes