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 new to autocad scripting and was looking for some advice. I have a block library I've built previously and data blocks being brought in with attributes. Is it possible to use something,...
(setq ss1 (ssget "C" pt1 pt2 '((0 . "LWPOLYLINE")))); add all lw polylines to ss set
(setq ss2 (ssget "C" pt3 pt4 '((0 . "LWPOLYLINE")))); add all lw polylines to ss set
How can I add all items in...
I have a code that uses 4 commands to create 4 different lines. However, even if the points i give him are different, he sometimes places the lines over themselves.
I have used...
Quick question for smart people..
I noticed AutoCAD 2017 has a new feature in the blockediting function i use. Now it defaults on 'multiple mode'. Is this a setvar one can 'force'...
Im working in my second lisp. Its a very simple series of commands: with some objects rotate in a random space, the idea is to put the ucs with a face of the objects, copy them, return in the world...
i have one lisp for exporting points. and i have cross checked in excel values differences and auto cad dimension.i observed many points with 0.01m differences. for example in auto...
Is There Any Way To Convert Lines To Polylines By Selecting Them ?
So I am working on a program that would make use of Lee Mac's ObjectDBX Wrapper found at http://www.lee-mac.com/odbxbase.html. The purpose of the program is to strip all fields in text, mtext,...
im new in the forum and a rookie with lisp. Im trying to create a lisp, but it doesnt work. If somebody could help me, i will apreciate a lot.
I need a lisp with a conditional, were i...
Can you pls provide me a lips for following
1) rename my Drawing no from 001-5020
2) rename my drawing no MUP-001-5050 To 001-5050
in first lips just add MUP-...
I've got this simple lisp made up which draws a square from a center-point. I find this quite handy because alot of the time i need to draw a pad central to a column and using the normal...
... in some cases you need to array "dirty maked" blocks.. I mean you need to combine blocks array with change insertion point of the block and even to rotate it around base point.
i found myself two lisps:
- one shows me a field with the Area of a closed polyline.
- one allows me to add a prefix of suffix to a text.
What i need/want:
Does anyone know a routine that enables provide real-time the sum of areas of rectangles as you draw consecutively?
Long time no pester!!
I'm looking for a "easier" way of changing specific dimensions to read "right-to-left" and be positioned "below" the dim line.
Due to mvsetup, when rotating...
I need to bisect a line and draw a line perpendicular from mid point and with user defined length using AUTO LISP routine? Your help is very much appreciated.
How can I get the length of a polyline by lisp.I could not find it in the assoc.list
I am having some problems with my lisp routine code. The goal is to pick two points and have an xline generated perpendicular to the angle between points, positioned based on a few...
I have a ploblem to count a many attributes in cad.
I have a rectangula duct with Height x Weight x Length.
I want a lisp count Attributes with couple include: "Height x...
hope that someone can help me with my request.
I want to draw a polyline over circle using 4 parameters.
Basically the user should specify the center of the circle (1) , the radius...
I've wrote the following routine, that creates 2 polygons
(defun c:fuste3d (/ pin altura dsup dinf nlados esp e2)
(setq pin (getpoint "\nPonto de introducao: "))
(setq dinf (getint "\nDiametro...
I have a list with sub lists each containing 18 elements. When the sublists are many say 25, the formation of table take about 20 seconds with the following code:
(setq row 2)
How to convert my drawings from X-Y to X-Z by Lisp? please help.
Hello, I found this awesome Lisp by Lee Mac, I use it frequently, I just can't seem to pinpoint where i can change the source layer selection to a layer of my choice.
Basically, I don't wish to...
I need a lisp to rename the current open file. I already have a routine that takes the current file name and creates a string with the new file name (Just six numbers in the old name...
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