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.
hope your guys' summer have been awesome so far.
I am working on a piece of code where I can save each layout as a 2004 autocad drawing (as well as bind any xref's and purge/audit the...
Found this amazing LISP by Lee Mac Called Text to Words
It Basically converts a selection of single-line text objects into separate text objects for every word in the selection based on...
am just wondering if there is a way to check if there is an Xref in a drawing without opening them. Check the whole folder and list which drawing has an xref.
the reason? commonly...
please i need lsp to erase alot of line have same length
i mean i nead lsp to ask me about length then example i give him 65m automtic erase all line have this length
Im trying to create a variable when an existing variable has a certain file extension associated with it.
This is the code
(if (wcmatch (strcase plotstyle) "*.stb")
This sits at CommandEnded of a copy command reactor. This works but has a failure rate of 1/2%. The failure is that is doesn't assign a new random number to the entity. The hours looking for this...
Im being totally lazy on this one. but what would a lisp look like to simply select an object enter the command and all it does it move the object over 20" to left?
I am trying to write a program in which will take the text "Road" (which is put in its own layer called Road) and move it to the right by 3791.4481.
I am also trying to take the...
I have a small LISP program and it creates a new Layout Tab and gives it a name.
(command "._LAYOUT" "_N" "8.5x11")
Trouble is it comes with it's own default viewport which I really don't need. In...
My lisp routines is slowing down network version AutoCAD 2013.
In the past I have placed all my routines in a folder on my C drive. Then I would map
it to AutoCAD under "Support File Search...
Ok so what im trying to do is modify the value of a lookup in the dynamic block "CARTOUCHE LU" which is located in all the layouts.
(setq nomBloc "Cartouche LU")
I am writing a lisp program to work on drawings opened as DBX, but the program works on some drawings very slow. I find out that it is because of needing them to recovery or audit. How...
I have a problem with acad2012.lsp... it will always load on every drawing.
At the moment I have moved the original files acad2012.lsp and acad2012doc.lsp to a location that AutoCAD doesn´t...
Hi ,I am trying to learn lisp so i decided to write a code to calculate the length of the paper after printing and the cost of the printing
I know that is easy to calculate it with an excel or a...
Good day everyone.
I have only started with LISP programming a few hour ago. I want the following to happen with my LISP:
create a circle, extrude the circle
create a helix on the previous...
I need a bit of help with this lisp if anyone can help... I've been happily using in 2D work but we've just tried it with a 3D polyline and it doesn't seem to be functioning correctly.
I click on...
Is there a way to count a number of files in a folder using an autolisp coding.
In the help section for OFFSET command 3D Polyline is not specified as the object that can be Offset-ed.
Is there some tip how to offset 3D Polyline in the plane where the polyline is located?...
I need a lisp that will open a file in the directory that the current file (the one that is currently open in ACAD) is in. On top of that, I need to use a wild card.
Hi, where can I find the file acadauto.hlp ? in autocad 2011
All, I need to apply following setting to all of my layouts.
Is it possible to achieve this by LISP?
Is it possible , i need the new block to have the same 'tag' and later ill change the value .
i was looking for a lisp like that (google) and found many nice lisp that duplicate block attributes in...
Now I have this code and It's not working.
(defun _Modification (/ obj atts x lt Nombloc)
(initget 1 "P T D V")
(setq Mod (getkword "\n Quel élément voulez vous modifier? : "))
multi-select lines , Enter the distance, line at both ends of the lengthen.
Thanks for any help.
Can we put key commands into lisp, to activate it, for it to work?
ctrl (control key)
alt (alternate Key)
shift (shift key)
If possible, how would the code for this key commands look like in...
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