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 need to overwrite the dimension text for several dimensions in one shot but the overwrite has to be different for radial or angular or linear dimension. How do I find out what type of dimension was...
Can somebody help with this one? I am new to lisp and have just written this.
(defun c:sqlines ()
(setq oldsnap (getvar "osmode"))
(setvar "osmode" 2)
;; Pick the 4 points around the...
I've been lurking here for over a year now and have found lots of useful information (thanks!), but I've finally done something that doesn't seem to have been solved before, and...
I have a some experience with lisp files and was asked to see if I could come up with a menu that will allow you to select your client and it will automatically load the layers, dim styles, text...
I have an attached dwg here. I want a list routine that will extract the lot's (from mother lot to sublots) bearings and distances just like in the dwg. The tables will be inserted one by one like...
Currently using the below LISP to break lines. The selection of lines is picking 1 line at a time. As some polylines are overlapped, i may need to repeat the command 2 or 3 times.
If someone could...
Hi to all,
Please someone knows one lisp to get length of a PL (polyline) and write it above this PL in associative and dynamics form? As the Picture.
If the length is changed the text...
Stuck with a problem
I have a situation, I made a selection set A
(Setq A (ssget))
and worked with it according to my need. then created 2nd selection set
(setq B (sssget))
I'm developing a simple program to draw shear reinforcement but I have some problems with my blocks.
They are four: rectangular column, circular column, wall end and wall corner).
I tried to run this lisp ,but， there is an error：Error: bad argument type: numberp: nilUnknown command "ZSST"
why?Thanks for any help!
I'm trying to use visual lisp to automate setting up viewports. The trouble is when I try to change the centre. As a basic example
(setq entv (vlax-ename->vla-object (car (entsel))))...
I need to modify a LISP routine. Here's what it supposed to do:
1. save a CAD file with the Filename - Date - Rev00- Timestamp,
2. when it saved it should be saved in two locations, one being...
What is the code that I can add to allow any LISP to repeat the command & stop only after I press ESC or something?
Below is a sample LISP for reference.
(defun c:bb ( / oldos ent1...
I'm wondering if there is a system variable to enable the sheet set preview pane by default. I would like to add it to my acaddoc.lsp file
small help please
i want to select a certain lines then store endpoints of these lines in a list
Recently I was taught that changing the variable for DIMGAP to negative will create a "basic dimension" or box around the dimension. But I also noticed that in any dimension properties under...
This Code worked in some form on my last computer i have attempted to fix it. it appears that i cannot overwrite the "_open" function is there a variable for this. ; variables set
i have attached a sample drawing and excel sheet for kind observation please help me.
This is a hard one to try to explain, I've searched the site, the net looking for this but I've come up empty handed, this maybe partly due to not knowing what to enter in the search...
To find Centroid of the closed polyline it is necessary to transform it in Region. This program finds Centroids the several closed polylines and marks their points.
(defun c:polycen (/ polySet...
i`ve made a script that makes a layer "XREF" and make it current. And set the layout to modelspace. Aftert that i want to attach a XREF. This xref drawingfile is in a subfolder of the...
I need a way to select all the *X anonymous blocks (Hatches) and either convert to regular blocks, back into a hatch or just delete them.
QSelect will only do it one at a time, wildcard doesn't...
As a rocky acad 2009 (civil) user the Lisp command is new to me and a big challenge.
My job asks me to find the coordinates of points. The image has like 200 points, and I know more images...
Is the a lisp or some code to delete a hatch from every block in a drawing. The super market chain I'm working with use the same blocks over and over on different projects but there...
I hope I'm not embarrassing you.
You have already more than 16k posts in 5 years period of time,
Every post get your detailed explination
Im sure lots of members would like to know...
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