Soon, we will launch a new and updated customer portal, which is an important step toward providing our customers with one place to learn, interact, and get help.
Learn more.

How Do I Save Text Files Without a .TXT Extension?

Question: How can I prevent my text editor from adding .TXT extensions to text files that I save?
 
 
Akash Arora
07/26/2011
Frequently Asked Questions

Question: How can I prevent my text editor from adding .TXT extensions to text files that I save?

Zemax uses ASCII and UNICODE text files with unique extensions for various purposes throughout the program. For example, capabilities such as the NSC polygon object (.POB), the user-defined aperture (.UDA), and the ZPL macro (.ZPL) all require files with specific extensions. If the file is saved without the correct extension, Zemax will not correctly interpret it as a file of the desired type.

It is easiest to create these types of text files in standard Windows programs such as Microsoft Notepad. These programs usually append a .TXT to a file by default unless specific naming procedures are used. In Notepad, the save dialog contains two options for the file type: “Text Documents (*.txt)” and “All Files”. If the type is text document, you must specify the file name and extension in quotes. For example, to save a macro named FIFTHORD with a .ZPL extension, you would type the name as seen below.

Save Dialog - Text Files


If the file type is set to all files, the quotes aren’t needed, but the extension must still be specified, as seen below.

Save Dialog - All Files

Following these naming conventions and placing the files in the correct folder will ensure that Zemax recognizes your uniquely named files.