Lisp to generate coordinates in this way (2024)

Visual LISP, AutoLISP and General Customization

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Showonly | Search instead for

Did you mean:

Lisp to generate coordinates in this way

6 REPLIES 6

SOLVED

Back to AutoCAD Customization Category

Back to Topic Listing

Reply

Topic Options

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Printer Friendly Page
  • Back to Topic Listing
  • Previous
  • Next

Message 1 of 7

Lisp to generate coordinates in this way (1)

Anonymous

3881 Views, 6 Replies

‎11-05-201710:11 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201710:11 AM

Lisp to generate coordinates in this way

Lisp to generate coordinates in this way (2)
I need a routine that will generate the coordinates in AutoCAD in the way shown in the image,Thank you in advance for helping me.

Solved!Go to Solution.

Solved by Michiel.Valcke. Go to Solution.

Solved by hanslammerts. Go to Solution.

Solved by imadHabash. Go to Solution.

Report

0Likes

Reply

  • Back to Topic Listing
  • Previous
  • Next

6 REPLIES 6

Lisp to generate coordinates in this way (3)

Lisp to generate coordinates in this way (4)imadHabash

in reply to:Anonymous

‎11-05-201712:27 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201712:27 PM

HI,

There is NO need for a lisp , you can prepare it and use it from TextFIELD command . follow this tutorial link to learn how to prepare it. >> Click <<

Regards,

Imad Habash

Lisp to generate coordinates in this way (5)

Report

1Like

Reply

Message 3 of 7

Lisp to generate coordinates in this way (6)

Lisp to generate coordinates in this way (7)hanslammerts

in reply to:imadHabash

‎11-05-201702:08 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201702:08 PM

A field is the best way!

I used to to this with some code too, .. earlier.. 😛

