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.
Hi i required a lisp to draw a poly line along with 2 closed poly lines. If i pick 2 vertexes on 2 polygons, 1 new poly line should be created between these two points along with polygon walls. can...
Lisp to find the difference in z value at intersection points in 3d polyline and polyline,
I need to check the 2d point P1 ; weather it is in between P2 & P3 or not
i have a lisp i have set up for the office that runs a pre-configured data extraction (dxe) file. the purpose of this lisp is to insert a table in the drawing that shows attributes from a...
Hi, I wanted to re-structure our layer system to make it a little bit more professional. Basically instead of layer "Concrete Outline". I want to change it to !CI (Company Initials)- Concrete...
I need some advice to change the cursor type (shape) during the program to match the input asked. Eg. I need to change the cursor to a cross (target) and then to change it back to default. I guess it...
when i use ssget function the autocad select entities randomly ,,, or i dont know whats its concept for selecting intities >
What can i do if i want it to select it according a spicified...
I was trying to change the shade plot of a view port by lisp but I didn't see any way to do that through the change properties or through the dxf codes.
(setq ss1 (ssget "x" '((0 ....
Need autolisp reactor to always reset FILEDIA system variable to 1 because I run a plug-ins for some unknown reason it turns FILEDIA to 0.So it should detects whenever its value is 0 it...
How can we find a missing number from a number sequence in a text layer using Autolisp.
Batch Find & Replace Text
This program uses ObjectDBX to perform multiple text replacements on the current drawing or a complete directory (and subdirectories) of drawings. The program has the...
I've got a little lisp that I've had people using for a while that quickly sets some variables in our drawings. I didn't include cannoscale at the time because we weren't using annotation scale very...
how to convert the 2d polyline to polyline.
Hi everyone !
I need a lisp to change layer by color. I mean I have a file with layer name: solid, hidden.When I select objects, it will find and change objects with color "white" to layer "solid",...
today I'm sharing with you a piece of code that does just what the title says,
I couldn't find one so I "made" one.
This piece of code selects TEXT inside polylines, and tosses the area...
Alright, first off I'm pretty green with LISP. My CAD Management class has introduced us to some of it and I have successfully created a few programs. That said, I'm having quite a bit of trouble...
Newbie to forum but not to CAD. I need a copy lisp that will add the entered dimension accumulatively.
Example: Command; copy, pick object(s), pick base point, enter displacement, "10 foot",...
im using the code below to draw a circle in the intersection of 2 lines. the resulting circle center is not in the point of the intersection , why?
(defun C:TEST(/ a b)
(setq a (car...
in the right you can see how the lines are overlapping each other , after triming the overlapping lines i get the result as it appear in the left.
is it possible to write a rutine to auto...
Is it posible to convert a *.txt file with coordinates to a table with coordinates with a lisp?
(defun c:selectsimilar ( / sset)
(if (/= (setq sset (ssget "_I")) nil)
(setq hnd (ssname sset 0))
(setq hnd (car (entsel "\nDS> Select Object Type: ")))
(if (/= hnd...
I'm just wondering if it is at all possible to find and replace text/values of the fields in the PROPERTIES dialogue box. Please see attached image for an idea of what I mean.
my program stop when executing (command) function. what im doing wrong?
(defun unlockAllLayers ()
(princ "/nunlock all layers")
(defun deleteEntityLimit (units)
I need help on selecting a nested object which is attributed text from the block to be able to remove hatch over it. Below is the code that I'm using currently (not mine originaly, I...
How to create topology using AutoLisp. or can we save the topology creating steps (Like Topology name, Type, description, Layers etc) so that we can load them again and again when we need.
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–2013