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.
is there any way you can number spaces so they update automatically for example if you delete one? ie 1 2 3 4 5 you remove space 3 and it renumbers 1 2 3 4
the following Lisp is working well, but I want to add alert function to it if user select something
else other than a block .... How?
(defun c:ib (/ a blo)
(prompt "The Block you select...
I found that one of the function ACET-SS-Filter function is not work on AutoCAD Architecture 2011, actually I've some lisp program running on ADT 2007. I'm trying to upgarde from 2007...
Hi, I have a major problem. I found on the net a lisproutine that measures the radius and length of an arc. Great! I made some adjustments like placing text in front of the measurements, but that's...
Please help in this issue.
(read (strcat "(" "TUBE150X150X4.5 20.2" ")"))
it returns a list
But I need a list
(TUBE150X150X4.5 20.2) including decimal point.
i write this procedure to apply hatch to polyline area from vb6 but i see the hatch with some patterns only i mean when apply ANGLE pattern the hatch appear but with AR-CONC i do not see any...
(defun c:on (/ f txtline)
(if (setq f(open "c:\\my documents\\Drawing.dwg" "r"))
(while (setq txtLine(read-line f))
(princ "\n Error - File was not...
Is there any function or a method that could give the chance to draw tow lines as well as Mline continuously .
Or maybe things like entmake ..... if possible please call :D
An entmake function;
(entmake (list '(0 . "TEXT")
(cons 40 (getvar 'textsize))
(cons 10 (trans pt 1 0))
(cons 1 a)))
What is the difference between the following entities..... is only Line Wieght of the Polyline ?
(0 . "POLYLINE")
(0 . "LWPOLYLINE")
if i'm using layout then i use single viewport command to make a viewport. But i would like this viewport to be in certain layer ifi activate that comand.
This is macro of this single...
I searched, and asked, here and there but never really found what I am looking for. (Hmm sounds like Whitesnake..?) Anyway, it seems to be a problem to create a drawinglist in an easy...
Hey guys need help again from you. i am practicing and creating menu, but the image on the library is missing but the dimension (the sample) is there. what should i do? i have attached the image...
I want to select an object in all layouts then change entity for?
select all viewports in all layouts
save old value of DXF code 90
add 147456 to old value
I'm a newbie :D (in case i didn't mention that in my earlier posts)..
So, firstly, I thank you for your help and answers and advices and so forth.
Lastly, how the crow's nest do I add items to a...
We have many different layers and we are trying to write a program to select the right layer to display by sending it as a string. The following code we know works
What is the best way to load lisp routines. In older versions it use to be acad.lsp
but AutoDesk changed that and sort of made it confusing.
Also, is there a way to make your lisp routines load for...
Well Back again with a problem were a solution is needed.
I'am drawing 3d solid objects by using LISP. For example the code below.
Now this lisp allows me to draw 4 boxes.
I wonder if it is...
What am I doing wrong?? Arrghhhhhhh!:cry:
I have this function...inside the main lisp file of my routine. Whenever I reach the call to the function I get something like error bad function and then...
Like I have mentioned in my last few posts on here, I am new to the whole lisp thing. A lot of this stuff I am still trying to figure out what it is doing and/or means. So I was wondering if someone...
Anyone know where I can find a lisp to explode ALL mleaders in a drawing (both in model and all layouts)? I often have to export C3d drawings & save down to older versions for clients. A lisp that...
The outcome must be 111x222 as a text
but it respond nil . .... Why?
In my code I have a simple line that loads a custom cuix :
(if (=(atof (getvar "acadver"))18.0)
(command "_cuiload" "U:\\CAD\\Acad Customisation\\custom.cuix");
I have a number of lisp routines that I use in my day to day work. But I am facing a problem which is sometimes very painful.
I cannot keep my lisp code in the office PC, so I load them from USB...
So Here is my Example:
I have a drawing with objects on the layer "0". There are also other layer all over. Now say out of the entire drawing I want to grab just 10 objects from the "0" layer, but...
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