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.
As a rocky acad 2009 (civil) user the Lisp command is new to me and a big challenge.
My job asks me to find the coordinates of points. The image has like 200 points, and I know more images...
Hello. I got this lisp here, and I've been using this very well.
This lisp has center alignment.
when I use this, this lisp aligns selected objects both X value and Y value.
I'd like to align...
I have tried to edit a script found in another topic to suit my needs but i can't get it to work the way i want to.
(defun c:lsave(/ actDoc layCol docName dwgName actSel...
In my software I'm using ini files. I wrote my own routines to handle them, because I don't like tu use acet/doslib. It would be great if somone would wrote functions simillar to acet-get-ini...
Hi, I need a arguments function that sums the two lists.
(setq lst1 (list (list 1 2 3 …) (list 2 3 4 …) (list 5 4 3 …) …))
(setq lst2 (list (list 4 4 4 …) (list 1 1 1 …) (list 3 3 3 …) ...
I'm in the process of going through our company's old LISP routines. While most lisps were loaded as separate files through a single lisp load command, this code was just plopped into the lisp load...
How to transfer my custom icons, menus, toolbar in my computer to other computer.
In an other topic i found this code:
But it returns an error when i run the command MESSAGE.
Error in dialog file
line 2: syntax error.
Is there a way to store a bunch of custom variables? I know about the 'UserI1' etc. But i got like 20 variables... is it possible to store a whole list or something?
i m looking lisp for elbow. consider 100mm inner Elbow radius
lisp need to following manner
Select Inner 1st line:
Select Outer 1st line:
Select Inner 2nd line:
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.
First time posting been this forum has been a ton of help. Cant seem to fix this LISP. Not sure where it came from
What I want to do is have 2 lisps one the produces the length rounded...
Is there any way to align a block on muliple polylines of different length, angles in one go.
I have attached the sample file for refence... this block can be of any name and mostly...
I have lots of drawings files. I need to automate the viewport creation and create PDF files from that. The drawings are in A1 format either in portrait or in layout view. Now I need to...
I have found some really great lisps that do a great job of adding a series of numbers in (dtext, mtext, mleaders, etc), but have not found a lisp that will add all if commas are being used. I would...
happy new year
i m looking command for convert select line into double line. select line should be offset into both side at half of entered value & selected line should be delete. list need to...
First of all, thank you all for your generosity in helping out here; I've learned a lot from reading past posts and dissecting bits of code here. I've had several programming courses back in...
Is it possible to check the name of the block clicked on paper space (viewport) using Lisp
Hi again, sorry im really trying to get this routine works but still not lucky :l
The first code is working properly except tthat it is not working both sides.
The second lisp which lee has...
I have been using the LISP below which was put together with the kind help of people on this forum......
(defun C:checklabel ( / SSX txt )
(foreach x '(63 90 125 180 250 315)
I'm after an Autolisp function that basically does the following:
User selects a text
Script finds nearest closed polyline that the text's insertion point lies inside
I.e. Given a...
hi guys, my name is ramdan i live in Indonesia,
I want to Ask, how to make amnote in AutoCAD Mechanical with Autolisp ?
I want to make a script who draw circles in multiple Points. The Points are automaticly made in a extension to autocad. All the Points are in same layers. It´s around 200 to 1000 Points in the...
i have attached a drawing as an example.pls help me.
This lisp worked for me yesterday. I tried it today so i can add some more and it stopped working, and gave me this error.(error: bad argument type: numberp: nil)
I found where the nil is but not...
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–2017