Search the Community
Showing results for tags 'autolisp'.
-
Draw a horizontal line with only midpoint and length available
Sharper posted a topic in AutoLISP, Visual LISP & DCL
Hi Guys I've searched for this assuming someone would hav already, and it seems like theres many similar but not the same. Between 20 and 100 times per day I need to draw a line, this line is always horizontal so no angle required. I would know its length (this is the 1st variable... -
import csv file into autocad using autolisp and block reference (part2)
NanGlase posted a topic in AutoLISP, Visual LISP & DCL
Please, someone help me. I thought my program was in its final stages, but it is not. I used AutoCAD 2002 and 2007 during development, but when I tried to install it in AutoCAD 2021, this happened (see the picture). It prompts as if I need to edit the attributes one by one. Also, how can I eliminate... -
Need help. how to maintain 3 decimal places even with zeros like in the picture? (defun c:nanpt () (vl-load-com) (princ "\nStakeout Point by: Nan Glase (2024-12-24)") (princ "\nEnter \"NANPT\" to run.") (setq points '()) (setq polyline nil) ; Variable to hold the polyline object ;;...
-
import csv file into autocad using autolisp and block reference
NanGlase posted a topic in AutoLISP, Visual LISP & DCL
please help me write a code. i have csv file contains point, northing, easting, elevation, description. i also have a drawing file that has attributes-point,description,elevation. this drawing file is in a support file search path. i want to make an autolisp that import csv data into autocad. The no... -
I got this code from chatgpt, that chatgpt got from a defunct post from autocad website forums. Whenever I tried going to the website or googling, the link seems broken so I don't know how this code exactly works. I am trying to make a Lisp that creates dimstyles from scratch. everything...
- 2 replies
-
- annotative dimension
- autolisp
-
(and 1 more)
Tagged with:
-
find the dimension and polyline distance using AUTOLISP
keku posted a topic in AutoLISP, Visual LISP & DCL
I'm new to Lisp and trying calculate the distance from a wall to a polygon box, as well as the distance between two polygon boxes. Additionally, I need to determine the dimensions of both the polygon box and the wall. I'm using Lee Mac's dimensioning code as a reference and trying to modify it to ac... -
It's a bit complicated for me to explain this. In this case, numbers should be selected and moved to the nearest point or vertex, and when moved, the text should not intersect any lines or polygons. Moving isn't that much of a problem, but the latter is. My idea is to create a rectangle aroun...
-
Hello, This question is in reference to AutoLisp, but the specific CAD version this is used for is MicroSurvey CAD 2020. We are running into an issue where the PRINT dialog coordinates are completely different than the real coordinates reported by AutoLISP and the objects pro...
-
Link selected object data to block attribute by selecting objects
srikanth_0126 posted a topic in AutoLISP, Visual LISP & DCL
Hi, This is my first after so many days using this site. my block have multiple attributes for different types of lengths and one(DUCT_ID) attribute for sequence. i want to link objects length to block attribute(its a field)(MICRODUCT) by using TAG(DUCT_ID). HOW IT... -
Please Help Me! Insert Multiple Block Attributes at Geometric Center
Kvlar posted a topic in AutoLISP, Visual LISP & DCL
I found autolisp code on this forum with the function of inserting multiple blocks at the center point circle. Can anyone help me to make a code like this but with function to inserting multiple blocks (Attribute Blocks) at the geometric center of a closed polyline Thank you... -
Remove a section of text in a text file from between 2 keywords with autolisp or visual lisp
Mr Bojangles posted a topic in AutoLISP, Visual LISP & DCL
Hi guys I'm not sure that this is possible but hey you guys know a hell of a lot and surprise me often. Is it possible in lisp to look inside a text file and remove some text from between 2 keywords? For example The text filename would be the same as the cad file,...- 29 replies
-
Hello everyone, can anyone help me, I have a case example that is almost similar to the actual case I am experiencing now. In the 1st picture I have a shapefile of the administrative boundaries of the United States that I have entered into autocad, the shp attribute has been entered into the data ob...
-
I have one AutoLISP to insert Dynamic Blocks containing Attributes. With this AutoLISP I can select the Value Attribute via the List DCL. I can insert Dynamic blocks wherever I want. The problem is, I want to use this AutoLISP by inserting dynamic blocks simultaneously at the midpoint of the line....
-
autolisp writes the intersecting line layer name to the center of the block
bery35 posted a topic in AutoLISP, Visual LISP & DCL
Hi, I tried to write an autolisp code and I got to a certain point, but it is not working as I wanted. I would like your suggestions and your support in revising the code. What I want to do is select a block. To find out which character (n) from the right is the "-" sign in the layer nam...-
- intersecting
- line
-
(and 2 more)
Tagged with:
-
Selecting text from a pop-up window and pasting it on the screen
bery35 posted a topic in AutoLISP, Visual LISP & DCL
Hello, I have a lisp code that I have been working on and I have brought it to a certain stage. However, I am having a problem at one point. In this lisp code, I have a product list with my purpose defined. When the code runs, my product list is listed in the pop-up window. And I choose what I wan...- 6 replies
-
- autolisp
- pop window
-
(and 1 more)
Tagged with:
-
Is there any chance of matchline automation using lisp in layout? I have attached sample dwg and screenshot of block for matchline. Please help. And thanks in advance. SRS.dwg
-
Dears, AUTOLIPS works on the english version but i want to use it on the frensh version, any kind of support Thanks
-
Hi There, I'm trying to make various custom tools that deal with clicking on bearings, but sometimes these text entities might be enclosed by brackets, and so I need to filter those out in a lot of my routines. So I figured, let's make a separate routine that I can load when called instead...
-
Can we extend inside polylines and Trim outside polylines to selected polyline boundary. See the attached Image
-
where can i find the "commands" and how it works in lisp
ASQ posted a topic in AutoLISP, Visual LISP & DCL
Hi, there, im very new working with Autolisp, in the past i copy and paste code and use the lisp. Thanks to all the people who write this lisp. Now im learning how to code with lisp, i m reading books, developers guide and this forum. I need to understand how some commands works for use it in t... -
Hello everyone, I was just wondering how you guys organize your LISP routines. I currently have a file structure that looks like this. \AutoLisp ----\lib --------\libs --------\...All My Lee-Mac files, thanks LEE :D --------\lisp-loader.lsp (basically loads all the LEE-MAC routine so that I can u...
-
Hello guys, I am working in AutoCAD. I am looking for a combined LISP code for creating points for the selected objects at its Endpoints, Midpoints, Center, Geometric center, Node, Quadrant, Intersection & Insertion as per users requirements (options with drop down list mentioning Endpoints, Mid...
-
LEGEND creation of both block and linetypes From viewport in layout
smitaranjan posted a topic in AutoLISP, Visual LISP & DCL
LEGEND.LSP Hi anyone can modify the code so it can create legends for both and linetypes with their layer name in description. It's a lee mac's program which creating legend in model space. If by touching the viewport it can make legend at layout whatever showing in the viewport it will be a gr... -
Autolisp giving error: bad argument type: "LINE" when trying to get line type
Erroreki posted a topic in AutoLISP, Visual LISP & DCL
Hi! Avid reader of the forums, first time poster. I have a code with which I'm trying to extract the x and y coordinate of the startpoint of a line to the clipboard for pasting into another program. The problem is that when I run the lisp in Civil 3D it spits out when... -
script Creation Of Single Line Drawing From Excel Data
smitaranjan posted a topic in AutoLISP, Visual LISP & DCL
to this...I have so many data and need to make this type of drawing can anyone suggest lisp or script to make the drawing possible easily...POP to POP will get connected by different GP. Thanks in advance