I seem to be trying the same thing over and over again. I am trying to understand vs.ForEachObject criteria in terms of python.
For example, if I take this script in vectorscript
Var Light: Handle;
Procedure setname(conventional:Handle);
Begin
SetRField(conventional,'Lighting Device','Symbol Name','Conventional');
End;
Begin
ForEachObject(setname,(((PON='Lighting Device') & ('Lighting Device'.'Device Type'='Light'))));
End;
Run(setname);
And I want to move it to Python... I only get as far as,
import vs;
def setname(h):
vs.SetRField(h,"Lighting Device","Symbol Name","Conventional");
vs.ForEachObject(setname, ????)
I can't figure out the syntax to check for the device type in a lighting device that is equal to a value of Light.
I error out every time.