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 need some lisp or vba app so that i can fill in autocad custom properties values from an xml file. I am setting up a dwt file to use fields based on that custom properties. Thanks
I have this lisp routine that our engineers use. I have tweaked it in the past but I cannot identify why it fails now. I would be grateful if someone with more skill than I have help me to identify...
Is there a way to create a lips program or a vba macro to offset a line on both sides, keep the source, then trim all the content between the two offset lines and delete them.
Or is there a way to...
I am trying to writing a small lisp to do following thing between two polylines:
select first polyline
divide it in n parts -> get computed points.
From each point, draw a segments...
Is there a command or lisp routine out there to change a selection of dtext numbers by a given value?
I often deal with a row of different numbers that I need to add or subtract the same value from.
Anyone have something, or could point me to something that will copy all attribute values from one block to another, keeping in mind that the tags are the same?
I have the Dotsoft ToolPac which...
i wanna write code to do things based on 2 opposite (rectangular) vertices along a polyline. if you see the attach image , i want to isolate vertex 1 and 10, what is the common definition both...
please help me any one......
i want to check features in exact location of 2 drawing files, for that i need a tool to zoom some area in one drawing as it is same location i want to zoom in another...
I HAVE THIS LINES IN MY ACAD.LSP FILE
(setvar "modemacro" "WELCOME MR MAN")
(setvar "CMDECHO" 0)
(command "pdmode" 1)
(command "UCSICON" "N")
(command "-osnap" "cen,end,nea,mid,int,per")...
Need Lisp to insert a drawing which has attributes as block and input attributes also by lisp .
I have the following code to draw a fixed-width rectangle with the length of a given line:
(command "RECTANGLE" (list (car start) (- (cadr start) 0.33))
Need your help again on a simple conditional statement.
I need to pick a block on a xref.
Block must have an attribute/s.
Entities inside of the block have 2 layers which is...
if i use a polyline to draw a rectangle i see in the properties 5 points instead of 4, why? when programming it can cuz problems.
i found a way to isolate them, that is by distance and angle.
im tring to find the columns in the stracture based on thier vertices relative location.
this code scan polylines's vertices...
I use vb.net. I work in 2D.
I have a certain point (Point3D). I have a certain polyline. I need to draw a perpendicular line from the point to the polyline. Any ideas on how to do that??
i have a polyline 1254.85 meters ; i want insert point on polyline intervals 15 meters and 15 meters .
how can i do that is simple ?
this polyline is alignment road .
(setq hh;current text hight
(assoc 40; text hight of current text style
(entget (tblobjname "STYLE" (getvar "TEXTSTYLE")))
))Above code is ok.But following not working.
im trying to select several polylines, all their vertices coordinates to a list. for some reason the selection set show correctly the number of members but i cant call them one by one with...
Looking to find the system variable that controls the following.
On the command line I type
(/ 5.0 0.02)
The return doesn't print to the command line. If I do the same on the...
I have a number of drawings with levels on (single line and multitext) which are currently set to a local datum and I need to amend all to ordnance datum. To help reduce the time involved to do this...
I've searched about this issue but I couldn't find anything useful to me.
I'm trying to make something like this:
I have a square inside my Model and a square ViewPort inside my Layout. I...
I have a little problem with the following lisp code ...
When the lisp run ask me to gine the scale
Drawing scale factor 1= 1:100, 2 = 1:200, 3 = 1:500
1. when i choose 1 (scale 1:100) the...
I've just won a fabulous project with a very well known supermarket producing phasing drawings for their new store fit-outs;:D
I receive their drawings in DWG format with as you...
I need to know if it's possible to draw a beadboard pattern with lisp routine (You can quickly Google the name to see what I mean). The large pieces (let's call it "A") are always the same...
I have an exercise this morning I'm working on and thought why not make use of the time to learn more about mapcar/lambda.
I have four variables:
If any of these variables contains the...
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