;**************************************************************; ************************************************; functions to PLACE coordinat layer in X_crd...(DEFUN c:cdr_old () (setq oldcolorline (getvar "DIMCLRD")) (setvar "DIMCLRD" 1) (setq txttekst (getvar "users2")) (command "Mtext" "@" "@" " " "") (command "erase" "last" "") (setq getsize (getvar "textsize")) (setq str_getsize (rtos getsize 2 1)) (setq txttekst_text (strcat txttekst "" )) ; or (strcat txttekst "_" str_getsize) (setq searchlayer (tblsearch "layer" txttekst_text)) (setq setcolor "7") (COMMAND "UCSICON" "ON") (SETVAR "CMDECHO" 0) (SETQ CDS (GETVAR "DIMSTYLE")) (prompt (strcat "\nDimstyle " CDS " is current.")) (WHILE (setq PUNT (getpoint "\nSelect point, <Return> to end ...")) (setq wcsPUNT (trans PUNT 1 0)) (if (= searchlayer nil) (progn (setq orlayer (getvar "clayer")) (setq searchlayer3 (tblsearch "layer" "X_crd_")) (if (= searchlayer3 nil) (progn (command "-layer" "m" "X_crd_" "") )(command "-layer" "t" "X_crd_" "s" "X_crd_" "c" "7" "" "")) (predef_layer_style_coor) (command "-layer" "n" txttekst_text "c" setcolor "" "") ) (progn (setq orlayer (getvar "clayer")) (setq searchlayer3 (tblsearch "layer" "X_crd_")) (if (= searchlayer3 nil) (progn (command "-layer" "m" "X_crd_" "") )(command "-layer" "t" "X_crd_" "s" "X_crd_" "c" "7" "" "")) (predef_layer_style_coor) (command "-layer" "s" txttekst "c" setcolor "" ""); cahnge layer gebruiken ) ); end of if layers maken set layer (command "-layer" "s" txttekst_text ""); change layer gebruiken ;(command "ucs" "WORLD") (setq getm_of_mm (getvar "insunits")) ; 4 voor mm, 6 voor m (if (= getm_of_mm 4) (SETQ XPUNT (/ (CAR wcsPUNT) 1000)) ()) (if (= getm_of_mm 4) (SETQ YPUNT (/ (CADR wcsPUNT) 1000)) ()) (if (= getm_of_mm 4) (SETQ ZPUNT (/ (CADDR wcsPUNT) 1000)) ()) ;CODE VOOR Z (if (= getm_of_mm 6) (SETQ XPUNT (/ (CAR wcsPUNT) 1)) ()) (if (= getm_of_mm 6) (SETQ YPUNT (/ (CADR wcsPUNT) 1)) ()) (if (= getm_of_mm 6) (SETQ ZPUNT (/ (CADDR wcsPUNT) 1)) ()) ;(command "ucs" "VIEW") (setq var (* 10 (/ 1 (getvar "cannoscalevalue"))) PLAATS (getpoint (strcat "\nENTER for @" (rtos var 2 (if (= var (fix var)) 0 3)) "<30\): "))) (SETQ PUNTUCS (TRANS PUNT 0 1)) (if (= getm_of_mm 4) (SETQ XTEKST (STRCAT "X = " (RTOS XPUNT 2 3))) ()) (if (= getm_of_mm 4) (SETQ YTEKST (STRCAT "Y = " (RTOS YPUNT 2 3))) ()) (if (= getm_of_mm 4) (SETQ ZTEKST (STRCAT "Z = " (RTOS ZPUNT 2 3))) ()) (if (= getm_of_mm 6) (SETQ XTEKST (STRCAT "X = " (RTOS XPUNT 2 2))) ()) (if (= getm_of_mm 6) (SETQ YTEKST (STRCAT "Y = " (RTOS YPUNT 2 2))) ()) (if (= getm_of_mm 6) (SETQ ZTEKST (STRCAT "Z = " (RTOS ZPUNT 2 2))) ()) (if (not PLAATS) (setq PLAATS (polar PUNTUCS (/ pi 6) var))) (setvar "DIMCLRD" oldcolorline) (setq oldmode (getvar "osmode")) (setvar "osmode" 0) (COMMAND "LEADER" PUNT PLAATS "" XTEKST YTEKST "") (setvar "osmode" oldmode) (command "-layer" "s" orlayer "") ; change layer gebruiken ;(command "change" "last" "" "p" "la" txttekst "") ; change layer gebuiken ; (SETQ STOP (GETREAL "\nESC om te stoppen.. ")) ;(command "ucs" "view") ) (PRINT))

Report

0Likes

Reply

Message 4 of 7

Lisp to generate coordinates in this way (8)

Lisp to generate coordinates in this way (9)Kent1Cooper

in reply to:Anonymous

‎11-05-201707:29 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201707:29 PM

I would guess that a little Searching in this Forum and especially the Customization Forum would find something that will do that, or very close to it.

Kent Cooper, AIA Lisp to generate coordinates in this way (10)

Report

0Likes

Reply

Message 5 of 7

Lisp to generate coordinates in this way (11)

Lisp to generate coordinates in this way (12)-FDC-

in reply to:imadHabash

‎11-05-201709:11 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201709:11 PM

A block with field attributes is indeed the best way to do it.

But is there a way to create a "dynamic" border around the text?

Report

0Likes

Reply

Message 6 of 7

Lisp to generate coordinates in this way (13)

Lisp to generate coordinates in this way (14)imadHabash

in reply to:-FDC-

‎11-05-201710:05 PM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-05-201710:05 PM

Hi,

>>A block with field attributes is indeed the best way to do it. <<

Yes that's right and that what i mean it with text FIELD . this is text option that you can then convert it to attributes to get what you need and this is clear in the link that i post it.

>>But is there a way to create a "dynamic" border around the text? <<

by using a lisp you can do it. attached lisp file Create associative textbox .

Regards,

Imad Habash

Lisp to generate coordinates in this way (15)

AssociativeTextboxV1-2.lsp

Report

