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.
This routine is selecting Closed Polylines that have more than one text inside.
How can we do same with Mpolygon or Hatch instead of Polylines. If a polygon or Hatch entity have more than one text...
Hi Guys I came across the following routine, from https://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/336228/print-single-message/false/page/2
However, when I tried...
can you help me make a list routine that will make those?? i have a sample DWG file attached... my co worker is dealing with these and it takes a lot of time, specially we are dealing with tons of...
I just wrote this:
; Attempt for dimaligned + dimcontinue
(defun C:test ( / oldosm pt1 pt2 pt3 ang dist )
(setq oldosm (getvar 'osmode))
(setq dist (getint...
Hello . Dear friend.
I found this code from CADTutor by Marko.
I hope someone can help me add reactor for this coordinate dimension.
Drag the arrows. Coordinate data automatic updates.
I have inherited a drawing where certain objects are represented by text. Sounds odd, but the text is the "Dingbats" sort of font, where individual letters represent symbols. So,...
I've created a lisp that has the DCL file within it & I hope to use it as a template for any future lisps that would benefit from a toggle interface.
It works, sort of..
This is really two...
Hello; I am looking for a LISP allows selecting multiple polylines to extract their lengths to the attributes tag ( "length" ) blocks as fields ,
knowing that at each end of the polyline is the...
Is there an easy way to have hatch ignore certain objects or layers much like it does with dimension lines?
I have several instances of a particular block in my drawing sitting vertically on top of each other and I would like to be able to rename them sequentially based on their coordinates with...
Has anyone else noticed inaccuracies with vla-getboundingbox?
Within a lisp, I am trying to establish 2 points to make a window selection,
but the bounding box does not enclose the...
determine orientation polyline with lisp. thanks
Hey guys, first time posting so forgive (and gently correct) any lapses in forum etiquette.
So basically I'm trying to automate labeling landscape plans. Looking for a pain-free way to slap an...
I'm trying to find some key points from an object's bounding box (see the graph in the code).
; x - points to find:
The task to do is to fix leader horizontal line to fit the text located on it . The text it ios not part of a mleader.
My question is ,
Why vla-put-coordinates ,to a Leader , rotates its...
After reading this thread;
It reminded me that dimensions do not have the...
I need again yours help !!!
Could help me some one with a rutine which can delete blocks with same attribute;
thanks in advice , everytime for helping
I working on a Road digitization project. we draw polylines and when the polyline reaches the limit of autocad screen we have to use pan to drag screen and continue draw.
so again and again we...
If Selection Set have ellipse. spline , So outline is not "LWPOLYLINE" , is"region". How fix this ?
;; Outline Objects - Lee Mac
;; Attempts to generate a polyline outlining the selected...
I need help with lisp routine.
To understand what i would like to achieve, please download attached dwg file.
My finally goal is to get list that will contain following...
Is there any way to disable screen updating whilst a lisp routine is running (similar to Excel VBA)? Excel uses this...
Application.ScreenUpdating = False
In Excel this not only stops that...
Need a lisp routine to set the drawing units similar to the -dwgunits command, but need user interface with radio buttons to allow easy selection.
Any help would be appreciated.
I have a very limited knowledge of the lisp. I have several files which have all the text sizes doubled somehow. I looked up few forums and found a utility that was created by Tharwat. I have...
Today I was working on one of my several ideas, which is aligning a selection set, by picking faces:
1.Select objects to align (SS)
2.Pick Source Face
3.Pick Destination Face...
I have found lips routines that will list the blocks used in a drawing, show the number of blocks in a drawing, however, I need a lisp routine to list the xy coordinate of each block that has been...
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