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.
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...
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 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 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...
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...
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...
Is there a function that return the pick point from a text entity??
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...
Can anyone help me to split several text and Mtext objects based on a vertical polyline passing through them?
This is what I mean:
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...
Hi everyone! I would like to know if there is already a program about creating new lines (less lines) over existing lines within maximum a 1/16" difference between the original lines and the new...
Does anyone have a lisp that will change all the objects within all the blocks in a given dwg to layer "0" (while maintaing the block on the layer it was inserted into)? I have tried FixBlock, but it...
I am using attributed text wire tags. I was wondering if there is a quick way to add a D to the front of my wire tag? The fastest way I have found so far is using the properties box EX. tag S,V....
To all of the HVAC guys on Cadtutor
Does anyone has a lisp to draw a branch duct.
Thanks in advance
Been Using this colour changing lisp. So far its good. But found that some lines will not change & encounter error instead.
Attached is dwg. Left side of line cannot change. Right side can
Hi, I'm still learning lisp, and every application seems to be totally new, with little I can learn from the last lisp!
I don't expect this one to be written for me, my question is just whether...
I'm very new in writing lisp, but I was trying to write a lisp that could help me draw a rectangle using the perpendicular reference point of 2 polyline. Attached is a picture of how...
How to select the straight line of rectangular box in a circle, and then round of selection mark? And straight to the point of tangency of a circle?:(
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