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 series of lines connected from end to end. I want to do two things:
1) Place a text giving the length of the line on perpendicular bisector near the center of each line....
Hi, i would like to generate auto cad drawings automatically based on the Input available (for an example, i want to generate Beam to beam "Fin plate" connections. i am having input as Incoming Beam...
I need to convert radius elbow to segmented like shown in a picture..
I find the appropriative routine to convert arc to segmented pline with user defined number of...
I am looking for the equivalent to this in VLisp
ImportPoints Method (String, PointFileFormat, Boolean, Boolean, Boolean)
Any body have an idea I have example of just a csv import, but I need...
I have some MPOLYGONS and they all have multiple object data associated with them, but I need to alter the value for "Address" so I can remove the trailing spaces.
What would be the method for...
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...
I am looking for a LISP routine that can display a list of MText contents.
The reason is to help me when checking drawings with different pipe sizes.
The list of different MTexts are:
I need to get a list with the names of files with a particular extension, in a folder.
Folder: c: \ temp \ drawings
(name1 name2 name3 ..... n)
I am looking for a LISP that replaces text for me.
I now have some strings with content: '25660sq.m'.
I need the 'sq.m' part to be replaced for 'm2' but leave number there.
Now i found the script...
This thread is not about (nentsel), but for similair functionality.
I try to use this:
(cdr (assoc 0 (entget (ssname (ssget "_+.:E:S:L:N") 0))))
Which should mean: "select single entity, on...
My question may be fairly complex, so I hope someone could answer:
Does anyone know what is the programmatical relation between the Group Layer Filters and Layers? - or where I can find...
Could anybody please let me know how to invoke text command so that what ever result i am "princ"ing to command line.
i want to be able to paste it on screen through text command,...
Can any one help to replace the hanger (MAPS_SOLID) objects by predefined block (INSERT) at same coordination value in AutoCAD interface using Autolisp :x. Please,...
I am a recent user of Lee MAc Programs. Learnt a lot from his site and CADtutor.
A suggestion to LEE MAC regarding CopySwapTextV1-6.lsp
While using CTX, if the command prompts for new source text,...
As this is a complete upgrade to the program in the recent thread of the same topic, I thought I'd include it in a new thread so that it can be found easier with searches etc.
Let me know if you...
Was wondering if its possible via lisp to change selected text to a text style of my choosing? For example if i have a style called 'title' it would be good to be able to select the text,...
i need a command which can make me numbers of vertical and horizontal polylines which i can input certain distance thanks a lot sirs
(defun c:cl8 (/ ent ln)
(while (and (setq ent (car (nentsel "\nSelect Entity: ")))
(setq ln (cdr (assoc 8 (entget ent)))))
(command "layer" "c" "8" ln "")
This lisp program changes...
(setq pt1 (getpoint"\n First corner "))
(setq pt2 (getcorner pt1"\n 2nd corner"))
(setq ss3 nil)
(setq ss3 (ssget "C" pt1 pt2 '((0 . "REGION")))); add all to ss set
Good morning As I can differentiate these two intersections. Step drawing so that you can see it. Thank you so much
I am trying to reset DYNMODE variable back to 0 after I exit programs that need it set to 2, and for same reason doesn't reset and stays 2. I tried unsuccessfully adding an Error function as well....
I wrote a LISP routine that will find the cumulative area of hatches and then give the area in S.F., S.Y., and AC. The code makes use of the vla-get-area function. My issue is that some hatches do...
Euclid's algorithm: tiling a rectangle (any size) with squares - Can this be done with lisp routine?
I currently have a lisp routine that creates a cross hair construction line only if it detects a 45 degree mitre line on a specific layer within its path. If I click anywhere on screen where it does...
I need a lisp file to Align either the Text or Mtext.
Thanks in advance,
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