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 text entity in the model-space.
Let's assume that I can retrieve the coordinates of its bounding box perfectly.
Now, I have a certain rectangle with a certain size and I wish...
I've searched for this because I thought I saw it here somewhere before. How can add a dimension using LISP and force it to be vertical or horizontal?
I made a lisp for drawing something with entmake. This lisp is working perfect in World UCS, i want this lisp to work in any other UCS. Somebody help me? I cannot figure out how to use...
I am putting together a set of lisps and a .dll to give out to our superintendents who are basically CAD illiterate. I currently have them loaded through acaddoc.lsp and acad.lsp.
Dear friends. I needed a lisp to read a excel file with 3 columns: a name, a North coordinate and a East coordinate, and put into autocad the texts in the respective coordinates but with the...
need your help again. I have a block and I need to change all the entities inside the block by layer and or by specific color. I was thinking of "nentselp" but that will just just give...
I want to learn programming for autocad. I want to extend autocad tools.
Where should i begin?
I'm using the code below to measure and trace a path and it works.
I normally use it to measure points along paths that has the same starting point.
When I measure the the successive paths ,...
trying to rename a single block with out having to explode and re-block it, in mechainical it promped to save as a new block with a new base point when clicking save refence edit, when using 08 and...
Long time reader, seldom if ever poster. I think I've got a good one this time and can't find a solution.
I'm seeking to find and replace strings in hundreds of xref paths. It's not...
I need to convert a list:
(51 41 83 10 60 32 46 84)
((51 41)(83 10)(60 32)(46 84))
Is it normal that when you have a dialog with several radio buttons and edit boxes, and have a button to do a getpoint the whole dialog is reset after you click to get point?
iam using this lisp to number my blcoks. but the lisp creates the number as a text, i want a lisp that'll create the number inside the block in an attribute "number".
is it possible?
I have been using this Lisp (attached) before without any dialog box appearing. I have a lot of lisp that i used without the dialog box appearing.
I understand that i can edit the LISP and put...
I'm still messing with this automated project and one of the things the users have asked me is this question. And remember, there is no user input allowed. If this is possible, it needs to be done...
My problem, i'm drawing electric plans and need to update in many drawings the attributes of the outlet blocks. These outlet blocks have attributes for there number, mounting hight, type...
I was wondering if there is any lisp program to move attribute to Z-coordinate.
I have attribute (block) wich have number as "TOČKA" and Z coordinate like "H". So I need this attribute...
How can we Draw a point along selected polyline, given length from beginning of this polyline using lisp or visual basic?
Hello. I need get two list:
1º-. I have a list:
(setq lista1 '((10 20) (30 40) (25 63) (78 45) (30 40) (12 36) (25 63) (33 70)))
Remove the points that are repeated in a list.
What is failing to not work properly?:oops:
;;writing point with z value
(setvar "PDMODE" 3)
(setq pt (getpoint "\nPoint:"))
(setq zv (getdist "\nZ Value:"))
(setq x (car pt))...
I have developed a simple spreadsheet for the office listing lisp routines that I have gathered over time that I think are really useful, in the spreadsheet there is columns for filename,...
I joined a company that had very little in the way of cad standards and lisp routines. I took their computers and pointed cad to a common folder location on our servers. When a drafter or engineer...
I'm stuck again trying to recreate a lisp & dcl that someone else made where I work?
for learning purpose! I don't have the source code so its a perfect example to start with from scratch.
This routine crashes if the layer "electplan" already exists. How do I ad an if or cond statement.
The routine will take a line and convert it to a pline.
(defun c:EPL2 (/ taa taa1 taa2 ds)...
I think I know I need the "while" but not sure where to put it and what I am missing for it to work. I tried a few places but nothing seems to be right. I looked at all the other posts and sites. I...
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–2014