Loop On All Selected Object


Loop on all Selected Objects of Type Insert logic here to use during LOOP.


Object: an object variable of type (e.g. obj_wc for Work Center)


Can be called at any time, but will be skipped if no objects are selected and/or no objects of type are selected. A useful command for looping through objects to set a Custom Property, or a property such as collect number.


 LOOPOBJECTS all selected WORK CENTERS with obj_wc
 Attach Custom Property "Custom Property 1" , obj_wc
 SET obj_wc.CustomProperty["Custom Property 1"] = 1

This example will loop on all selected Work Centers, attach a Custom Property called “Custom Property 1” and set this Custom Property equal to 1.

See Also