Get hex from arduino ide?

Yes. Enable verbose output, to see where the hex file is created. What are you planning to do with the hex file?