Autolabel_help

hello, can someone help me?
I think it’s simple but I’m tired and I can not.
I would like to tag each object,
but,
closedpoly is impossible,
why?
lol

prova count.3dm (379.6 KB)
autolabelall.py (2.7 KB)
p!
tnxxxx

@pie.ventura - I’ve moved your question to the Scripting category.

– Dale

ok tnx soory

@pie.ventura, if i understand that right you need to change:

if rs.IsSurface(obj):

to this to make it work for open and closed polysurfaces:

if rs.IsSurface(obj) or rs.IsPolysurface(obj):

Ps: Note there is a point object in the object labeled openSIMPLEpolysurf_ok
_
c.