Hi @VanQuyet.Doan ,
I have no clue why Revit is throwing an error.
1)Can you set the parameter value to this particular parameter via UI?
2)If Yes, then Could you Please try using FamilySymbol.Parameters instead of LookUpParameter?
Now Use foreach loop to access each parameter. Make sure the "H_s" parameter is present.
3)If the "H_s" parameter is present, Make sure the "H_s" parameter is not a read-only parameter and then try to set the value via API.
Sometimes the parameter can be read-only and user-modifiable. (i.e)parameter value can be changed via UI but not Via API.
For Testing purposes, Could you please try to set the value to the parameter directly instead of using MmToFeet(i.e)if the storage type is double, then pass the value as 30.00, etc.,
If nothing helps, could you please share the non-confidential file, non-confidential sample code you used, and step-by-step approach to reproduce the issue?
Please Note: Do not send us any information that you consider to be a trade secret to your company.
Naveen Kumar T
Developer Technical Services
Autodesk Developer Network