Commands not working

Lately I've been having trouble with commands not working. Commands such as pattern, hatch and print are not working within my program. Anyone have any ideas