1Like

Reply

Message 7 of 7

Lisp to generate coordinates in this way (16)

Lisp to generate coordinates in this way (17)Michiel.Valcke

in reply to:imadHabash

‎11-06-201712:46 AM

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report

‎11-06-201712:46 AM

If you use a MLEADER as the basis for your block you can set a text frame in the properties. (see screenshot)

You can also set a background mask (and even give it a color) if you should be interested in that.

No need for a .lsp

Lisp to generate coordinates in this way (18)

Report

1Like

Reply

Lisp to generate coordinates in this way (19)

Lisp to generate coordinates in this way (20)

Reply

Topic Options

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Printer Friendly Page
  • Back to Topic Listing
  • Previous
  • Next
Lisp to generate coordinates in this way (2024)

FAQs

How to use LISP routine in AutoCAD? ›

Load and run basic LISP (or "AutoLISP") routines. Click the LISP tab on the left sidebar, then click Manage LISP to access the Support Files manager and upload LISP files. Load LISP routines into the drawing, and choose which LISP routines should run at startup, meaning every time you open a drawing.

How to create an AutoCAD LISP file? ›

Create a new source code file
  1. At the AutoCAD Command prompt, enter vlide.
  2. In Visual LISP, click File New File.
  3. Click File Save As.
  4. In the Save-as dialog box, click the Save As Type drop-down list and select Lisp Source Files.
  5. Specify a location for the LSP file and enter a name in the File Name box. Click Save.

How to edit LISP file in AutoCAD? ›

To open the VLISP window, from the AutoCAD window, in the 'Tools' menu, select 'AutoLISP' and then select the 'Visual LISP Editor. ' In the VLISP window that opens, you can type your LISP program in the console window. You can also launch the VLISP text editor by selecting 'File', then 'New.

How do I run a LISP code? ›

