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 found this vba code an it works perfekt when i can use the vba. but in the office there is vba restricted and so i would like to use this in a lisp:
im trying to make a rebar with a dimenson.
first i create the polyline , and right after this i want to create a dim line.
i've tryied to use the "objet" mode but it wont work.
I am having a problem/difficulty with the autolisp that I made for my dcl. I know very little about autolisp and I don’t know how the make what I want work through autolisp and could use...
Is any way to get view name in current drawing ?
top ,bottom,left,reght ,front , etc.
This code is change the object form left view to top view.
I want auto judge the current view...
Due to some of our drafting guidelines, we need to strike through Text, Mtext, Leaders, Multileaders, Dimensions. The only issue is the strike through needs to be on a different layer.Therefore we...
I have a list that essentially consists of lists of points. I need to compare the lists of points (with fuzz that can be 2’, but fractions of an inch are all they vary by) and record all the ones...
I have a drawing that contains tables with data describing properties of the pieces(PCMARK, QTY, L, W, WEIGHT). At the beginning we release this tables to be used for estimating...
I'm currently in the process of setting up some customisations for my AutoCAD profile. At present I have set up an Excel sheet which makes titleblock alterations through a Lee Mac lisp...
Have been trying to make s lisp code for a simple task but turned out that it might not be so easy. I found lots of information but not this one.
So i'm asking if this is even possible...
Hello, I am searching for a lisp that can export the lengths of all selected polylines and export them to either Excel or an AutoCad table.
I have found and tested around 20 lisps but so far...
I currently have a lisp routine that will put the radius of fillet at what the user inputs for the command. For example f0 is:
(defun c:f0 ()
(setvar "FilletRad" 0)
I have developed few products over the years starting from version 2 in AutoLISP that I have used for the design of Roads, Sewerage and Drainage in civil engineering. I would like to...
Are there a lisp can match font from text/mtext to another one (no need change style rotation or height)????
in another word match properties lisp can change just font of text.
I have the following lisp which displays the coordinates of a selected point with a leader:
(defun c:xy ()
(setq pt (getpoint " Pick Point: "))
(setq x (rtos (car pt)))
Hi i want to ask something. Is it possible to add same dimensions or texts in my model space but this thing be hiden in viewport window? I don't want to freeze or turn off the layer. I want to see...
i want to get linear distances between lines as in image on special layer
and if distance exceed edge lines rotate it to vertical direction
as in image
any help will be appreciated
I find this lisp that frozen layers in viewports
;;; vpf.lsp Viewport Layer Freeze
I wonder if this is even possible?
I'd like to crate an if statement to go inside an existing lisp that makes a decision based on entity type.
Something along the lines of:
(if (equal (0 ....
I have a dcl and a lisp that list all text and mtext in a drawing and I want to delete selected texts on the list by Delete button on DCL but I need to resolve(if possible):
1) My first goal to...
I'm trying to build a string using a specified prefix (user defined variable) and the file name. I then want to set the string as a variable and pass it to an attribute as the new value. Here is a...
Do you have a lisp to export drawing object to image jpg
you can see the detail below:
I'm working on pack of lisp routines not only for my use.
I would like to make my own file with aliases definition for lisps (simmilar to pgp file)
e.g. I have lisp functions defined as...
SWEEP-> MOde->SUrface In my code I need set SWEEP command to Surface mode.
But I could not find any system variable to set this.
Please can you show me how to write lisp code to set this.
how can i delete all entites which are members in a selection set?
(setq ss (ssget '((0 . "DIMENSION") (3 . "AR-DS-50"))))
;_ delete all ss members off the model space
i have a polyline of 10,000m, and i want to plot one attribute block on that on the interval of every 1000m. But the block should be plot in incremental number
DC-1 on 1000m...
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