Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello to all,
I would like to initialize some custom parameters on HVAC zones with default values given in an Excel file. All parameters have already been defined into the project. Some of the are String, but some other are defined as AREA_TYPE as shown below:
So I first get my default value from the Excel file -> myDefaultValue
Then I get my custom parameter to set the default value:
foreach (Element e in zonesCollector)
{
Parameter myCustomParameter = e.LookupParameter(myCustomParameterName);
double d = double.Parse(myDefaultValue);
myCustomParameter .Set(d);
}
The value is changed, but whith an understanging value...
What I am doing wrong?
Thank you in advance
Best regards
Bruno
Solved! Go to Solution.