Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I don't know what i'm missing here.. I'm trying to set the value of a parameter after i retrieve the element from a set of ids. However, the element is returning null and i'm a receiving an error "Object reference not set to an instance of an object"
Element elem = activeDoc.GetElement("224716") as Element;
Parameter RW_CV1 = elem.LookupParameter("RW_CV-1");
RW_CV1.Set("New");
RW_CV1.SetValueString("New");
please note that 224716 is a valid id of the element. I can double check that using select by id.
Any help is appreciated.
Mohamed.
Solved! Go to Solution.
Developer Advocacy and Support +