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.
Anyone know how to change the value of an action to a dynamic block length using autolisp? Thank you!
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...
Hi All! anyone can please help on a LSP that i've been searching for: lisp to drawing Slope Lines. thanks
Sir i have to create layers by selection of objectes.i have attached 2 sample drawing for observation.i can do it in going layer command and create different layers with diff name and colours and...
can i get the desired result ??? i have attached a sample drawing.is it possible by lisp or vba??????
I am working on a computer at the office with full AutoCAD on it and I am trying to write a LISP routine for people that have the ability to use it. However, the actual plotting part of it is not...
I've got an idea for an autolisp routine. I'd like to select text or mtext objects with bearing and distance (in metric units of course) and generate a paste_clip that I can paste into.
I am working with C3D 2014 and want to find a Lisp code to help me sort through multiple Cogo Points. I know about the ZTP command but I have many point to go through, so that would be slow.
Please can someone explane me about the value , that request when we try to
zoom to center.
And why cant we activate snap on during this option.
I would like to know, what is the different between the two..........
Is that all are same?
*need to Install
Following an idea posed in this thread, I have created the following code to enable a user to automatically update titleblock attributes using data sourced from a CSV Drawing Register, a...
How would I change a selected attribute from visible to invisible using visual lisp and then have another routine to make all attributes in a selected block visible?
I have a 3d structure, and I want to know if there is a way to know the mass?
What I do at the moment is, I find the Volume 'OBJECT' divide it by 10^9 and in the end times the density of the...
hi dear friends
:(how can drawing object with different methods in autolisp?
for example in normal command arc in below
(command "arc" s c e "c")
s= start point
I have this routine which I found on this or an other forum.
(defun ctc ( text / htmlfile result )
;; Caller's sole responsibility is to pass a
Greetings friends ..... if you could give me a help
in the following lisp their mastermind is Mr.
Kent Cooper I want the number to 2 decimal places had ....
I appreciate your help .....
I have a piece of LISP that allows me to pick a block then pass the data into a new block's attributes, the problem is that when I run it in a script file it does not seem to pick...
Here's the scenario:
- Let's say i recieve a file from.. idk an architect.. and i want all of their standard wall, dimension, text, sanitary, water, etc. layers changed to my own standard layers. I...
I'm about 99.9% sure this is the exact code I found back in 2012 and used to perform a batch operation on a bunch of drawing files. All this did was allow you to point to a folder and then run a...
hi dear friends
:(pleae help me for problem in easy code:
(defun getpoly ()
(command "area" "object" ent)
(setq ent (car(entsel)))
I got most of the code below from here
What I am trying to do is read the attribute value and tag from a block (the block has multiple attributes). When I (princ) it, it returns nil. What am I...
Kinda new here...
i have been using an outdated lisp in my 2013 autocad. it was working fine on autocad 2009 and 2010 as per seniors in or company. but when we updated 3 years ago...
Any help, is this possible to add numbers all selected numbers at once?
Example, I have 11, 22, 33, 44, 55 numbers. After I select this 5 numbers it will
give the sum of 165.
hi dear friends
please if possible explain me this code that how do this? my problem understand Commands this code.
(foreach str (reverse '("adam" "ben" "claire" "david")) (setq lst (cons...
hi dear friends
For example, I wrote code the area in order to give me, My goal is to be inserted this the area on object like tools dimension in autocad toolbar, how do this?
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