You can use the Inventor language for drawing simple cylinder. I've attached some sample IV files. Refer to the Inventor Mentor for the programming manual for the Inventor language. I've found that searching the web for Inventor IV files is a great way to find examples.
Updated November 24, 2015