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.
I'm working on a lisp routine that requires creating a viewport in paperspace with an orientation. If I was doing it manually I would normally create the viewport and then from inside the viewport I...
When using the Export function on the command line is there a way to type the destination in rather than having the save dialog pop up?
I don't know is this possible or not. I want lisp to make wiring like attachment when I Select some items make wire.
HI,guys,I need some help! TKS
This code is hide object
(defun c:yc ()
I'm just wondering if anyone is familiar with the explorer replacement Directory Opus, and if anyone knows how to launch Directory Opus to a specific predefined layout from within...
Would it be possible to have Autolisp read a txt file and delete all duplicate files?
I know that doesn't require necessarily autolisp but the values in the file come from an Autolisp routine and...
I'm looking for a way to copy only circles (but several of them) from the model space to paper space.
I found a utility that does it but there are few limitation that need to be...
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...
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