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] As is the case with AutoLISP functions there's just too many Visual LISP functions that manage and manipulate lists to be able to cover in our short timeframe together in our LISP Fundamentals class. However, the following, we're going to look at two commonly used Visual LISP list management functions. The first one is identifying a specific value in a list its location in that list. The value we're going to look for is 52 in LIST9 that variable that we've created. Let's just confirm that variable is set. Our list is 50 through 55. The position of the value 52 is two. Even though it's the third number remember we're working with a zero-based index identity. Another useful Visual LISP function is to remove a value. In this case, we're going to remove 52 and any value in that list that equals 52 from LIST9. Our current list, 50 through 55 we're going to create let's go ahead and save it to a variable here. SETQ LIST10 and it's going to equal LIST9 with the exception of…

Contents