Message 1 of 10

Not applicable
04-17-2018
08:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm very new to AutoCAD and Lisp, but pretty experienced in Python.
I have a text string in AutoCAD, and want to insert a '+' character two spaces from the end of the text.
Ex. 'ABCDEFG' > 'ABCDE+FG', 'AB23567890J' > 'AB2356789+OJ', etc.
This is simple enough to do in Python, VB, C++, etc, but can't figure out how to do it in Lisp. I found the code 'Insert Nth' on Lee Mac's site. That code appears to be limited to always inserting the character at the same position from the start, whereas mine is the same position from the end. Conceptually this seems simple, but have no clue how to do so in Lisp. Any help? Thanks.
Solved! Go to Solution.