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 trying to use the vl-string-translate function to replace a character within a text string thus:
(defun c:test ( / a b )
(setq a (entget(car(entsel))))
(setq b(cdr(assoc 1 a)))
I was wondering if there was a way to create a lisp routine that allows the user to select a feature line and then at any point where another feature line crosses it, it would either add a pi or an...
I am trying to select a specific block and re-insert it. Kinda like copy command, but using block's base point.
The problem is that I can't figure out how to get the specific block:
So I was able to create a lisp routine to allow the user to move a feature line without changing the elevation of feature line by messing with the osnapz value. Unfortunately I am having issues with...
Im trying to automate the process of creating layouts. Also i need a lisp function to use to create a viewport. I basically need to make a viewport in a certain layer (non printable of course) with...
Hello guys, I've a simple question for you :)
I need to covert a string to a variable name.
(nth i (strcat "I_" pippo))
where pippo is "100"
and I_100 is the name of a list
(layerstate-save "layer_color" nil nil)
save the layer state.
next, I change the layer color
use (layerstate-save "layer_color" nil nil) again.
(command "line"p1 p2"")
(setq ent1 (entlast))
(command "line"p3 p4"")
(setq ent2 (entlast))
I want Autocad Coordinates to Excel Sheet.
If it Possible ,
Can you send me Lisp file with commands?
I want to import data from text file
but, I have some problem about my code
Cloud you please help me?
(defun c:P_Import ()
(setq SourceFile (open...
First post here, I am interested in making a lisp for what may seem pretty simple.
Let's say I have 3500 written in CAD. How can I make a lisp that takes this number and multiplies it by...
I have a quick question about the matchprop command. Is there an easy to access the matchprop settings variable? I have looked everywhere and I can't seem to find what it is. As a result, I have been...
I have LISP that works great but I would like to take it to the next level. My LISP ask the user for a radius they would like to use. Then continues the command.
I would love for the...
I am placing numbers in cad 2004,here i required tool to find out the list of missing number in between those in a .csv or .txt.
1)Example : if 1,2,3,5,68,99
I am currently using AutoCAD2014.
I am trying to code the program using AutoLISP.
I am having 3D solid with some holes.
I want to get the center of the circular hole and...
draw a rectang,then right click change side,then click to do leadline. :roll:
Please do not rewrite the following lisp.
We import drawings from about a dozen manufacturers of electical equipment for use in our mechanical assembly drawings.
Several of these manufacturers...
I need to switch to a specific OPENED drawing between 5.
I know the name and the path
It is already OPENED
I HAVE USED THE VLA-ACTIVATE function but it opens a copy from the file adding a...
I found this lisp by renderman that opens up a DWG. I've employed this with another Lisp to Open up a DWG from excel.
However the below code opens up in read only mode.
How can i get it...
I need to find out the coordinates of the nearest point on a selected line from a picked point by lisp.
Please help me.
Few programmers (including myself) decided to create a website with free (for now) AutoLisp programs and scripts for Autocad.
Well, we have few questions to define where to...
Could anyone help me to make commend through another commend.
Example if i selet some objects then i need to draw line in one of that object without losing what i select can i draw that line...
I've been trying to get the savepath directory of my current drawing into a variable so i can modify it's string to only get the numbers out of the string.
I have had no succes with...
I am new user of this forum. I have download a autolisp to generate CSV file by selecting text in a sequence. It was working earlier fine. But after formatting my pc it gives an error.
Hi to all,
Any one knows a Lisp that could insert many files (sheets) on only one dwg file?
Thanks in advance!...
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