From the course: Learning AutoLISP & Visual LISP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Visual LISP methods

Visual LISP methods - AutoCAD Tutorial

From the course: Learning AutoLISP & Visual LISP

Start my 1-month free trial

Visual LISP methods

- [Instructor] So far, with working with strings, we have just looked at functions that are AutoLISP-specific. Let's take a look at just two of the Visual LISP functions that can be used to work with strings. Or one, the ability to change or convert one portion of a string to another portion. The Visual LISP function is named VL-STRING-TRANSLATE. We specify the portion that we want to change, the old portion. We specify the portion we want to change it to, the new portion, and then the actual text itself, the string that we're changing. In this case, we're going to get a variable drawing prefix. Let's see the current string for drawing prefix. It's the name of the drawing or at least the location of where it would be saved, and see with directories, or any other types of locations where you have the backslash, we're going to talk a little bit more about this. The backslash in AutoCAD LISP, whenever we're doing a LISP, the backslash is a special character. We already saw it used once…

Contents