I could tell you that my code does not work, sadly. The difference between my code and example is mainly on the GetSelectedObject6. I have tried a lot of ways, but just could not get the correct method... Although I dont think the selection method is wrong, because sometimes we need to do so on SolidWorks.
Could somebody please give me some hints? Thank you in advance!