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.
What does this Error Message mean : Error: Bad Function T?
I tried to do a while loop
(setq repetition 0)
(if (= flag1 2)
(while ((and (>= tpagen 2) (< repetition tpagen))
Lee Mac has this Add/remove to block lisp routine.
Wanted to to add a shortcut with "+" as ADD and "-" as REMOVE.
(defun c:Add (...
I want to create a 3d solid shape (example: a window) in autocad and give it properties like dimensions or brand name, then I want to transfer the file to navisworks, but I still want to read its...
Have many blocks & blocks within blocks that we need to convert to '0' layer excluding other entity such as lines,circles,text,dimensions.....inside this blocks.
Google and found many lisp & but...
I want to create a lisp where when I have a frozen or thawed layer that I want to be on when I don't know exactly what layer the object I want is on.
To clarify when I want a specific object to...
I had a quick question in regards to the dos_getfilem function. I understand how to filter out for only .dwg with the function (*.dwg)|*.dwg||"), but I was curious if there is a way to show all .dwg...
I selected objects function ssget.
(setq s ssget)
I have a list of corner windows (white squares on drawing).
'((x y) (x y) (x y) (x y) (x y))
How to divide the objects on those that are inside...
Hi, I need help. I would like to make new LISP from existing two that I found.
Fist one delivers selection set (according to attribute value) that should be used by second one (changing layer of...
I'd like to include in a lisp routine the "rectangle selection effect" that exists in autocad. When you click any point on the screen and then a second point this effect appears.
In the file TEXT-POINT-ZERO.dwg zeta points is zero .
Is there any Lisp program to the value of the text by selecting the point globally or by layer ?
In TEXT-POINT-OK.dwg file it is as it should...
I've been using this lisp to fill in the attribute on agroup of blocks. We recently loaded all of our standard blocks onto a toolpalette. The problem I’m having is that the ssget seams to ignore the...
My goal is function that will return list with names of blocks for ssget function:
Could someone verify my lisp routine?...
I've found a way to rename xrefs with this script and it works fine. It basically changes the old xref to a new xref.
I've spent some time writing up the following tutorial which aims to demonstrate how to construct a simple block counter and in the process give the user an introduction to association lists and...
I'd like to know if theirs a way of retreiving a textstring with a field value then modify the field and resend it back into the attribute.
I am searching for lisp that calculates the total length of multilines with different scales, as I am working in the field of fire fighting and I use the multiline command to draw...
I'm using this small routine to add some new layers to a drawing:
defun fLayer (fName fColor Ltype fPlot)
(entmake (list (cons 0 "LAYER")
(cons 100 "AcDbSymbolTableRecord")
When I use ssget before, I either let user input, or '(1000 1000) for a fixed point.
Now, I have an variable as a point.
The code now looks like this:
(command "copyclip" (ssget "W" 'pointy1...
I am looking for a LISP routine which user defines an area (rectangle) and a blocks and 2 numbers x & y (array dimension) and the the routine place the amount of blocks inside the...
Existe algun programa lisp ó desde el mismo CAD algun comando con el que pueda insertar un listado como el que adjunto en excel?
Adjunto el listado y el CAD con esos puntos ya insertados como...
I need advice/idea.
I have uploaded example1.dwg
It's easiest way to explain what I need advice for.
My job is to design cables. Data that I need to put in drawing are cable_number and...
Senario is this, i make a line, and it will automatically generate a circle with the length of the line as diameter, im sure you guys can make this very easy... but im really new to this lisp thingy,...
Hello and happy new year for all
my request is autolisp routin that can creat a line from 2 existing lines may parallel or not and every point of this line has the same distance to 2 lines
I have created small lisp, Which inserts block and add its dynamic parameters data to the block... But When I applies dynamic properties to the block, Parameter gets applied to the block but...
Hi guys, I have some question:
Whats the difference between "distance" and "parameter" on vlax-curve-**** functions?
I can't imagine it graphically...
Does "parameter" means the length value of...
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–2016