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.
(DEFUN C:SPL2CIR ()
(SETVAR "CMDECHO" 0)
(SETQ OLDOS (GETVAR"OSMODE"))
(SETVAR "OSMODE" 0)
(IF (SETQ SS (SSGET '((0 . "SPLINE") (73 . 16)))) (PROGN
(COMMAND ".UNDO" "BE")
(SETQ I -1)
Is there anyone that can provide or create a simple Lisp that can Zoom fit rectangle without selecting its upper left corner and lower right corner, on layout tab where same size...
How do I work out TAN for trigonometry in lisp? There is a cos and sin function but no tan. Thanks
After many hours looking for a solution to my 'problem' I have been forced to sign up to a website in which there are far more skilled people than I in their programming skills. My...
I am trying to use StripMtext AutoLISP program to clean up some drawings. I have it copied into the support folder and am able to load it. However when I load it in, I get the following message:
Hi all,can anyone clarify what's the problem in this code and how can I fix it.
(setq lnam (getstring"\nEnter lay name:"))
(if ( = lnam t)
(setvar "clayer" lnam))
(if ( = lnam nil)
Hi , i want to make a list box slide (with lisp) like the attach photo. Can any show me an example how to do it ?
Can I add block to the polyline as attachment via lisp ?
I want to select all polyline then insert one block at selected polyline .
Thank for help.
I have a list containing sub-lists. I want to eliminate sub-lists as in the Test function. How to eliminate the opening and enclosing brackets together with the 'nil' form result I get....
I'm new on forum.
I search for a very simple LISP which inserts (on centre in object or bottom, no matter) text with AREA and PERIMETER from RECTANGULAR or closed LINES.
i'm looking for lips routine for 3dpolyline dimension. I hope someone will help me.
Hello everyone! I am hoping to get some help in solving a volume problem.
I have a polyline representing the bottom of a dirt pile. I know the volume that I am trying to achieve. I know the...
Our template for AutoCAD has several page setups for various different sizes. I was looking into making button macros that would automate this. So basically there would be a button, say for...
I don't know if this requires a lisp or a script solution..
I regularly work on multi-tabbed drawings.
I often encounter situations where on a tab, the extents
are much smaller than the title...
This is my clouding lisp. It's working good so far but with one minor issue. The only issue is that when I miss the selection, it says "No objects selected" per what I have set. But then it...
I had drawn projection views by manual methods. I have lot of isometric drawings; from that dwgs I need to draw 1st angle and 3rd angle views. Anybody knows how I can I rotate the isometric...
I have 300 cross section. I have to put the Existing Level and Post Level Therein.
I'm attaching the image of it..
The formula to put the Levels are : ---- (Dimension +or-...
Hi, i want load my linetypes from topo.lin file. Here is my code.
C:fen (/ A1 KLIM PER S1 S2 SCL)
(COMMAND "_layer" "_m" "fen" "_c" "140" "" "_LT" "" "C:\\topocad\\topo.lin\\fen"...
If you want to select a particular type of object on a specified position, ssGet function fails when multiple objects are overlapped in that place.
(setq ss (ssGet '(0 0) '((0 ....
Is there and routines that would put a dimension along a curvy line? I dont need the actual dimension on, just the lines following the curve with the arrows and the perp lines coming out at...
I am looking (for quite a while now) for a way to automatically dimension (aligned dimensioning) a polyline. Unfotunately i can not find any way or any LISP tool to do this for me.
I have many assemblies modeled, with the drawings done.
Now, I got a revision which requires me to change the tube diameter, but I have to "move radially" the reinforcement plates as well....
Since the analytical geometry is my weak spot (one of...) I would appreciate if someone may help me with the formula to rotate a point (P2) around another one (P1) in the vertical plan defined by...
I don't know is this possible or not. I want lisp to make wiring like attachment when I Select some items make wire.
Problem solved, thank concerns.
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–2014