Can someone please tell me how I can get the element ID of a shared parameter.
I have managed to find all the curtain panels in my project and isolate one, I have then been able to found all the possible paramters for that curtain panel and I have then married it up to the one I want using:
Name = param.Definition.Name
But when I try and use ElementId = param.AsElementId();
It return a value of -1 but I want the 6 digit code that usually comes.