First open the cell view in append mode :
cv=dbOpenCellViewByType("top" "test" "layout" nil "a") ;;comments : Open new cellview and store its database.
get master instance db
cv1=dbOpenCellViewByType("libname" "cellname" "layout") ;; Here get the instance id,is nothing but master id. from which lib,which cell you want to instantiate.
The above code is used to get db of the master instance
The below line describes instantiating the master in the opened cell view :
schinst=dbCreateInst(cv cv1 nil list(0 0) "R0" 1) ;;list is nothing but xy coordinates,by chnages instantiates at different places.
Follow up those three commands,and instantiate,pls let me know if it does'nt works.
Thanks and regards