Questions from beginner to advanced. Tell us about good sources of free lisp and post your own routines for testing.Code posting guidelines
The "AutoLISP, VBA, the CUI & Customisation" forum has become a very lively part of the AutoCAD Forums and probably needs a structural review in order to acommodate growth in the future. I'm...
Code posting guidelines
When you are posting AutoLISP or VBA code in these forums, there are some simple guidellines you should observe in order to make life easier for you and for others.
I am trying to learn a bit of Macro and Lisp, but I am stuck at the beginning.
Example: I want to make a shortcut for select previous elements, and try something like "move previous".
(defun c:tt (/ i)
(setq i 0)
(if (ssget "X" '((0 . "*line,text")))
'(lambda (x / str)
(if (vlax-property-available-p x 'Textstring)
Is there lisp script to measure length part of polyline? I would like to select (only one) polyline, and now select point A on the polyline, and next point B on the polyline. Then I get length...
(vl-directory-files "C:\\Users\\wpe\\Documents" "*.dwg")
Returns a list of DWGs in a folder, but is there to have it return a list of DWGs in the folder and sub-folders?
I have a weird problem with a LISP i wrote.
Please see attached files.
I want to draw shadowlines on a round column using the .lsp file.
Attached pdf file shows what I want.
I ran into a unique issue today with mass renamed blocks done by RENBLKS (a great lisp created by Tharwat) and existing old blocks and I spent few hours to replace old blocks with new ones...
I have the following lisp which displays the coordinates of a selected point with a leader:
(defun c:xy ()
(setq pt (getpoint " Pick Point: "))
(setq x (rtos (car pt)))
Long time no write....
I am trying to use this lisp:
but when I follow the instructions I get the block coming into...
I have a list containing pairs of adjacent points on a pline. I want to test each pair and replace them with two pairs at the same position if it returns truth. The pairs that do not...
I'm looking for a lisp routine that removes spaces in a string.
" D-2 TV 2 " becomes "D-2TV2"
I find a lisp to do this ,but,not found.
Excuse me, would you give me a hand？thanks!
I want to create a function (mapcar + lambda)
Function is to add a number to each sub-list.
(defun c:inc (/ n lst nlst)
(setq n 1)
(setq nlst nil)
I succeeded one to write a lisp routine to build 3D terrain model (DTM = digital terrain model) using autocad 3DFACE based on a text file with coordinates: point number, x, y, z.
This issue concerns...
Dear Lisp-Proffessionals :)
i have this following little Code with which i try to convert a text's entity style into "Simplex" (just an example). The text is on the layer "Test". Now, when there...
first of all i'm new to autolisp.i already managed to make some scripts and macros and making a new cuix. but now i would like to integrade the BLK_LIB from the link into the cuix.
I need help writing a lisp file that will turn the multi line text from dynamic columns to no columns when I start a new drawing.
If use lisp ,how to purge zero-length geometry and empty text objects? Thanks for help!
I need a visual lisp code for a leader I have attached.
is it possible to create a live copy of a polyline? by "live" i mean that every change in the original polyline will be dynamically reflected on its "live" copy
I'm looking for someone who can and have the time to teach me autolip
and I am grateful
I am stuck not understand how you must separate the first IPT, I read about car cdr cadr caddr I do not give out all the other point that should do(defun c:cp1mm ()
(setvar "Cmdecho" 0)...
how would you retrieve vertices list out of a polyline without
using any of the vl-load-com functions?
all approach that come to your mind is greatly welcome!
I want to scale the program lisp block XY and Z differently not only one scale
ie x - 3 y-5 z -1
as part of learning im trying to re-write knowen commands,
this time divide
i manage to write this
(defun C:test (/ line d x seg i loc)
(setvar "PDMODE" 34)
(setq line (entget...
I want to get the boundary points for an IAeccTinSurface object.
I can drill down to the boundaries object of the surface but I don't know where or how to get from there to the boundary...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Conceived, created and cared for by David Watson © 1996–2014