Some API little help

hello,

i used the "macro recorder" to do some change on PRT and ASM.

then i edited it, to clean a little.

I have multiple small question, the first one :

i have some problem with "light" changing.

when i run the macro, it affect only the first "directionnal" light.

not the 2nd or 3rd.

the names in tree-panel are :

Ambiente

Directionnelle1

Directionnelle2

Directionnelle3

i found the help for that feature, but i don't understand where to change the ID or something ?

here is my recorder code :

boolstatus = Part.SetLightSourcePropertyValuesVB("Directionnelle-1", 4, 1, 16777215, 1, 0.490896678428537, 0.498570754652695, 1.27882956886869, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, False)
boolstatus = Part.LockLightToModel(1, False)
Part.GraphicsRedraw
Part.ClearSelection2 True
boolstatus = Part.SetLightSourcePropertyValuesVB("Directionnelle-1", 4, 0.5, 16777215, 1, -0.497670594119298, 0.8928795953317, -1.03925329948442, 0, 0, 0, 0, 0, 0, 0, 0.5, 0.5, 0, False)
boolstatus = Part.LockLightToModel(2, False)
Part.GraphicsRedraw
Part.ClearSelection2 True
boolstatus = Part.SetLightSourcePropertyValuesVB("Directionnelle-1", 4, 0, 16777215, 1, -1.34487643770088, 0.497019553063385, -0.263127998680607, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, False)
boolstatus = Part.LockLightToModel(3, False)
Part.GraphicsRedraw

and here is the help page about light, i found : 2019 SOLIDWORKS API Help - LightSourcePropertyValues Property (IModelDoc2) 

if someone can give me some help ?

SolidworksApi/macros