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 do I know if the polyline intersects with itself.
Hi i have a problem and i need some help :)
Same times when i do right click in mtext editor autocad gives me a FATAL ERROR and then i lose my drawing. The name usually looks something like-...
If too many layers ( >40) ,it will be can't display ,guys ,help me modify it.
maybe need add "Page up " & "page down" ?? o:)
(defun c:tt (/ all_tc k2 key kwstr n)
I have drawings full of dimensions overlapping on each other.
Should any one let me know how to get rid of this position via programming?
I tried some coding to move text of...
Can you write code at the prompt points, texts and blocks in layers.
Only if they are located in the drawing
(defun c:tot1 ()
(setq ss (ssget "X" '((0 . "POINT")(8 . "LAY1"))) n (sslength ss))...
Hi. Thanks in advance for any help that anyone can provide! I just got a new version of AutoCAD (2015). Upgrading from 2007. The problem I'm having is that I can't import my CUI from my old...
I have modified this lisp by Dave Corrall to create chainages as per our requirements. I am wondering how to add the "Chainage_Tick" at the vert start of the line.
Can anyone help?
I like to write a text between first and second vertex of a selected Polyline.
please help me to get first vertex (p1) and second vertex (p2) of a polyline. rest of things i can do myself.
i am able to generate model space according to my need.
but i get stucked in viewport management. :cry:
i have 7-8 viewports in one layout with specific layer name.
i want to do...
Can we extend inside polylines and Trim outside polylines to selected polyline boundary. See the attached Image
Kinda new here...
i have been using an outdated lisp in my 2013 autocad. it was working fine on autocad 2009 and 2010 as per seniors in or company. but when we updated 3 years ago...
Hi anybody can help me to write a lisp I have to pick the number in the drawing and subtract the number which I have entered using keyboard then it has to display the value in the screen.
Please help me to draw Double line Flex line with smooth curve in autoCAD 2014,
I am an irrigation engineer, This will be used to count the no of fittings in lateral & main pipe network.
Their are two conditions
1.) 1", 1.5", 2", 3" pipe are in different layers...
Every now and then I open my drawings and wonder "huh, who did that". Well of course nobody has done anything. Even "it must have been you who did that".
I have often wondered if there was a...
hi dear all
:(i want draw two line be parallel like mline command but with Specified distance, for draw two horizontial lines i write correspond code, but for this case i confused.
i know that...
Hello folks. any one here has lisp for importing stamp (block) for multiple drawings without opening them. i need to replace more than 200 drawings with a new stamp. instead of opening one by one. TIA
I am struggling over combining 2 different lists. Elements from list 1 contains, lets say, 1 2 3, while elements from list 2 are A B C D. The master list would look something like this:
I have a LISP that used to work nice up until this morning when it start working only half way.
This lisp is doing a bunch of tasks:
-asks for scale
-asks for insertion...
Trying to find a lisp routine to change existing equipment to phantom layer and color but want to keep the line type. Some of the equipment is in blocks with block and some are explode.
What are the steps I have to follow in order to load
an application I have developed, without interacting with:
When you call the commands (quit) or (exit) you always get the output in the command prompt:
; error: quit / exit abort
Can you redefine that text? If so, how would I do that?
i want a lisp for number or alphabetical increment
lisp ask me for dist between text and increment valu
this is need full i add the sample this is give u idia
I am a software developer , i program in C# C++ and Java, but lately i have been given a task to help out our engineering department to write some code + script to fix cad prints which...
This is probably simple, but how do I make a program repeat itself by asking the user to enter input until a value is true?
(setq a (getint "Enter Secret Code : "))
How do I repeat that if 'a'...
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