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 am looking for a lisp routine that will add text to the front or back of text or to an attributed block style text. Is there a good one out there? Also, if I find one, how do I copy the lisp file...
Hello Guys... can some one help me to build the following requirements in the drawing.. this is basically for qc purpose....I am beginner in this field
Should list if there are any splines,...
How can i write a text integer more than 32767 using lisp.
when i type 123456 the message is "Requires an integer between -32768 and 32767"
I want to select only polylines in the layer "VP" in a region.
Is it possibile using ssget?
I've tried with:
(ssget "_C" pnt_A pnt_B '((0 . "LWPOLYLINE") (-4 . "=") (8 ....
Sir i have attached a sample drawing and two lisp file how to perform that job pls help me
this excel+lisp gives us the opportunity to draw road profile for bothe ground levels and design levels in two steps -- one for ground " natural "" and 2nd for design levels.
* either to...
I would like to know if anyone knows of a lisp that will do this.
1. Copy the layer of a selected object (4"-HG-BC38-9100)
2. Add a suffix to the end of that layer (-UG)
3. Move only the...
1. calculate total red pline area
2. total red pline area / black pline area
How can I calculate area by lisp?
I've developed a little program for autocad and compiled an installer with innosetup.
I need to add a custom support path for make it works but i don't know how to do it in the...
I have a large number of drawings that are using the following scale:
Name: Metres 1:500 ..... Scale: 1=0.5
But some of the xrefs use the following
Name: Metres 1:500 ..... Scale: 2=1
Is there and routines that would put a dimension along a curvy line? I dont need the actual dimension on, just the lines following the curve with the arrows and the perp lines coming out at...
I've tried to define an attribute with LockPosition on through dxf code and does not work.
(entMake '((0 . "BLOCK") (2 . "PunctT") (70 . 2) (8 . "0") (10 0 0 0) (6 . "ByLayer") (62 ....
I try to write a lisp to deal with images I attach to a drawing. The program clips them with a polygonal contour. Next it rotates the images and it should move them to match –like a...
Allows user to draw slope lines.
How can I feed the selection method "WP" (polygen) to this code instead of
selection by window.
hello everyone. i am new to autolisp. i need a routine that can calculate distance between two points and write it down to active cell of active workbook. (wherever selected in excel).
Its been a awhile since I have done any Autolisp programming and I am stuck...
I am using a conditional statement to generate a number i.e. 1.625 and then I want to add that to the Z...
I'm trying automate the plotting process (which creates .pls files) however I need open full preview window to confirm that everything fits into the window before it proceeds.
Is there a...
As I said in the title I'm looking for a way to avoid exit my modeless dialog when I press .
Does someone know?
How can I convert a List to a comma delimited string?
(setq List '((a b c d e f))) -> (setq result "a, b, c, d, e, f")
I was wondering if there was any way (lisp or program) to connect points (that are in block) by following codes. For example, I have points 1,2,3...., every point ha a code, opening code is K01...
can be break all lines polyline passing 2 points without selecting them
picking first point then second point then all linear entities passing these 2 points will be break
I have calculated the input of 2 tables and I want the user give 3 choices which one to draw: first table, second table or both tables. If I do a COND like below I have to write the Table Code...
Is it possible to select inside of a polyline? Thanks!
This is a dwg_setup menu that I'm working on.
For some reason if I delete the title block and run the command again, it will not hold the insertion point at 0,0. Why?
(defun c:test ()
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