CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.122.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 7812:
Question
A
The AutoLISP functions (write-line) and (write-char) automatically add the full CR/LF sequence (carriage return, line feed) when trying to output just the LF (line-feed, chr 10).
There is a trick of forcing AutoCAD to output really just the line-feed. Use the (write-char) function and add 256 to the character code. So instead of (write-char 10 f), use (write-char 266 f). An example:
(setq f (open "C:/TEMP/TESTFILE.TXT" "w")) (write-char 266 f) (close f)writes a file testfile.txt containing just the LF character.
ACAD2011
23.2.2011
19293×
this tip shared by ARKANCE experts applies to: AutoCAD 2011 ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?