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.
Please help. I would like to using Lisp to create section. Point and depth specified in the code.
Name - "section1"
Type - Valume
Live Section - Yes
Is it possible ?
Draw any entity which is somehow considered as a line things like , Spline , LWpolyline , Xline ... etc then try the following line of codes and give a number instead of selecting the last...
Hi all. New to the group. Been browsing and this seems to be one of the best CAD forums I've seen in a very long time.
My problem, I have a few hundred files drafted in an arbitrary coordinate...
I was using the lisp found at http://www.cadtutor.net/forum/showthread.php?38582-Splitting-Line&p=256805&viewfull=1#post256805 and it works great for breaking lines that cross each other.
Is there any lisp command that can measure all the selected line segments and can be transferred to MS Excel?
For Example, I have 100 line segments with different lengths, so this LISP...
I'm just in the process of creating some menus (strictly menus, no toolbars, no ribbons, etc) and my original goal was a type of block library menu as per BigAl's post here.
I have bundled all the setq I can, what am I missing now?
It load and runs fine. The staples (#) will not work so I'm using a attachment
I have two preliminary routines called CA (CloseAll) and PA (PrintAll) tailored for my needs as following:
(setvar "TILEMODE" 1)
(command "._ZOOM" "_Extents")...
I'm a newbie. And i try to practise some Autolisp example.
I write the code below to know how to use entity name in applying command.
I collect these entity name in a list and use command "erase...
Hi. I would like to save to txt file selected polylines (separated) with theirs X Y.
Something like this:
X Y, X Y, X Y (etc) , X Y
X Y, X Y, X Y (etc) , X Y
12 45, 14 46, 11 42...
the center of the circle of C, （setq c (getpoint))
Startpoint S, （setq s (getpoint))
Endpoint E, （setq e (getpoint))
Side length L1, （setq L1 40)
Side length L2, （< 10 L2 20)
some people said that it's not working in the Autocad 2014 environment , if any could help we all appreciate .
Hi! (First post, probably not the last).
I'm currently working on a piece of code for use in AutoCAD 2013 that will save me a bunch of time, but I've hit a snag and I'm not yet proficient enough...
Our company has this habit of hatching an object twice using the AR-CONC and ANSI31 patterns respectively using 100 as hatch scale.
is it possible to have a routine than can do this automatically...
How to dim slope and taper？ like this:
Find forums, did not find anything！
Thanks for any help!
LISP to scale viewport and adjust extents off of a base point?
What my boss gave me: A billion viewports at 1/40
What my boss wants: The same billion viewports at 1/20, but showing the exact same...
I'm wondering if there's a lisp that could increment numbers in selected text.
For example :
So, program should select text and then increment or decrement...
I'm starting making lisp program.
I have to make a LISP to draw N line and put it in a block at the same place off my original line.
I know how to make line in a LOOP, but not how...
I would like to save "text" and its coordinates to txt file.
I have some script:
(defun c:TextToFIle( / *error* allText lenTxt idx fName txtFile dName
Hello all, i am new on cadTutor, hey there first :)
I am looking for a lisp, or a vba macro, to get area and length values of polylines with their texts which are written inside a closed polyline,...
I m having issues with this routine. I made it to have two texts on each side (above & below) of a line move to the middle of the line if its length is changed. Lets say I want to make a line shorter...
I have a couple of lisp applications that are not working all the time I try to use them. Sometimes they work for some files, other times for the same files I get this message:Unknown...
Reading the Autolisp function synopsis of symbol handling function,
The functions (boundp sym) , (not item) and (null item) logically are the same, they all make sure that the symbol or item are...
I am working in a 3d drawing and having to define many new UCS planes.
I start with UCS 3P
pick my 3 points
type plan and hit enter twice.
This works but AutoCAD does a zoom extents….NOW I HAVE...
Is there any sort of lisp or command that draws a paperspace viewport's extents into modelspace?
I usually do it manually, with CTOS, but now I have a job with hundreds of viewports. It would be...
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–2015