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.
how can i tell if 3 points form a corner? what about giving it some tolerance? lets say its still a corner if it didn't exceed 80-100 degrees range?
i want to get linear distances between lines as in image on special layer
and if distance exceed edge lines rotate it to vertical direction
as in image
any help will be appreciated
I am using a modiffied version of the autosave reactor posted by Lee Mac here
The reactor is invoked via the acaddoc.lsp file.
Everything is working fine with one exception.
Is there a way of editing an attribute of a block so it will add a constant number (say 5) to all values in the block across the drawing. e.g. Assume 'A 125' and 'A 126' are blocks, can I edit the...
I am using autocad 2010 and new to autolisp and I hope you guys could give me a hand here.
If i have a series of horizontal lines and one vertical line (like the 1st photo attached...
I'm using autocad 2010 and I'm new to autolisp. I hope you guys could help me with this problem (image below)
I'm still learning autolisp and I dont know how to create blocks or...
I'm hoping to get some help in editing a LISP routine please.
I have a LISP created by Charles Darling http://www.gilesdarling.me.uk/lisproutines.shtml which i'm hoping to get some...
I know this is something easy but can't figure it out.
When I use my lisp in AutoCAD 2011 at home and it inserts the block it lets me change the value(text) to what I want.
That same lisp when I...
I have a bunch of mtext that has a mixture of letters & numbers.
I need to change the colours of only the numbers
"ROOM 15" >>>>> "ROOM 15"
Currently i have to double click...
what is the best way to insert block with attribute already exist in search path
with option to pick rotation
i use this one but cant put bolck to layer
(command "insert" "blkname.dwg"...
I use the are of different floors of a building to determine accessory quantities for concrete placing. I calculate using: ((sqrt(area))-4')/4'*sqrt(area). this lets me know linear feet of material...
I am a bit lost with my current LISP project.
With this program, I determine the angle of a line and compare this to a list. If this angle is present in this list, then it should...
We design overhead power lines and part of our daily routine is to draw miles and miles of pole blocks connected by separate polylines. We currently run a LISP routine to automatically place the pole...
We have drawings containing Multi-Leaders that have their bounding boxes way too big! Too bigger than what the text is contained in the bounding box.
We do have a lisp that can re-size...
I searched for an autolisp that lock all layers except the current layer that I'm using but I can't find one.
Right now I have to lock all layers then unlock the layer by click on an object...
I am new to writing lisps and wondered if someone could help me spot the error in this code. All I want to do is have the user enter in two primary colors and then have the lisp reveal...
Now sure how to explain so here goes.
I am working on an existing drawings that came polylines that has a length attached to it. The amazing thing is that when we stretch the line longer or...
Do you have any lisp program for finding cog of a set of scattered lines?
cog to marked on drawing in circle
(setq elist (subst (cons 1 xxx (assoc 1 elist) elist))
I know DXF code 1 is the only ,so can use "subst" function substitute.
But some times ,DXF code is...
I have a file from a local GIS Dept and I am trying to reduce the number of polylines in the file. Have not used a Lisp routine previously but found one that I thought would be beneficial, not only...
Does anyone know of a lisp in which I can make multiple selection sets line up with a line?
For example you could select a number of groups and assign corresponding points with the groups the...
Inspired by this thread.
Will move all XRefs to layers, based on name and prefix of "0-XREF_" (can be changed to whatever).
Prompts user with option to lock XRef layers.
My standard autocad submissions are set in modelspace and presented in Paperspace... however in some cases i need to give our CAD drawings in modelspace.
is there any routine which copies the...
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–2015