Is it possible to show numbering of xyz file while measuring

is there a possibility to change the numbering system in such a way that in stead of “#1, #2…” it showes the numbering of atom listed in the xyz file (idealy starting from 0)?

Environment Information

Avogadro version: 1.97.0
Operating system and version: macos 13.0

Expected Behavior

taking the xyz file attached as an example, Is it somehow possible if one opens Avogadro and presses on the Pt atom it showes instead of “#1” the number 20(as it is the 20th atom listed in the xyz file, starting from 0)

the .xyz file
62

C -3.12815368278903 -0.99207399445477 -0.65442172779904
C -3.28886581795739 -2.39074445411453 -0.56704393982003
C -4.09465911040689 -0.14856338414545 -0.18030450073036
C -4.41428339541823 -2.92840120559645 -0.00649750611833
C -5.42265197498097 -2.07745702054634 0.48841834364824
C -5.26261403901545 -0.68148931386689 0.40077739911656
N -6.22750120317246 0.15878493853355 0.87327994298535
N -6.54510067619455 -2.61336089476041 1.04747586126202
C -7.44171317345340 -1.79641266562095 1.50272430139140
C -7.27849996670980 -0.37204076184275 1.41334502482067
H -2.51149110423181 -3.04160470495728 -0.94829881236061
H -4.55691783493140 -3.99944404056577 0.06992442372879
H -2.22882231157048 -0.58633643517034 -1.10150839889425
H -3.98983474758384 0.92795970476495 -0.23932881878120
S -8.44057361251855 0.72644577452869 2.14908371393243
S -8.81016491173592 -2.50487624854321 2.35313359396986
C -10.12369122567859 -1.41464795707834 1.90519675336930
C -9.97140835506274 -0.08760681589522 1.82181528518919
S -11.26926104028815 0.98724498880693 1.35602169102001
S -11.63742540858767 -2.21589350299483 1.55801697967539
Pt -13.04765647121866 -0.44441988074645 1.13202670016202
S -14.48307226912806 1.32198812734902 0.67945982265149
S -14.82844948871498 -1.88913975196420 0.85487866646160
C -16.01180729786173 0.58036333519052 0.30813693206092
C -16.11200232282226 -0.93553225015524 0.34148675972614
N -17.09294768219748 1.17821130594532 0.01465229692924
N -17.27661146352857 -1.38873354561774 -0.04165493145104
C -17.83799271958164 -2.74478534650874 -0.00948657556085
H -17.93897027876929 -0.62520155162672 -0.18616393068683
C -16.88083534985800 -3.79272020239475 -0.54466505126825
C -16.55615931339031 -4.93273442524606 0.17704778414999
C -16.33291886844711 -3.62019831445950 -1.81347275493917
C -15.45203597951217 -4.55207882695627 -2.33540927848142
C -15.67699336962341 -5.87192349266181 -0.34601806645946
C -15.11718072400463 -5.68190349192653 -1.59912764300852
H -16.96999728678978 -5.09065695038048 1.16488827182588
H -15.42588832382728 -6.75167606226411 0.23484494440474
H -14.42425432606418 -6.41048623606747 -2.00308177152976
H -16.58536126241238 -2.73681869050593 -2.39088552706678
H -15.02367165011033 -4.39807363161169 -3.31889036050831
C -18.44090793775905 -3.01225341033048 1.36310346008808
H -18.66455104585360 -2.68937960536744 -0.72254708996034
H -17.67306566624152 -3.05228436813825 2.13769720718719
H -18.98323613230590 -3.95784597525306 1.35810099065331
H -19.14374969523818 -2.21732904708161 1.61146681414507
C -17.15996722055637 2.62498719374833 -0.02690951953445
C -18.18305333779673 3.07879793356250 -1.04724202284355
C -17.91656024914561 4.19424050932360 -1.83252808776685
C -19.40953908451546 2.43629570220125 -1.18742968912864
C -20.34907305782899 2.90246560012766 -2.09508994952014
C -20.07511588931188 4.01883838473347 -2.87497630638973
C -18.85533411125213 4.66514591149293 -2.74040284088951
H -16.96081429324946 4.69889633494465 -1.73441238461156
H -20.80858990568787 4.37966337049993 -3.58655285746749
H -18.62972189300242 5.53422526718372 -3.34758478742522
H -19.62681803708768 1.56274249618686 -0.58373891610158
H -21.29976703082182 2.39107661551434 -2.19448205626205
C -17.51164481821767 3.15553853617736 1.36635121118085
H -16.18915687315834 3.04030558364301 -0.31998988214350
H -18.47996541362963 2.76489686938792 1.68494374616370
H -17.56520591386646 4.24495493903579 1.34855896491584
H -16.75525235332761 2.85519903453104 2.09304809869518

It will use the atom order in the XYZ file. So if that’s the XYZ file, it will render:

Note that, yes, atom numbering starts at 1, so Pt is #21.

Dear ghutchis

Thank you for picture you attached here and the fast answer, since I maybe have to treat different molecules, I would like to ask how is it possible to produce a picture like the one you attached here, myself?

Thanks for the picture once more

Best jakobc

I simply opened your XYZ file and turned on labels with Avogadro 1.97. The label options are set to “Index.” (The wording may have changed a bit since 1.97 release, since I’m using a 1.98 pre-release.)

Screenshot 2023-06-27 at 8.36.55 AM

The “Index” atom label will always use the atom ordering in the file.

Thank you so much for the fast help

Best Jakobc