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 do I work out TAN for trigonometry in lisp? There is a cos and sin function but no tan. Thanks
I have had this issue with a few lisp routines over the years.
The lisp routine runs fine, but after running says at the command prompt "unknown command" for the command that just ran fine.
I am trying to use StripMtext AutoLISP program to clean up some drawings. I have it copied into the support folder and am able to load it. However when I load it in, I get the following message:
Our template for AutoCAD has several page setups for various different sizes. I was looking into making button macros that would automate this. So basically there would be a button, say for...
Hi all,can anyone clarify what's the problem in this code and how can I fix it.
(setq lnam (getstring"\nEnter lay name:"))
(if ( = lnam t)
(setvar "clayer" lnam))
(if ( = lnam nil)
Hello everyone! I am hoping to get some help in solving a volume problem.
I have a polyline representing the bottom of a dirt pile. I know the volume that I am trying to achieve. I know the...
I don't know if this requires a lisp or a script solution..
I regularly work on multi-tabbed drawings.
I often encounter situations where on a tab, the extents
are much smaller than the title...
I had drawn projection views by manual methods. I have lot of isometric drawings; from that dwgs I need to draw 1st angle and 3rd angle views. Anybody knows how I can I rotate the isometric...
I have 300 cross section. I have to put the Existing Level and Post Level Therein.
I'm attaching the image of it..
The formula to put the Levels are : ---- (Dimension +or-...
Hi, i want load my linetypes from topo.lin file. Here is my code.
C:fen (/ A1 KLIM PER S1 S2 SCL)
(COMMAND "_layer" "_m" "fen" "_c" "140" "" "_LT" "" "C:\\topocad\\topo.lin\\fen"...
If you want to select a particular type of object on a specified position, ssGet function fails when multiple objects are overlapped in that place.
(setq ss (ssGet '(0 0) '((0 ....
I have many assemblies modeled, with the drawings done.
Now, I got a revision which requires me to change the tube diameter, but I have to "move radially" the reinforcement plates as well....
Since the analytical geometry is my weak spot (one of...) I would appreciate if someone may help me with the formula to rotate a point (P2) around another one (P1) in the vertical plan defined by...
Problem solved, thank concerns.
What is the simplest way to find whether two points are connected in a drawing using Alisp.
Thanking in advance.
Hi all ,
I am having a problem when I try to create txt file like attachment
can anyone help.
(defun c:test(/ )
I thought it would be interesting to get a thread going about your favorite lisp. As I've been frequenting this forum, my list of lisps is ever-growing. I have some I think are excellent for what I...
I found this LISP code on AfraLISP website. It looks like it could help solve some problems I'm having around here to automate the user setups. I tried it out and it does seem to work but with my...
My situation is i have a number of splines that are in different layers. I have intersected these lines with a number of lines in the '0' layer.
I want to be able to extract the...
sometimes when i get drawing from others, i need to map all entities to proper layer, for example dimention are laying on different layers, you want them on one layer right?.
Isolate is ...
i need to retrieve a keyword out of entsel,
when i type the keyword i get error that say a point were expected
how to do it right?
(setq ent (car (entsel "\n Select the entity type you...
Thanks to everyone.
I want use a command to hide namesake block ,and use a command to show it.
Thank for help me!
I am running 2013 Civil 3D and have drawings that include thousands of COGO Points. I need to go to each point and visibly check each one to see where it is and to gather survey description...
I'm embarking on a mission to resolve why the faithful old LISP codes which this dept has used since the time of Moses are failing to run with AutoCAD 2014. As I begin the searches I'm seeing some...
Is there any lisp or option can export contains of many layouts in separate files to separated dwg ?
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