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.
Have been using the below code with a marco button to open up the window explorer folder of the drawing location.
^C^C(startapp "Explorer" (strcat "/N,/E," (getvar "DWGPREFIX")))I will search...
Is there any way to select by lisp distant objects, without user intervention.
Maybe by the larger coordinates in all 4 quadrants?
I have been trying to implement check boxes in dcl. It appears whether I select or not the return value from the toggle is same (the 0 value). I give below the code and the dialog...
Is it possible make a imagefile, of a block that i select?
I know about the JPGOUT command, but this makes a rectangular image of the whole screen.
I want a SQUARE image, of the...
I found this line of a fillet command routine, which allows you to run the fillet command, press enter or spacebar and it runs again, giving you the option to use the previous radius or change to a...
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...
Hi, I have recently started using LISP codes. Here is what I need to do using LISP routine in a existing drawing where title block is in Model space.
1. Select all
3. Specify base...
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.
I have been using attached lisp for quite some time and it does a great job for what it has been made to do (Thanks to the creator of the lisp).
I need to add few more cells to the...
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,...
I have hundreds of DWGs I need to pdf, is there a LISP that can batch PDF them?
How compare 2 obj ?
if the same ,return T ,
not same , return nil
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.
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