var osel = Selection ;


for (var p = 0; p<osel.count; p++) 
	{
		var a = new ActiveXObject("XSI.Collection") ;
		a.additems (osel(p).kinematics.constraints) ;

		for (i=0 ; i<a.count ; i++)
			{
			inspectObj (a(i) , null, null, siLock) 
// Lock them so that if there are multiple constraints then they don't overwrite one anothers ppgs.
			}
	}