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.
how i can make bind for xref and purge and explode blocks inside multiples dwg without open all
Is there any lisp or option can export contains of many layouts in separate files to separated dwg ?
i would know if there is a code that allow to draw automatically a line between two points of each selected dimensions (aligned and rotated).:)
Like in this picture.
Thanks for the help.
Hi all, I'm new to this forum and know very little about programming lisp routines. I usually just come across ones every now and then and add them to my installation of AutoCAD.
I was looking for...
I have an issue here that I thought I could solve through vlisp.
Firstly is it possible to set colour of text in mleader to bylayer through lisp or vlisp?
Let me explain the issue that...
i'm trying to get a list to the left of the .sld files now i could ad the list_box to the correct place. but i cant get it to work. i dont know what i need to type in at key.
i found this...
Could any body help me to create a lisp for for sum text number before a specific alphabet character
I'm new to AutoLISP. The situation is a little complicated, but hopefully you can help me.
Currently, drawings are given to me that require the same changes made every time. Certain...
hi, i working for hundreds of drawings, my goal is to delete all PAGE SETUP NAME loaded on each drawings using lisp routine, instead of opening one-by-one & manuallly delete all page setup name...
How to modify this lisp CP to change also MTEXT not only for TEXT?
(defun c:cp (/ Ent TextSource SelSet Items Index EntDxf )
(command "_.UNDO" "BEgin" )
(if (setq Ent (entsel "Select...
How to rotate leader's text with VBA, and how to set the rotation angle in the model space (by clicking)?
Public Sub Leader()
Dim dblPoints(5) As Double
Dim varStartPoint As Variant
I require a sub-routine that returns a list of drawings in a particular folder. E.g. ("drg 1" "drg 2") etc. It seems like a simple task but I'm a bit stuck as to how to code this. In fact I wouldn't...
I want share two lisp function from my collection,maybe find usefull for other.
First function(C:CalcWt) ,i get from internet by my request (thx to the autor),and second i modify for solid...
Just a quick one.
I have two shortcuts that I use to close a drawing while suppressing the "Do you want to save" alert, thus closing the drawing without using any mouse clicks. One to close and...
i have list example
(setq thlist(a b c d e s r y))
how we can get the list
(b d s y)
Can anybody help me out here?
I have this command in a script;
(ssget "x" '((2 . "P@SS,blkdel1")))
in total it deletes 90 plus blocks but for some reason ignores the block called p@ss, is...
I have written some code to insert a single letter into a multileader that uses a block with attributes. After the first multileader is placed, it increments to the next letter in the alphabet and...
I have a list of any length
‘( ‘(a1 b1 c1) (a2 b2 c2) (a3 b3 c3) (a4 b4 c4) …)
I need a arguments function (mapcar) that will give:
1. (+ a1 a2 a3 a4 …)
2. (+ c1 c2 c3 c4 …)
Please help me undertand is there a way to identify the selected Projection is a geographic or non-geographic through AutoLISP/ VisualLISP in Autocad Map/Civil.
Any ADE_* function...
Can wall styles be changed thru a lisp? I found this one but errors saying unable to change stylename on object?
My bad was changing wrong line. All good
trying to use entmode,
this code set to changh the circle color, i see that the database entry has change but the color didn't,
and how i can change color to entities with ByLayer color?...
I am looking for a routine to convert arcs into equal segments and join it into a polyline. rather than converting all arcs, a prompt to select various arcs would be helpful, and a promt for number...
I am both new to the CADTutor forums and to AutoCAD itself. I have been dealing with AutoCAD 2014 and Civil 3D 2010 for Contouring my drafting files since only mid December as of last year....
This is outside my normal LISPing and I am in need so some advice.
My goal is to create (or modify) a multileader leader and landing line so they can be used to add perpendicular...
Modify X, Y, and Z scale factors.
There is a dynamic block，Through the properties dialog to modify the XYZ scale factors, is ok!
But I use a lisp to modify xyz scale factors ,There is 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