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 have a lisp code here that computes the plotting scale for a certain lot (surveying). My problem is that I don't know how to round up the values to the nearest hundreds or thousands to obtain the...
this is my first post.
I need a Lisp to generate a polyline from existing points.
The polyline should be created from all the points at the edge of the cloud of points generated by...
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...
Would it be possible to create a LISP routine that can take 300 AutoCAD files and rename dimstyle,textstyle automatically?
It can be used for counting no of fittings in irrigation network to calculate no of reducers needed.
ie 1" will be separate layer & 1.5" will be in different layer, by counting the inserted blocks...
When I do this(entget (tblobjname "DIMSTYLE" "D12"))I get a list with about 12 of the DXF codes for the dimstyle "D12" in this drawing. But we all know there are many more DXF codes for a dimstyle. I...
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).
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 have a few lisp routine that I used before in my previous job. I trying to load them at my new station, but when I type it in the command line it tells this
; error: no function definition:...
Hi all.. new to this so I hope I'm in the right area. I just got a lisp routine from here (can't remember the link) to do with bearings & distances for surveying purposes and like it BUT i was...
Anybody please suggest me a LISP program for displaying the area of multiple polygons.
My requirement is to automatically display the area in cents (1 Cent = 40.47 sq. m) on the...
How can I check with LISP if a given point is exactly on a LWPOLYLINE?
A friend of mine said he sometimes has to search around looking for certain blocks in drawings, but he has to open each one to find the block.
I have no idea why he needs to do this but he asked if...
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...
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...
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...
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 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...
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...
i have attached a sample drawing and excel sheet for kind observation please help me.
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...
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