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 a lisp do this job
To select the text (and Mtext too) and but each string in a single line and but next to it the count of that string
I have this text in a drawing...
Hello to all of you, I come to you because I need help with a project I have realized in the framework of a research project: the goal is to create automatically using a lisp, public lighting systems...
i got a function that should freeze/thaw layer status, but i want to send the layer name as an argument so i can reuse.
defun c:layFreezeTogg(layerName / l )
Why this simple command is not working?
(setq p (* (/ 1 12.0) e))
(Returns p=0.0 )
How can I modify data inside attribut . same attribute repeated inside all my drawings how i can make modification without open all drawings .
major amount of my autocad work is to offset a line inward, move the offseted line to its own layer and trim-extend the offseted line.
im looking a way to autolisping it out,
Hey everyone, I'm trying to figure out how to use the (mode_tile) command in lisp to allow the user to enter data into an edit_box if a toggle is selected in a preceeding dialog box.
Im searching for lisp routine or some other way to insert multiple images (tif FORMAT) at once in *.dwg file. I have a lot of images to put into dwg drawing.
The insertion point of images...
Can someone help me on why this code is throwing nil?
(while (> (getvar "cmdactive") 0) (command pause))
(setq e (getvar "_area"))
e has nil value...
Has anyone used Lee Mac's Update Title Block Routine with a wildcard in the layout column. As an example we have layouts with the following names:
10-101.A and 10-101.B
We would like the title...
I have this code
(setq i 0)
(setq sel (ssget '((0 . "LWPOLYLINE"))))
(repeat (sslength sel)
(setq entpl (ssname sel i))
(setq lentpl (entget entpl))
a few days ago I was confronted with this situation:
someone was trying, programmatically, to restore the MLeaderStyle Arrowsymbol to the default, Close Filled, unsuccessfully.
بسم الليه الرحمن الرحيم
الحمد لله رب العالمين ، و الصلاة و السلام على أشرف المرسلين ، أشهد أن لا إله إلا الله ، و أن محمداً رسول الله ، و أن عيسى المسيح عبد الله و رسوله و كلمته ألقاها إلى مريم...
I've been off the forum for a long time, I know.... sorry about it... sometimes I answer threads or new questions from old threads, but now I got a simple new one, I may have a similar...
I am in a hurry with the project so I don't have time to write this lisp myself specially couse I don't have any experience in it, so if anyone can help that would be great. Anyway I have a lot of...
I was wondering if someone could help me out with this idea.
I have for example 3 layers, layer '0', layer '1' and layer '2'
I want to creat a simple command that changes the current layer...
please help for lisp to automatic label elevation of 3d pline at equal distances
as in attached drawing
I have the following situation:
I have an open dwg TEST.DWG
There is the possibility of doing this
( all via lisp )
1 - Open TESTE2.DWG
2 - Select All ( objects )
3 - Copy to memory
Does anyone have to know of a lisp routine that will allow someone to pick an extension line and change it to CENTER?
All I have to need one LISP program for match text properties.
I like to change all text size and style with romans.txt size 3/32” and width factor .85. with in one click.
does anyone know how to convert circles, arc to Line type.....
Please someone tell me why this:
(> (* 126 a) 3000)
returns nil, when a=3 (or any other value) ?
I'm a little new to wildcards and don't fully understand how they work andwhen you can use them. Right now I'm trying to use them in code that wouldallow me to get some additional information about a...
I am trying to write a routine that allows users to input items and weights in a dialog box, and outputs a formatted MText (among other things). I allow the user to input up to 10 items, but I only...
I am trying to change block visibility by lisp and have cobbled this together. It doesn't work though and I was wondering if someone could have a look for me. Thanks.
(defun c:Legend_Scale (/...
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