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.
Can I use FLATSHOT in Autolisp code?
I wrote this code:
(defun C:spring1 ()
(command "._helix" "0,0" "2" "2" "turns" "7" "10")
Hey guys, I'm not sure if there is a way to do this, but I'm trying to create an automation program that runs "-eattext" from the command line and I've ran into a few problems with this:
I would like to make a "Multiple" kind of command that would be continuously asking user to "Pick object", change it and ask for another one. Until user would hit "Enter" or "Space" (or esc of...
I implemented some code to save the list of all XRefs in a drawing, and I need to know which XRefs have been added/removed when closing that same drawing.
To do this, I tried catching both...
I did try to search the forum before posting, but since I'm not even sure what I'm looking for I gave up on that. Ok, so I'm playing around with lisps. i have multiple setq lines that are using...
Where I work, we have LISP file that was used in Autocad R12..
It's used to name a closed polyline, and insert text within that polyline.
I'm trying to use it in AutoCAD 2007, but can't seem to...
If i select block's attribut using nentsel the function returns atribute's entity name as a first element of returned list.
How would I then get the name of parent entity - that is the name of the...
I have the Autodesk Civil 3D 2008. When using the AutoCAD Classic the "Image" menu disappears and I've tried just about everything. I used "appload" and loaded the arx file. I used...
As my script resizes blocks, all the values remain the same size. If I explode a block then the tags are notably resized. Now I can get to the attribues using entnext or nentsel but I'm struggling to...
My very first thread here... I read this forum for a long time and it's been really (really) helpfull.
But I just can't seem to figure out my next problem:
When I insert a block...
Its me again... :) (aCad 2007)
I am trying to use VBA to draw a line with a text block and am looking for the best way to do that.
I am using:
Dim obj As AcadLine
Set obj =...
i am very new to lisps
i only started looking at them today
and i am wondering how to use the last selected point
so i draw a line which is simple but how do i select one more...
Is there a way in Lisp to figure out the active Profile. We use several different profiles for each client, and of course, they all do things differently. I need to be able to figure out which...
How do you change the rotation angle of the dimension text? Here is my lisp routine:
(defun C:ILL ()
(command "-dimstyle" "r"...
Could please anyone know how to connect/run/load this proggram with auto cad 2006 or 2008
1 using Autodesk.AutoCAD.DatabaseServices;
2 using Autodesk.AutoCAD.Runtime;
Does anyone nows the command to redraw in VBA.
I can't find it.
Regards and thanks!!!
I am a new user on Autocad and this fortum.
Have run Microstation before and this is very new for me.
I got a problem.
I have more then >100 dwg files there i need too increase postions...
I've got a block that's used for titleblock information with attributes including drawing title, date, drawn by, checked by, etc. Is there a macro or a lisp routine that can be used to automatically...
hi, I want to add Cursor like Autocad's Match Property's "Paint Brush" Cursor in my lisp file. Have any idea ??
Hey i threw together this simple lisp routine that just changes the color of you specific layer ex. LAYER=STEEL COLOR=YELLOW it will change it to LAYER=STEEL COLOR=RED or COLOR=COLOR 10. But here is...
(setvar "cmdecho" 0)
(setq newht (getreal "\n Enter new text height; "))
(setq ss1 (ssget))
(setq name (ssname ss1 0))
(setq ent (entget name))
(setq oldlist (assoc 40...
At the moment I have a string of text to represent a wire TB - K201/1.0mm/GY or K201/1.0mm/GY - TB dependant on which side of equipment it's attached to. I need to extract the K201 (wire No.) part to...
How Change Line Length Depend On Attribute Value Change?
By Any Way Lisp Or Vba
Can VBA be used move a group of all entities a given layer in a drawing (Say e1) to
layer 0 then delete e1? Can that be done? If this can be done I am thinking about
putting this in a batch...
Im looking for a lisp routine that changes oblique dims text rotation. The text defaults sets it to read perpendicular to the line. I would like it to be read at a 90 degree for up and...
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