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 wrote some lisp for shortening both ends of pline/line.
This routine is based on "_.lengthen" command, but there is one problem, using this command I can't shorten plines/lines which ends are not...
Hey everyone ! ... Can you automate data extractions easily ?
I have a routine & template files. I use these every time but its a pain to constantly name and pick files every time.
Let me know .....
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 have created a title block that automatically fills out almost all the information from the .DST file for a project (project number, name, drafter, checker, create date, page number, etc.). Right...
From the thread about trying to derive the total number of layouts in a drawing with Diesel, I decided to put this together. It was basically complete and posted in that thread, but I wanted to clean...
I am new to AutoLISP, and I have an assignment to make a lisp which would calculate and write number of the sheet of cadastral map (which is defined by scale and coordinates). I'd like...
i have been trying to get this to work for a day or so now, and im at the point where i have no hair left!
ive found macro code (okay, "borrowed"...) and opening the current directory...
Lisp to draw (as shown in Image) in autocad data collecting from text file as shown
i have several rectangles. i need auto dimension upon selected rectangles as shown in sample drawing format. please help by lisp routine.
condition is 1)if my drawing in inches text...
Hi guys. I've been trying to find a lisp that detects if layer specified polylines are inside another layer specified polyline.
I want to check if closed polylines under layers (Layer 1, Layer 2 &...
Hey everyone I have been using this lisp forever and always wanted a function added and have no idea how to add it. Props to Tony Hotchkiss for writing this great lisp. I wanted to add the function...
How to move dimensions to zero level
The first Lisp is just a classical example:
(defun c:fract3( / a b c)
(defun mid(a b)
(mapcar '* (mapcar '+ a b) '(0.5 0.5 0.5))
(defun draw(a b c)
We are trying to write a lisp that will set all blocks in a dwg to an X, Y, and Z scale value of 1.
By my reckoning it should work. But it only applies the scale change to one block in the dwg -...
Hi forum , my english poor im sory..
ı want a lisp ,
1)select Dtext or Mtext (manual)
2)select attribute (manual)
3)add mtext or dtext in attribute (automatic)
ı have 1 attribute and 2 text ı...
Hi I'm looking to be able to change the colour of text based on the value. So if I have 200 text objects of differing values I can select them all and choose to change the colour to red if the value...
I have this code that inserts a text using grread function to which I want to add the option to rotate and resize but I have no idea how to do it would appreciate the help.
I decided to update my old 'script writer' code to make the program a lot more user friendly.
I realise there is ScriptPro, and I'm obviously not in that league, but this offers an alternative.
Not sure if this is the right place to post this, but here goes. I've got a block that I frequently edit. One of the tags is in inches, so every time I edit the value I have to append a quotation...
Which autocad variable controls the display of dialog box display
when we use below autolisp codes
(note: for most commands which displays dialogs box used at command prompt)
I do not know if it's the right section.
I would like in model space see all of one colore..es: purple, but when i edit in place a block the colors of the block will return to the normal color, or...
I need a LISP routine to do the following:
1) Explode the drawing (one time only),
2) Annotate first block name,
3) Explode this block (it becames a 3D object),
4) Put this 3D object in...
can anyone help me? .. I have a number of mtext in a specified layer like the following example:
it is possible to obtain individual contours from this design situation?
I'm very new to LISP and wanted a hand with writing a simple script to copy a line and change the layer to a specific layer. It going from Layer "50" to "TRAV" and I wanted this changed...
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