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.
i have to layers "c-road-sctn-titl" and "area-block" ; i need sort each layers to one line .
how can i do simple?
please see my upload file for example !!
I'm working with our new copy of AutoCAD 2013 and using the Visual LISP IDE to create code. I also have an AC2009 machine right next to me for other tasks. On the 2013 machine when I click the...
I have found various routines to attempt to redefine blocks. These have not worked. Here is what I am looking to accomplish.
We have a set of blocks already placed in multiple drawings. These...
Here i have a lisp routine to explode only the leader after creation (its due to how the leaders translate into another program, is why we explode them) but the explode portion never seems to run. as...
I can’t programmein Lisp myself, but could anyone help me with the following?
I have Inmy drawing a part of a circle and a region (both 2D).
Of the partof the circle I want X...
Is there a lisp routine that will find text in an AutoCad drawing but that will also search external references as well as blocks? I have a co-worker in need of such a thing.
Thanks in advance!
I have the adoptation of a function suggested by a person in this forum and I have given the file his name. How can I get the 'princ' value in the command window?
The code is:
(defun x nil...
Could someone please help me; I am looking to auto Number the layout tabs from a Table of contens. I have attached a dwg that should help clarify what I am asking for. Thanks
How to open and close a Folder by visual lisp?
I have a Path (ex:"D:\\PROJECTS\2010\")
I would appreciate any help with this problem I'm having.
I am designing a dialogue box and need to be able to access and read a text file from a directory. Using lisp I always used the "getfiled"....
I have tried to write a lisp to draw a line between 2 GPs points, the distance between them is calculated using havesine formula, but I get an error , I believe that it doesn't recognise the...
basically i have a lisp and it renames layers.
this will be running on mupitaple drawings through a script but at layer E-APPL i get error: bad argument type: lselsetp nil
this in not even halfway...
I've searched and found several lisps, but none of them work with my block. I've tried to use the following:
(defun c:mnum(/ stStr stNum nLen cAtr dLst blName
fLst blLst blSet aName...
i was attach file please see ; these are cross section of road .
i need calculate sum fill & cut cross sections to simple doing ?
please help me how could do method to simple ?
and i want...
I am looking for a lisp that can Sum up all the dimension & give a singlevalue so that I can easily get quantity of lines....
I want to add Station RD's (like RD =1+00, RD =1+50) on every 50 foots on Pline. I used amazing Lisp by Lee Mac which is "NumInc". It can easily add 50 and I...
Hi i know a little bit of autolisp but now im trying to study vlisp
im currently using an autolisp program to calculate station and offset
but the offset was all positive. I would like the program...
I am trying to update menses, tools, and LISP routines from autoCAD 2000 to 2011. I was able to load and update most of them except 4 LISP routines. When I open the routine in VisualLISP all I get is...
Does anybody knows a site with a list of function in Visual Lisp ? something similar with developer's guide list of function for autolisp. Thanks!
Here is a simple Lisp which can select all Circles in the drawing.
(defun c:sac (/ sel1)
(setq sel1 (ssget '((0 . "circle"))))
(command "move" sel1
i would like to have a script that can be batch-applied to multiple drawings to do the following:
reload all xrefs
save and close
Can somebody please help...
I would like to find out if I can center text within a dialog edit box. I am populating this edit box from the result of a :popup_list. This information will not be edited and for display only.
So I have been searching the forums for a LISP that can divide an arc while adding mortar joints.
The cast stone company I work for manufactures window surrounds and when I draw them, they have to...
I have an old Lisp Routine that was originally written by David Harrington (1999) and later modified by Bob Abernethy. It is pretty simple and does a very elegant job of making the break on the end...
can comeone help me in this case,please?
my problem is that i need to move the slope yellow line to the ends of the blue line in each side.as u can see in movie and trim or extend to make 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–2014