Step 1: After logging into a CUIT machine, enter "lisp" after the $ shell prompt and then hit <return>. Another way is to run lisp via emacs: Meta-x run-lisp (i.e. hit 'esc' followed by 'x', type "run-lisp" and you'll be in lisp mode from which you can load files of lisp code...)

What is the alternative to AutoCAD with LISP? ›

BricsCAD has full command, script, macro, and menu compatibility with AutoCAD® 2022. Move to BricsCAD, and your current menus, scripts and LISP routines will run directly with zero changes.

Why does AutoCAD use LISP? ›

AutoLISP is based on the LISP programming language, which is simple to learn and powerful for automating design tasks. No specialized programming tool or editor is required to create or modify AutoLISP programs. An AutoLISP program can: Access built-in AutoCAD commands and system variables directly.

What language is AutoCAD LISP written in? ›

AutoLISP is based on the LISP (LISt Processing) programming language. A list is a structure enclosed by parentheses. The elements in a list can be one or more of the following: A function such as a programming operation, mathematical function, or a list manipulation operation.

How do I use Visual LISP in AutoCAD? ›

At the AutoCAD Command prompt, enter vlisp to start Visual LISP. Switch back to the AutoCAD window (either select AutoCAD from the taskbar or press Alt+Tab and choose AutoCAD), and enter gpath at the AutoCAD Command prompt. Before responding to the prompts from gpath , switch back to the Visual LISP window.

Where are AutoCAD LISP files stored? ›

An AutoLISP project is saved to a file with the . prj extension. PRJ files contain references to LSP files that are already stored in a local or network folder, or a folder that represents a git repository.

How do you convert a circle to a polyline in AutoCAD LISP? ›

you can use QSELECT first and isolate the circles first then you can use the command C2P and select all the circles. Thats it.

What is an example of AutoLISP? ›

In AutoLisp, that point can be described by a single variable, a list of two elements, the first being the X value and the second being the Y value eg: ( 7 10 ). The following are also examples of lists: ( 5 9 7 2 ) and ( 1.5 2.3 4.9 ).

How do I turn off LISP in AutoCAD? ›

Solution: Disabling all scripting in AutoCAD is done by typing SAFEMODE on the command line and setting it to 1.

Can you add LISP to AutoCAD LT? ›

One of the most important differentiators between AutoCAD and AutoCAD LT is the fact that AutoCAD LT users can now use AutoLISP code.

How do I open Visual LISP in AutoCAD? ›

If you are in AutoCAD and want to return to the Visual LISP environment, you can click its icon on the Windows task bar, or enter vlisp at the Command prompt or click Manage tab Applications panel Visual LISP Editor.

How do I get commands in AutoCAD? ›

Use the shortcut Ctrl+9 (CMD+3 in AutoCAD for Mac) to toggle on the command line. Type in the COMMANDLINE command. It may be necessary to enable Dynamic Input to do this see How to enable or disable dynamic input in AutoCAD: Right-click on either Dynamic input or Object Snap in the Status Bar and select Settings.

How to save a LISP file? ›

Save a project file with a new name
  1. In Visual LISP, in the Project window, right-click and click Save Project As.
  2. In the Save Project As dialog box, specify a new name and location for the project. Click Save.

Top Articles
German Beef Rouladen: an Authentic Traditional Recipe (with pickles)
17 Swiss Chard Recipes That Showcase the Versatility of This Healthy Green
Average Jonas Wife
Using GPT for translation: How to get the best outcomes
The UPS Store | Ship & Print Here > 400 West Broadway
Encore Atlanta Cheer Competition
Umn Pay Calendar
Crime Scene Photos West Memphis Three
Fcs Teamehub
W303 Tarkov
R/Altfeet
Sports Clips Plant City
Best Fare Finder Avanti
Beau John Maloney Houston Tx
Radio Aleluya Dialogo Pastoral
Accuradio Unblocked
Mills and Main Street Tour
Urban Dictionary: hungolomghononoloughongous
Craigslistjaxfl
Vigoro Mulch Safe For Dogs
Accident On The 210 Freeway Today
Menards Eau Claire Weekly Ad
Gina Wilson All Things Algebra Unit 2 Homework 8
Tripadvisor Napa Restaurants
Construction Management Jumpstart 3Rd Edition Pdf Free Download
Sister Souljah Net Worth
Jcp Meevo Com
Kroger Feed Login
Jailfunds Send Message
Dell 22 FHD-Computermonitor – E2222H | Dell Deutschland
Gopher Carts Pensacola Beach
Lilpeachbutt69 Stephanie Chavez
Federal Express Drop Off Center Near Me
Hannah Jewell
Craigslist/Phx
Armor Crushing Weapon Crossword Clue
Shnvme Com
Seymour Johnson AFB | MilitaryINSTALLATIONS
Nacho Libre Baptized Gif
Final Fantasy 7 Remake Nexus
Armageddon Time Showtimes Near Cmx Daytona 12
Silive Obituary
Home Auctions - Real Estate Auctions
Watch Chainsaw Man English Sub/Dub online Free on HiAnime.to
Florida Lottery Powerball Double Play
Matt Brickman Wikipedia
The Bold and the Beautiful
About us | DELTA Fiber
Goosetown Communications Guilford Ct
Wwba Baseball
La Fitness Oxford Valley Class Schedule
Bellin Employee Portal
Latest Posts
Article information

Author: Rueben Jacobs

Last Updated:

Views: 5621

Rating: 4.7 / 5 (77 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rueben Jacobs

Birthday: 1999-03-14

Address: 951 Caterina Walk, Schambergerside, CA 67667-0896

Phone: +6881806848632

Job: Internal Education Planner

Hobby: Candle making, Cabaret, Poi, Gambling, Rock climbing, Wood carving, Computer programming

Introduction: My name is Rueben Jacobs, I am a cooperative, beautiful, kind, comfortable, glamorous, open, magnificent person who loves writing and wants to share my knowledge and understanding with you.