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.
error: EOF after quote on input
heres my pc specs:
OS: win 7
cad: autocad 2002
I want to Break a line at a certain point - 1 line becomes 2 lines. Then label, with text, the length of the (2) two new lines. I have a labeling routine that works great on a list of lines (ssget)....
Every one. Please send me Road Cross Section Lisp Command with detail, how can i used his?
Thanks and Regards,
As my “beginner” membership state has been void (thankfully in some philosophic way :twisted:) I was forced tolearn the ABC of autolisp , so please be kind to me :D
After reading help I...
how to get x & y coords from given angle and distance.
i need a code for that
if Distance=80, Angle=45.....i want to draw line with first point A(0,0) to the next point B from given distance and...
Back to this issue again. I had asked this quetions before:
I thought I have conqured it but not. Now,...
This is my code:
(defun sub-plot (p1 p2)
(setvar "cmdecho" 0)
(command ".-plot" "y" "" "" "" "m" "" "" "" p1 p2 "" "" "" "" "" "" "" "y" "y")
I called it from command line:...
I have attached an AutoCAD 2010 file as an example of what i am about to try and explain. Please bare with me. :cry:
I can export the x/y information in itself using the ptExport.lsp routine. I...
I'm hoping someone can help out with this one. I have a LISP that opens a DCL and prompts for user input, then sets the USERI2 variable. If I comment out the "if" function, the DCL works, and the...
Hey guys. I have a LISP I wrote this morning that asks for an insertion point, grabs the layer of the object, then draws a MLEADER on an associated layer. I have it working completely, except when a...
Surprisingly, I cannot find a LISP to automatically changeall colors in a selected viewport to one color.
It’s either I see question where they are directed tosomething not related to the...
I have look at this forum, found some simular answer but not exacly like my question.
I have 21x dwg's files and each it got layouts.
Now i want extract layout name to xls, and rename all the...
Is it possible to get INSUNITS variable from an unopened drawing file.
I hope it can be done using ObjectDBX. if so please point me to the right direction.
Inspired by this thread, I thought I'd write a program to Align a Block to a Curve.
More details in the header :)
I am looking to rotate multiple text entities about their own individual insertion points to an orientation legible in plan view. This is not a simple matter of changing the angle of rotation as this...
How could I return the total number of layout labs in a given dwg with lisp?
Is it possible to do the same with Diesel?
My drawing has so many xdata application
("ACAD" "RAK" "HARMONY_HLIB" "ADE" "civil_draft" "civil_line_table" "civil_curve_table" "civil_spiral_table" "SDI_XSECTIONS" "ADCADD_ZZ" "SDSK_PMN"...
Hi all, I am currently trying to learn lisp when time allows and have not gotten very far, I have this lisp routine (see below), which allows me to select an object in this case I need to select the...
I feel a bit of a fraud as this is the sort of thing I should be able to myself however I'm lazy/busy today so wonder if somebody could do it for me/has something already.
I would like a LISP or...
When we receive drawings from architects,we then only change the colour of thier layers so that ours stand out more.As we use colour dependant plot styles the best colour for architectual xrefs is...
I'm not expecting an answer here but maybe somebody would like to comment.
(This is partly LISP, partly script.)
I have a script file to print lots of drawings. This works well but I always...
Most of our drawings have multiple Lay-out Tabs each has its own drawing number.
I want to all export these layouts each to a separate file, i tried using EXPORTLAYOUT command but an error...
Hey guys, as the title suggests, I need to restrict access to particular lisps we are testing for use across the office however, during this "testing" phase only certain users are permitted to run...
zoom problem can anyone know how is that create like attachment
What is the difference between
'symbol and "myName" when used in LISP routines?I always use the quoted version but I see the 'version more often used in samples. Are they interchangable?
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