Code: Select all
func branchpoint() {local branch localobj sr
branch=0
sr = new SectionRef()
while (sr.has_parent){
if (sr.nchild==2) {
branch=branch+1
}
access sr.parent
sr = new SectionRef()
}
return branch
}
Example: To determine the branch order of section [130] you can access the function in this way:
Code: Select all
access dend[130]
print branchpoint()