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.
بسم الله الرحمن الرحيم
الحمد لله رب العالمين ، و الصلاة و السلام على أشرف المرسلين ، أشهد أن لا إله إلا الله ، و أن محمداً رسول الله ، و أن عيسى المسيح عبد الله و رسوله و كلمته ألقاها إلى مريم ،، و...
Hello Cad Tutor Good Moring
I Need Clarification about VLA-ADDREGION FUntion
please tel me which object i must select
I am working on urban planning i have a big project with huge numbers of plots and i need a lisp for numbering a closed plots which t draw it by lines and extract the area with the same number to a...
I'm trying to make a watermark visible when the "Approved" attribute in the titleblock is blank and invisible when the attribute has a value. I want the logic to be:
=(If (isblank (attrib)),"In...
I've made a circle and I would like to know how to get these 4 points.
I'm almost sure that it's going to use angle stuff, for 90º, 180º, 270º and 360º.
But I have no idea how to make this code...
I want to add in my lisp to check for a layer in the drawing before the lisp runs. If there cont. if not there maybe pop a box or in the command line say the layer is missing then end the lisp. I...
i m coding a lisp, which is as follows:_
(defun c:1 (/ bpt cpt sbpt bppt kpd pt)
(setq bpt (getpoint "\nPick 0.0 KP: "))
(While (setq cpt (getpoint factp "\nPick KP point: ")
can any one help to draw 3dpolyline with enterval(x) getting elevation (z value)
from(y value of 2d polyline minus y value of datum value)
please see attached drawing for...
Anybody can make a lisp program: Move objects with a base point from Mid between two points, then move and paste to Mid between two points.
Is there any way to run a non-modal form DCL.
When executing the DCL, must have access to DWG that is in the background.
First off, sorry for bringing this up again. But I'm making a last ditch effort to try and make something happen with hatch using LISP. And as many of you will recall, this is part of a totally...
Using LISP I can set the Tool Palettes File Locations using vla-put-ToolPalettePath but I cannot find a way (without putting the value directly into the Registry) to set the Authoring...
I create a rectangle with the rec command, ok. It's a LWPOLYLINE.
So, I need to get the 4 cornerpoints.
I try to do this:
(setq retangulo (entget(car(entsel))))
But I just can get this first...
I want to layiso layers.
What is the command? I don'twant to use mouse to sellect the layer.
I am looking for a way to have a block with couple of attributes (like the one attached here) but when inserted in the drawing it can be moved without leaving the insertion point (i.e. act...
I tried to get the following LISP routine to run. However, I was trying to locate the error but without success and I would like that someone can help me please:
;TIP1046.LSP: CLR.LSP Select by...
Could some one explain me about algorithm for find open tee, open cross or corner joint to edit multiline using AutoLISP.
Sample drawing is attached.
This is my first post here and I am fairly new to autolisp so please be patient with me.
At the company where I work we are supposed to save files regulary in a folder called modell,...
i create formula by field command i need to use some attribute value on that formula but it not able to read.
I am thinking of starting a new project where one could create a spline, but a spline that would have arrows at standard intervals.
The arrows will be showing the direction of water...
Is there a lisp do this job
To select the text (and Mtext too) and but each string in a single line and but next to it the count of that string
I have this text in a drawing...
Hello to all of you, I come to you because I need help with a project I have realized in the framework of a research project: the goal is to create automatically using a lisp, public lighting systems...
i got a function that should freeze/thaw layer status, but i want to send the layer name as an argument so i can reuse.
defun c:layFreezeTogg(layerName / l )
Why this simple command is not working?
(setq p (* (/ 1 12.0) e))
(Returns p=0.0 )
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