Hey everyone,
I have the following routine to assign pp to subcontacts:
for sbc in it.block.subcontact.list():
pos_sc=sbc.pos()
gp_n=it.block.gridpoint.near(pos_sc)
gp_pp=gp_n.pp()
sbc.set_pp(gp_pp)
For some reason (after running a few other routines), this routine takes more than 5 hours to complete. However, using zones instead of gridpoints, i.e:
gp_n=it.block.zone.near(pos_sc)
makes this function change from 5 hours to less than a minute… Is there a logical reason for this?
Regards!