//@code create cable access cable nseg = 5 objref stim[3] for i=0,2 stim[i] = new IClamp(i/2) objref mt, pp mt = new MechanismType(1) mt.select("IClamp") for (pp = mt.pp_begin(); object_id(pp) != 0; pp = mt.pp_next()) { x = pp.get_loc() printf("%s located at %s(%g)\n", pp, secname(), x) pop_section() }