I am using PS 13.1.1 and tried to call <path>.getAttrNo("string"), but got an "Unknown Identifier getAttrNo" error. I see the method referenced on the single proc Methods and Attributes window, so I tried calling the method using the german name: "holeAttrNr." This worked as expected.
I cannot reproduce this. Please upload a small example model.