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. ...
Hi I made a macro back in the days of customizing my buttons. which set the layer, promted you to make a rectangle, promted you to select the triangle to convert it a rev cloud (which i may be...
I wrote this a few days ago, following a request from one of the members on here, but didn't quite perfect it. The program will operate in much the same way at the native Burst command, but should...
Hi guys, How Can I select text by the name? e.g. I have 100 texts in my drawing ( apple, banana, orange and grape) All the texts have the same properties, height, width, layer, color and etc....
Hi Folks, First time here and I have read all forums about lisp, block attributes, csv and other editing. By virtue of working in many different companies, I have come across an 'update' lisp...
Guys Here i am Posting a Routine to erase Object with undo option i got problem here after erasing any object if i press undo .. everything is going back i apologize for my poor English ...
Regards, Does anyone know how to calculate points O1, O2, O3, O4 knowing coordinates P1, P2, P3, P4 and distances d1 , d2 , d3 ? It's actually a section of pipe with different...
Hey guys, I found this thread on the Audodesk forums the other day…http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Save-copy-of-AutoCAD-Dwg-file-using-macro/td-p/3574830 And...
Hi, Wondering if someone could help me out with some code advice. I need to add new attributes into existing dynamic blocks. I know the block name I just want to automatically add attributes so...
Hey guys, I have a need to explode all ORDINATE dimensions (X and Y) in a DWG. I thought this would be simple enough but I cannot get the selection set filter list to work. My code is: ...
Hi guys! Im stuck with this boring routine of reading dimension values and typing them in Excel columns for furtegr calculations. My dimenison are alinged in one horizontal line (see picture; blue...
Hi there, Which of the following expressions are executed faster in repeated use (while, repeat, foreach): (setq li0 '(0 . "TEXT") li40 (cons 40 1)) 1. (entmake (list li0 ... li40) )...
I try to write a code to get the arc length between any two points on it. But my answer is wrong . why ( defun arclength() (setq ss (car (entsel "\nSelect arc:"))) (setq x_object...
Hi there, how to calculate points of intersection (i1, i2, i3, ...), including some vertical lines and polyline, as in the image below: Lines 1i1, 2i2, 3i3 does not exist . ; j =...
Hi All Experts, i have one challanging job to do please help me. i want to draw one circle with dimension in meter + some more circle of 1/2 dia of same circle + 1/4 dia of same + 1/3 dia of...
IF Sin A = B/C How can I find out the A in radians using LISP CODES
My drawing has MTEXT entities in it. A call to (ssget "_X" '((-4 . "<OR") (0 . "MTEXT") (-4 . ">OR"))) returns nil.
This may be a crazy question...but here goes. I create a simple linetype based hatch pattern. I explode it in to individual lines and label each line with text showing the length. My current LISP...
Hi Im very exited to pronounce my first project in Autolisp. I know it much more than I can chew, but the reasonfor my excitement is that this program can save my hours or even days in my...
(setq ent (ssget)) (setq arc (entlast)) ;object entith (setq Object (vlax-Ename->Vla-Object arc))How can I find out the radius of the arc
hi freinds may be some one think this is very simple question but please check if i creat polyline using this lisp shifting ucs to 3point and sequence of points of ucs is clockwise the polyline...
I created a routine to insert a block and load defined attribute values from a dialog I created. That works great. I now need to create an edit routine. I have been reading several great threads...
Hi there, I set the text style for a table with expression: (vla-setTextStyle vmytab (+ acDataRow acHeaderRow acTitleRow) "Arial") But in AutoCAD 2010 - 2012, the last two rows are...
I am trying to move specific block names to specific layers. I can get the block and change it, but it only works in the current tab. How do I select all instances of the block name, to change it...
hi all, i have a attribute block which has two tag Tag 1 = X Tag 2 = Y i am using following code for getting attribute values, but this code is only giving 1 attribute value:- (setq obj...
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.
Forum Rules