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.
let say my Autocad Drawing has Many text in it,for example "TG,PG,NHP01-0035,CCW-125-hb1-55H, NGT-127-HB2-50P"
i want to extract only CCW-125-HB1-55H or NGT-127-HB2-50P type of text.
I've loaded my lisps through Appload command.
But some lisps didn't load in my autocad 2014.
So I'm trying to load them through ACADDOC.lsp file.
But couldn't do it. Maybe you can help...
We are trying to automate the working.
I am working now to convert from ETABS to AutoCAD.
output from Etabs is an Excel file ( attached) we want to draw lines and insert text in between 2 points...
Hello, I am trying to get a LISP reactor to work whist a function is running. So my scenario is, is that I have I have a function that draws certain things in AutoCAD. While this function is running,...
I want a command reactor to be able to activate inside a function however I am not sure if command reactors work with a user defined command or function. For an example, I want to be able to get the...
I recieve the file contain some blocks and some of them no explode .and i attach one of them in the following , are there anyway for explode this block ?:o
I've been using this lisp to fill in the attribute on agroup of blocks. We recently loaded all of our standard blocks onto a toolpalette. The problem I’m having is that the ssget seams to ignore the...
I have a couple of objects connected to each other through their object handels put into their respecting Xdatas. If I copy 'n paste them into a new drawing all handels are updated (as is...
I would like to change the following routine to place MText rather than the current Text entity. I have found a few pointers but the subtleties elude me. It seems as thought there are quite a...
Is there a way to keep my groups as it is
When it copy and paste to another drawing.
What's the problem in my code, i wanna to copy object with displacement 100
(command "copy" "d" "100")
Indeed when i run the command lisp select objects and copy in certain displacement
I'm not getting the expected result for rtos. It is removing trailing zeros even if I "force" a precision???
(rtos 380.00 2 2) returns "380" not "380.00". I'm thinking it must be a system variable?
Ive enter the world of Autolisp trigonometry world, for this I had the clean the dust of my elementary notebooks as well
I found out that sin() cons() and atan() wont output the inverted values,...
i'm trying to get the color of selected text...now,it's easy if the text isn't in ByLayer color but if it is then how to get it...
i tried with this but get bad argument type error :
Hi I hope someone can help me here.
I have a drawing with 300 or so blocks most of which have some sort of hatching.
Does someone know of or could someone write a lisp routine that would select...
Is there any lisp to remove the duplicate 3d polylines, I tried overkill doesn't work.
hi we not really use it, just for fun :)
unless you restrict by inserting block or XREF
(hp:saveAs* (getvar "dwgname") "HP123"); with password
(hp:saveAs* "C:/HP.dwg" nil) ; if nil is...
I know that i need to invoke transparency for this to work but here is what I need to do.
(setq lv (getstring "\nReplacement Character: ")
ss (ssget '((cons 1 lv)))...
First thank you for the great work you do.
I want to ask if you can help me with two changes to your routines CountAttributeValues that can only add the tags MAT-1, MAT-2 and MAT-3 and has the...
I am looking to array a given block to fill a 2-D polyline rooftop outline. For some colour, I work in the solar panel industry and would like to make it easier instead of having to array...
I start learning trigo,
My program should do a simple thing,
User press p1, than p2 (vertically up to down)
A line will be drawn , composing segment a
User press p3(horizontally, forming...
I'm looking for code that runs data extraction to predetermined selections without all of the prompting windows.
The procedure would be as follows:
1. prompt user for selection of objects
Please see my post below
thanks in advance
I am trying to Check in a Autocad drawing into the vault 2013v(Basic) using Visual lisp or Visual basic. I can't find any clues how to get connected to the Vault.
Has somebody some experience using...
Hello all, got a little text style problem over here
I am trying to tackle the problem of making a searchable PDF from a drawing with simplex font. From what I have read that...
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