Hope this could help you.
In Skill objects are referred to by their Ids',in order to get the instance you have to get the cell view id first then get the instance id as follows;
Sch_Id = dbOpenCellViewByType( "LibName" "ViewName" "schematic" "schematic" "a" )
inst_id = dbFindAnyInstByName( Sch_Id "M10" )
then you can get the properties of the instance by maping names to their values;