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.
Is there a lisp to change my background color?
We receive projects from multiple architects so the names of the layers will be different every project. For our background standards we use multiple...
Although initially ported under the VBA forum, I m posting this here as well as it may have better luck.
I ve been programming in lisp for quite some time having troubles to design...
Can anyone help me to split several text and Mtext objects based on a vertical polyline passing through them?
This is what I mean:
Anyone know the code in lisp to create a warning message that has yes no buttons? and does one function if yes and another if no???
Thanks in advance
Hello to all:
I have some LISPS that will move single-selected entities to different layers in a drawing These objects are all inside of blocks.
I now need to have the functionality extended...
Some other developers here are sending some variables with values into the project I'm working on from C#.NET code. It looks simple but something I did not expect is happening.
First, I would like to credit user "irneb" for the first portion of this code that selects objects based on their display color.
With the use of this, I have added the functionality to send those...
I have a family of points that resemble a straight line – those points were coming from a third-part application and, due to its low precision, they doesn’t lay on a line, even if they should –...
Is there a function that return the pick point from a text entity??
My requirement is that I need to draw polyline between 2 lines, polyline width is equal to distance of the betweeen 2 lines, I need such polylines to verical path aswell as horizontal path. User...
I had a quick question if it is possible to turn off all the background masks for 3D label styles. I have 2 identical drawings (one is just a copy of the other that is done at the end of the...
I've done some searching and have not seen anything that answers this.
If I have a variable that represents a selection set of objects, how would I assign a different variable for each...
i just want all dialog boxes to start from the 'dwgprefix' and not by the last place visited.
this painful problem was asked before but has no sufficient answer just yet.
can someone help me make a lisp loop routine to make LINE and copy the Position Y, and paste it as Position Z???
so Position Y and Position Z will be the same?? please???? this would help us a lot!...
FIXED IT. CARRY ON!
LISP newbie here. I am writing the following code to automatically assign our office's layers to files we receive from a source outside the office. Many of these commands...
I have several drawings, each containing multiple layouts/viewports that need UCS to be set to World.
It'd be great if I could open a drawing, run the lisp, and have a dialog box pop...
Hi i have a whole heap of blocks that have text in them, for some reason they have all changed to Kalinga when i upgraded autocad.
Ive tried changing the text style but it doesn't work, i actually...
could You help me with LISP that will do stuff like this:
1) I have a some polylines on drawing. All are closed. I start the lisp and could select one.
2) Selected (1st) polyline should be...
I have found this script by Lee Mac, which adds x/y coordinates to a selection of points.
I wonder what needs to be done to display the z-value of the points only. Though I had a try, I...
Hi newbie here, I'm looking for help to create a lisp file that will calculate the versine of an arc then insert the answer as text into a drawing. (I'm useless at explaining).
for example if I...
Is there a lisp to simply change the height of a specific text in a layer?
I wrote this so far, but having troubles.
(defun C:CommandName ()
(ssget "_X" '((8 ....
I couldn't add the length of the line to csv.
I want to extract like this:
K5172, 60/60, 720
Can anyone help me with this code?
(defun c:rp2 (/ ent1 ent2 ent3 len fh fname)
What I will select is a 3d polyline.
(defun c:coord ( / e r)
(prompt "\nchoose a onject!")
(setq e (entget (car (entsel))))
(setq r 1)
(setq count 0)
Hi, can anyone help to chech what's wrong with my code,I can not get the figure.
(setq n (getint "Input number of points: "))
(while(> n 0)
(setq n (- n 1))
I not regularly use trans function in my routine, so quite new to understand this functions behavior.
I have attached drawing contains two rectangles with at different planes or you can say...
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