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.
By the fellowing lispI get the next error:
error: bad argument type: 2D/3D point: nil
I put the complete file/tekst below..
Does anyone know what is going wrong?
YESTERDAY it worked...
How would I filter my list so that only pc3 files and "none" show
ie without listing system printers?
(setq ad (vla-get-activedocument (vlax-get-acad-object)))
hi, i have a list of layers in excel format, i want to import it to autocad, will this be possible by using lisp routine? your help is much appreciated.
the courage dog:cry:
Any LISP please to convert the CAD table coordinates X, Y, Z into EXCEL?
Almost there with what I am trying to achieve.
I would like to assign all layout tabs with the same pc3 picked by the user. How would that be done? Is there a function floating around that does...
We use a large number of blocks, and have created some blocks that are groups of these blocks for specific applications. Problem is, I can't seem to update the attributes on the nested blocks...
thx every one
delete this quriy
As proof of concept for a work related task I put together a quick and dirty internet news reader
Currently set for reddit.com (Hope this isn't break ToA). Basically It creates a list...
Good day, is there some of route that will off on that selected a center line and offset side by side and atomatically divided according to distance to be offset to be exact the distance...
I have made an Autolisp file to draw elbow in 90 degree but this one in
45 degrees make me crazy with some funtions that could not reach its directed location.
I hope that...
Anyone intrested in the collatz conjuncture (Half or triple plus one) may enjoy this
(defun c:colCountMap( / col ulmit ms)
First post, but straight to it!
When using the following code, the mtext editor is suppressed, and instead the text entry is moved to the command line (see screenshot). I've noticed...
I've built a Toolpalette wich I made for (custom) drawingtools and also library actions... Working with it shows me that my drawingtools not always visible.. I want to put them on my...
i've been searching for a while not but cannot find one. I need to change both the linetypes and colours of lots of blocks to BYLAYER. I have found a lisp routine to do the colour here...
Please correct the code at last line to update the width by "(vlax-put-property lay 'width (* 0.75 width_old) )".
Currently I am working on set of drawings for which I need to insert DXF files. These DXF files contain BOM extracted from our in house software. I usually prepare the drawings and insert the DXF...
I have a block that contains three attributes representing width, length, and sq. footage for windows. I have written a simple code to insert the block into a drawing, and repeat as long as the user...
Today I encountered a big problem: one of the drawings that I have been working on lately, and has grown to be a big project with many xrefs, seemed to be damaged. The drawing didn't open allthough...
A 10min Google search has not been able to provide me with a satisfactory explanation of what the purpose of the CMDECHO variable is for.
From AutoCAD help:
I have created a selection set in which i want only Text and Block Reference to be included to retreive information out of it. I've been using the following code for the same
pls somebody could help me to find a solution to my issue ?
I found the below code,
Dim Block As AcadBlockReference
Dim ReturnObj As AcadObject
Well some I got the question that there could be renumbering the parts...
Okey renumbering drawing names are easy but the blocks are the real problem.
I have 3 views front view side view and top...
Drew two 8" elbows with a piece of connecting duct.
Tried the attached interesting lisp and thought I would post it.
I'll have to play a bit with it for future use. :wink:
Dear All That Lisp Realy I Need It
I Need Lisp Make Counter For Blocks By Name And Get The Result In Table With Current Text Style
Thank's For All
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–2016