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.
Can someone make a lisp to create Excel file (without open any dialog windows) and export a select object coordinate to excel?:(
DOES ANYONE HAVE A QUICK AND EASY WAY TO REPLACE A SELECTED BLOCK. ALSO IS THERE A WAY TO REPLACE MULTIPLE SLECTED BLOCKS AND REPLACE WITH A DIFFERENT BLOCK TYPICAL FOR ALL THE BLOCKS THAT ARE...
(defun C:R-FIELDS ( / del-field ss1 index item)
(defun del-field (ent / edic)
(if (setq edic (cdr (assoc 360 (entget ent))))
(dictremove edic "ACAD_FIELD")
I want to break a list in two sub lists like that:
List: (a b c d e f g)
L1 as (a b c d) and L2 as (e f g).
It s easy to get the second L2 with (member e ls) and frankly i can...
Before appload lisp (fas ,vlx ) , record global variables. (can use "atoms-family" func ?)
After appload lisp (fas, vlx) , record global variables.
Than ,get a list of global...
Hello again CAD wizards,
So heres the thing i want to do.
I have to dimension 800 such points in a drawing file. So what I want to know is that is it achievable using auto lisp....
I am trying to sort entities name list according to its location on polyline
(defun c:nn (/ )
(princ "\n Select 3d polyline :")
(setq sel (ssget'((0 ....
i have 2 polylines in a drawing that i want to put in a block named "myblock". they are set as en1 and en2. my insertion point is ip.
following command didn't work:
(command "_.-block" myblock...
Hello guys, nice to see you again!
I've a probleam creating this xrecord:
(setq anXrec (entmakex '((0 . "XRECORD")
(100 . "AcDbXrecord")
I need a lisp to overwrite text/mtext
It will prompt the user for a string
Then either window or pick entities to be over written.
This is what I have so far:
I'm new to autolisp. Can someone make a lisp to draw auto circles on selected objects. I hope you guys could help me with this problem (Image below)
i've been useing Duplayout LISP made by Gile for a while (CADtutor forum), however i'm missing 2 things in it, and I hope you can guys help me out:
When using duplayout, the name of the...
We use the ACADDOC.lsp to load some lsp routines upon opening a dwg file.
I would like to add an "Alert" feature to this file.
I ideally would like the dwg to open and then if it...
This is my first post in the forum, though ive been a reader for a few years now.
Ive been working on a passion project/hobby for the last few months. I want to export cad data...
I need help with my piping network;
I need to do certain control checks on my polylines (pipes) in order to have healthy project. I explained details on below and any help is...
I have attached a dwg files and a excell file can it possible possible by lisp.i need it too much.i use only autocad .plss help me
I have a problem with the interpretation of the codes insert group (10 50 210)
Can you explain graphically what each of the data codes.
((-1 . <Entity name: 1a7773d8>) (0 . INSERT) (5 ....
Batch Find & Replace Text
This program uses ObjectDBX to perform multiple text replacements on the current drawing or a complete directory (and subdirectories) of drawings. The program has the...
I saw few days ago , approximatelly same post name , but mine it have a little bit other meaning :
I have 2 blocks with attributes , I have to compare each cell value in first block with its...
I'm stuck on this so any help is appreciated.
(defun c:plancallout ()
(setq layername "S-ANNO-SYMB")
(setq layercolor "140")
(setq restoreosmode (getvar "OSMODE"))
Did someone once wrote a function that transfers to nested blocks in front of the main block. The only idea as I have at the moment is a breakdown of the main block and create a new of the same name...
Does anyone know of a way to make the column setting of mtext change to dynamic using lisp?
The reason I ask is that when you burst an attribute the column setting is set to none...
I was wondering how one would best and most efficiently create this polyline in lisp. I have achieved it by drawing some lines and then using the FILLET command but the results can be kind of flaky,...
Greetings to everyone,
Recently I started to codding in auto lisp, but since my knowledge is still on a very basic level I haven't been able to accomplish what I thought was an easy task.
Hello CAD Wizards,
I am pretty new to the idea of lisp. However I have been using autocad scripts to get my job done. So what I want to do is create a lisp function so that it reads the x , y...
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