i did a search within the file and found 2 instances of it, both gave it a value of 1... the program didnt work regardless i was just curious what that lock3 meant, thought it might have been a function in acad.
it seems to be a made up variable within the program. apparently whoever started on the file before me just never finished it
the ptby and ptay are just coordinates within the dwg file.
thanks for everyones replies