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've had an unsuccesful search for what I'm looking for. Has anybody come across a macro or lisp file that will allow a user to place for example a hatch over one object and below another...
We like everyone to use the same font style, so we created the program below. However, there are a few cases MText especially, where the style and font might be in out of sink and so the font does...
I would like to ask a queation, how to copy the subentity of a block without exploading the block?
Thanks very much.
Hi everybody !
I want to get "serial number" of my hard drive by lisp. But I can't. Help me !!!
Hi all guru ,can any one help to modify this lisp to add in extra function as below:
1.Onces we load the lisp
the Unit setting will be
-Angle type Deg/Min/Sec...
At my last job they had a command or a lisp that took the exact shape of your view port and moved that same shape to the model space. This way you knew your drawing limits, so you got everything to...
I have list of 1.000.000 elements.
Now i have to check each item by each other item:
that is 1mio*1mio/2 iterations. Each time it checks if lets say item i is same as item j. If it is it should...
i work with Autocad 2004
with a lisp routin or a vba macro
how we can do an array (for example 5 raws 5 columns) but the pair columns ( columns 2and 4) on a layer
and impair columns ( columns 1,...
Here is one that I had to write today and thought I'd share.
I needed to remove all solids, color red, thickness 0.25 on layer "3D-CART-TOP" in all blocks in several drawings.
;| DELETE BLOCK...
create a room size meter & feet
I use selection sets to get all of objects like dimensions, circles, images, inserts... How does one get a selection set of all AECObjects in a drawing? Objects like windows walls doors that are...
Hello All, couple questions.
1) Am I posting to the correct forum? Is there a .Net forum here? If so, please feel free to point me there.
2) I want to make a specific viewport in a specific layout...
Does Lisp have any kind of command that will let me paste a text variable to the clipboard?
For instance, If I open up the following:
(setq R1POS (open "C:\\Demo\\Stored Text\\POS.txt" "r"))...
I am trying to entmake a block definition which includes some solid hatching, in reference to this thread:
However, I am lost as to what...
Let me start off by stating that I am no LSP expert, not even a newbie. I was hoping to find an explanation as to why the lsp code pasted in below has ceased to function. Its original function,...
Hey we are going to copy the acad dimstyle lisp and modify it but not replace it does anyone know where it is? or is it a vlx file?
I've been trying to learn more on the syntax of LISP and as I study it I find it daunting...lots of things to remember and those damn parenthesis are a real pain. But I find that when I'm puzzled...
I HAVE 50 ATTRIBUTE BLOCK ITS NAME W1 HOW CAN I CHANGE ALL ATTRIBUTE VALUES (TAG,PROMPT,DEFAULT)FOR ALL IN DRAWING ONCE .
Hello everyone, first time poster. I'm not a drafter but I do know how to use AutoCAD fairly well. We have AutoCAD 2004 here.
I'm trying to come up with a LISP routine for an item balloon with...
I work with both Tekla Structures and AutoCAD2008. When exporting drawings from TS to AutoCAD the Solid hatch is generated as Object type 'Solid'. I have used Qselect to find all solid objects...
im using the following code to get the closest point on a curve along a given vector
EndPt1 = Curve1.GetClosestPointTo(StartPt1, vector1perp, False)
But it is not getting the closest...
Sorry for all these threads, but I am just trying to fill in the gaps in my knowledge, and clear up a few things that have been "bugging" me.
I have looked at trying to work with Selection Sets in...
I have tried using the curve command:
but, when I select a curve that I have drawn (say an LWPOLYLINE), even if the ends are oSnapped when drawing, it will...
I'm wondering if anyone could write a lisp to create an arc-aligned single-line text attribute. I know almost nothing about LISP, and would really appreciate the hand.
I'm intersted in runing a lisp on a file that is closed, is this possible . can i also run a lisp on 2 drawings at a time ?
:lol: seems scrpit file is best used in this situation
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