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.
This might be best achieved in .NET but I will put it out there in any case.
Deleting superfluous page setups and importing or setting a named page setup across multiple drawings through...
I have a lisp file the inserts lot numbers in ascending order. My problem is that this lisp is not applicable in numbering sublots, because for sublots, lot numbering will be alphabetical. For...
can someone help me with a lisp routine that inserts circles at every intersection of a polyline/series of line including its endpoint. thank you very much in advance. :)
I need help of a lisp program that will change the z factor elevation. also a lisp that will add them incramentally
I choose the LWPOLYLINE using a ENTSEL function.
(setq cor (vlax-get (vlax-ename->vla-object (car (entsel))) 'coordinates))
'(1x 1y 2x 2y 3x 3y ...)
How to get a...
In an acad_table I have to put an: angle_value + degree sign
the angle value is a real number with 0 or 1 decimal digit.
How can I get:
if the real number has 1 digit, (strcat (rtos ...
AutoCAD 2000 has a command pljoin that basically does the same thing as pedit -> join
It works fine when typed in command line.
When I try execute it in lisp with:
I found a lisp to remove extension line of dimension, is it possible to remove also the arrow? I found the variable DIMBLK1 or DIMBLK2 but I doesnt found the way to add that on the lisp.
Any LISP or quick method to "copy" all layers from 100+ drawings to a single drawing?
Not necessary to have any block or enity in that single drawing. Just purely layers only
I'm currently working on a large scale map. The map I've purchased contains building areas as hatching but no boundary outline (to my shock). The map is laid out in tiles which has meant...
i've been searching, but i haven't had any luck. Does anyone know a routine that will move objects to a new layer based on their color?
i have a drawing where everything was drawn on layer 0 and...
I am looking for a lisp code that can execute 3 changes to variable in all the dimension styles namely:
1. Dimension Lines - Color set to 52
2. Extension Lines - Color set to 52
is there a way to draw lines connected to each other in one straight line. which would be drawn from the lengths of segments between intersection of polyline ?
i attached the situation.jpg...
I want to create a Table on a certain Layout chosen by user
With a getstring I get the user input.
How can I loop through the layouts and if the Layout (name) not exist,
get a new user...
I'm trying to get the four corners of a rectangle in modelspace set to variables and I'm having a hard time with it.
I'm able to get the four corners into a list, but I'm having a...
I am looking for a lisp file that can do following:
After giving command "fildel" it should scan the drawing for blocks of a certain name ie. "titleblock". When it has done so it should prompt...
Am I missing something here? I have an original code that I would want to make it user choice based, but it seems it does not work as intended when conditions are used.
So original code is as:
I am trying to write a lisp to draw rectangle from center point
I use this lisp for giving the scale to all my lisp codes
( DEFUN C:SETSC ()
(COMMAND "_PDMODE" "32"); point style
Hi. I don't know how to explain what i am looking for.Please look the *.dwg file i have intstractions there.
My name is George and I am new to this forum. My Autocad knoweldge is limited and I need your help. I have a road project and I need to measure services along the length of the road. The...
I need a lisp to draw a Rectangle with in the 3 following inputs.
These are the inputs,
1.First center point of Rectangle.
2.Second center point of Rectangle.
3.Width of Rectangle.
I have a program I've been working on since early January. I've moved the "C:defun" exposing all the subroutines. Here's the first few lines of a sub: (Sorry if I break any etiquette, and sorry...
I'm looking for an automatic way to split a .dwg containing many layers to many .dwg containing only one layer (each layer should be saved separately in a new file using layer name for the...
File. You can load a file with the extension txt, sdr and csv
Delimiter. Choosing which is the delimiter data available at expansion halyard txt.
Row selection. If you tick the checkbox, you will...
I am creating a LISP code which creates BLOCKS with ENTMAKE, but i'm stuck.
How do I get this code efficient?:
If the Block not exists: Create it with Name X-1
And If the the Block exist...
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