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 needed a code that insert a point at the start and at the end of each line found in the draw.
so I did this:
(defun POINTLINES ( / sel i ini e fin)
;SELECTION ALL THE LINES IN THE DRAWING...
I am looking for a lisp routine that would.
1. Get the current 3-D UCS and save it for future.
2. Change to UCS world
3. Save the drawing to the default file with UCS world.
3. Go back to...
I need your help.
Right now, I am required to subtract solid made by revolve command (SS2), from the planar surface (SS1).
Please somebody help me to handle these.
I'm stuck with AutoCAD R14 due to driver for our plotter. And trying come up with a more practical way of creating .plt files using 2k version (or even possibly newer) through R14 without...
Searching for read and write to ini file… and really don’t know how to begin…
Maybe someone can help me? :oops:
What I have :
1 x Button1 for Save
1 x Button2 for Delete or Reset...
Back with a situation, I have lots of points / blocks on which I have to place a rectangle,
I have a rectangle I pick the rectangle and the mid of one of the sides of the rectangle depending...
I'm wondering how to add a bit of code that will determine if the units of a metric drawing is metres or millimetres and then add the appropriate scale value.
The code snippet I have is...
I have an assignment involving around 200 drawings.
Any LISP or Scripts that I can use to update a text attribute value. They all have the same tag name & value to it.
They are within a...
I have searched and searched for this, but can't find a solution. I am using the x64 version of AutoCad 2009. Running this in a 32 bit version worked fine.
(This lisp will allow you to select...
I am looking for a lisp routine that will add text to the front or back of text or to an attributed block style text. Is there a good one out there? Also, if I find one, how do I copy the lisp file...
When I export polygons from arcgis to autocad, I’m loosing all my hatches, from differents layers, I’ve only get closed polylines !
Question : is it possible to make a lisp to create...
Hello Guys... can some one help me to build the following requirements in the drawing.. this is basically for qc purpose....I am beginner in this field
Should list if there are any splines,...
How can i write a text integer more than 32767 using lisp.
when i type 123456 the message is "Requires an integer between -32768 and 32767"
I want to select only polylines in the layer "VP" in a region.
Is it possibile using ssget?
I've tried with:
(ssget "_C" pnt_A pnt_B '((0 . "LWPOLYLINE") (-4 . "=") (8 ....
Sir i have attached a sample drawing and two lisp file how to perform that job pls help me
After several years in autocad ive never really got into lisps all that much .
However I realise I should probably make the first steps into that direction.
As such I seek assistance !!
this excel+lisp gives us the opportunity to draw road profile for bothe ground levels and design levels in two steps -- one for ground " natural "" and 2nd for design levels.
* either to...
I would like to know if anyone knows of a lisp that will do this.
1. Copy the layer of a selected object (4"-HG-BC38-9100)
2. Add a suffix to the end of that layer (-UG)
3. Move only the...
1. calculate total red pline area
2. total red pline area / black pline area
How can I calculate area by lisp?
I've developed a little program for autocad and compiled an installer with innosetup.
I need to add a custom support path for make it works but i don't know how to do it in the...
I have a large number of drawings that are using the following scale:
Name: Metres 1:500 ..... Scale: 1=0.5
But some of the xrefs use the following
Name: Metres 1:500 ..... Scale: 2=1
Is there and routines that would put a dimension along a curvy line? I dont need the actual dimension on, just the lines following the curve with the arrows and the perp lines coming out at...
I've tried to define an attribute with LockPosition on through dxf code and does not work.
(entMake '((0 . "BLOCK") (2 . "PunctT") (70 . 2) (8 . "0") (10 0 0 0) (6 . "ByLayer") (62 ....
I try to write a lisp to deal with images I attach to a drawing. The program clips them with a polygonal contour. Next it rotates the images and it should move them to match –like a...
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