GetParameter of parts element id

I haven’t tried it myself by try referring to Selecting Elements by their ID

Although personally, I would recommend working with the element as it makes it easier to extract information when needed. However, I don’t know the script you’re working so it could be a necessity.