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 m having an issue with my lisp code for a DCL dialog box I made. It seems my string is too long for action_tile "accept" and I m getting error "bad argument type: lselsetp nil". The problem is,...
Hello, could someone make a .lsp for calculating demand amps similar to these two Lisps for adding numbers, and calculating phase balance percentage(%)?
They work by selecting a value, hitting...
In elevation drawings, the title block (paperspace) is in landscape. The viewport is rotated 90 degree to optimize the paper size.
However this makes the viewing of the elevation difficult.
How compare 2 obj ?
if the same ,return T ,
not same , return nil
I have hundreds of DWGs I need to pdf, is there a LISP that can batch PDF them?
Is there a way to extract text to a variable that is embeded in a block by picking the text in a block insert.
I am not interest in extracting attributes. I am looking for something
Okay, here's the deal. I need a LISP that calculates phase balance which is basically percent error between two numbers in the following form. However, we need it to take a selection and find the...
How Highlighting a Selection Set ?
I would like to check if a Drive exists on a computer.
I'm writing a lisp that will setup all support paths automatically. The user will be prompted as to whether they want the support paths...
I'm building a code that does the following:
- When i attach 'something' it places it on the layer XREF_TEST.
- The current layer stays active.
- When my UCS is not WCS, it asks me if...
I use a very useful LISP by Pedro Ferreira called PMSFptwtxt which places a 3D point at the insertion point of a text string. It's great for processing point surveys which have been flattened, thus...
I am getting error: bad argument type: lentityp by running following code:
(defun ATR ( handSTR)
(if (HANDENT handSTR)
(setq ss1 (ssadd handSTR))
Based on the Grsnap function * Lee Mac demonstrated i want to create a better way work with the pface command. Captured this idea in a little demo.
i have +100 files which represents some targets (easting , northing) , i need to merge them into a unique file.
IS there a quick way with a LISP to do this?
im attaching one...
I need one more help. Please anyone help me.in my dwg file have lots of Mtext like this.
i need to...
I don't know if I should direct this question to this forum,but it would be a huge helping for me :
I have a set of drawing in a folder and I want to print them all,
I have all the...
Is there a way to save Screen Style configuration? If I'm calling it the wrong thing I'm talking about Font style, Color of background and foreground. Those things?
Also how can I go back to...
How to Remove Excel Sheet Filter from AutoLISP
if 'xlsheet' is Excel Sheet Handle, then I want to execute :
How to do that in AutoLisp.
I've been using this error handler in lisps where I modify system variables for a while now. I can't remember where I found this code below.
I work for a society that makes voided slabs. Circles represent voids in the slab.
I was looking for a fast way to quote these circles.
Currently I have a lisp that convert...
My lisp not save duplicate files.
Order once I can not order again.
I want to know how to write code to change name automatically. Multi-page order
Please help me thank you :cry::cry::cry:
Im strugelling with working with the UCS functions.
I want to change my ucs to a given location, but, just like the refular UCS command, i want it to show as 'unnamed'. When i change...
The Selectsimilar is a great command, but I wonder if it is possible to somehow select objects with similar geometry. (not based on layer or color or etc...)
For instance: You...
I am creating blocks witch run from tag_1 to tag_6 and then from tag_7 to tag_12 for the next dwg and so on and takes time renaming all the tags for each block. So I like the create my tag_1 to...
I need to find out Nearest point on extened Line / poly line from a given point .
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–2017