Read properties/dimensions etc. from part

Hi everyone.

Here is what I want to do.

I want to read out the dimensions and/or properties from a part file which is build in an assembly. But I do not want to open it seperatly. I know how to get the filename. So traversing through the assembly is no problem. But I want to achive that an user can pick one of the parts out of a list and change some values in the choosen part.

How can I read the values and later on write the changed values back?

SolidworksApi macros