Message 1 of 4
Not applicable
08-03-2020
01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am trying to get an element's parameter by using the parameter id. However, it returns null!?
By debugging, I am sure that, in my code "bparam" gets created with the provided id. I am also sure that I am looking to the right element which is a Wall and the parameter I'm trying to get is "ANALYTICAL_ABSORPTANCE". So the element definitely has this parameter.
Why would the get_parameter method returns null?? What could be the cause?
int pId = -1005435;
BuiltInParameter bparam = (BuiltInParameter) pId;
Parameter p = e.get_Parameter(bparam);
p.SetValueString(value);
Solved! Go to Solution.