- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have created a pdf tool to automate plotting pdf's (setting ctb, page size etc) this also includes naming the pdf where I used someone else's code to return the text string from two attributes to create the a variable "filename" (drawing no and revision tags). this works great so long as the drawing number doesn't have control characters.
The drawingno tags input is RW0000-00/C.C02/0001
I want it to take all the letters and numbers removing control characters so it becomes RW000000C020001
I have managed to find this code (while (vl-string-search "/" filename) (setq filename (vl-string-subst "" "/" filename))) Which has removed the "/" how do I can I add the "-" and "." to this code.
Thanks in advance
SB
Solved! Go to Solution.