CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
Author |
Topic Search Topic Options
|
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Topic: My New Topic Posted: 05.Sep.2014 at 15:45 |
Ask your question here. Provide as much detail as possible. Do not make us have to play 20 questions.
Edited by John Connor - 05.Sep.2014 at 23:14
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
|
thinker
Groupie
Joined: 08.Jun.2013
Location: United Arab Emirates
Using: AutoCAD2020
Status: Offline
Points: 35
|
Posted: 08.Sep.2014 at 10:13 |
Thank you in advance I have a lisp for basic calculation but it works only for integers, if any other lisp is available please provide it, i need that the answer should get by replacing of existing text or mtext.
Regards.
|
|
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 08.Sep.2014 at 11:29 |
There are lisp routines that will perform mathematical calculations using numbers entered as text. Find such routines either at the website of Cadalyst magazine and/or over at The Swamp where many lisp gurus tend to congregate.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
|
Kent Cooper
Senior Member
Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 629
|
Posted: 08.Sep.2014 at 20:50 |
In a very quick look through that code, I would guess that if you change 'atoi to 'atof instead, it may possibly solve your problem.
Edited by Kent Cooper - 08.Sep.2014 at 20:52
|
|
gugamg
Newbie
Joined: 08.Sep.2014
Location: Brazil
Using: Autocad 2014
Status: Offline
Points: 4
|
Posted: 08.Sep.2014 at 22:48 |
I'm sorry if I'm posting this question on the wrong place, it's my first one on the forum :P
I have a drawing in which there are some polylines/objects drawn (usually rectangles) with some text next to them. I'm using a lisp to get their x and y coordinates to excel, but my problem is that I have to associate them to the text somehow.
Just so you'll understand, I'm doing this because I'm trying to automatize my project drawings, in which I have to paste blocks to the center of each of these rectangles. I’ll use excel to build the command lines for a script with the block name and x,y coordinates, and the script will paste the blocks on these coordinates provided by the lisp. But without the text there’s no reference of which block belongs to which line on excel.
I have a simple drawing to illustrate it, along with the lisps and script I'm using. If anybody could help me I would really appreciate it, since these projects can sometimes add up to more than a 100 rectangles. If you have any other solutions I’ll be happy to try them.
Thank you very much
PS: I don't know how to attach the files, but I can email them if they'll help.
|
|
Ejas
Groupie
Joined: 10.Apr.2013
Location: Fiji
Using: autocad2012, autocad 2013,vectorworks 2012
Status: Offline
Points: 33
|
Posted: 09.Sep.2014 at 01:44 |
One question over here: I came across the command "eattext" in school. can you explain what is this command is for? and where is this best used. thanks.
|
|
philippe JOSEPH
Senior Member
Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1428
|
Posted: 09.Sep.2014 at 07:14 |
GUGAMG AND EJAS, THIS IS FOR YOU POSTING YOUR OWN NEW TOPIC :
|
|
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 09.Sep.2014 at 11:38 |
Ejas wrote:
One question over here: I came across the command "eattext" in school. can you explain what is this command is for? and where is this best used. thanks. |
EATTEXT Used to export block attribute information to a table or an external file. Its use is explained in your AutoCAD Help file.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
|
Ejas
Groupie
Joined: 10.Apr.2013
Location: Fiji
Using: autocad2012, autocad 2013,vectorworks 2012
Status: Offline
Points: 33
|
Posted: 10.Sep.2014 at 05:58 |
Thanks John, apologies on my part for placing my question in the wrong place
|
|
gugamg
Newbie
Joined: 08.Sep.2014
Location: Brazil
Using: Autocad 2014
Status: Offline
Points: 4
|
Posted: 10.Sep.2014 at 13:37 |
Thank you philippe, just made a new topic for my questionSorry for posting on the wrong place
|
|