Display full version of the post: My New Topic

John Connor
05.09.2014, 15:45
Ask your question here.  Provide as much detail as possible.  Do not make us have to play 20 questions. 
John Connor2014-09-05 23:14:10

thinker
08.09.2014, 10:13
Thank you in advanceI 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.uploads/381267/mMath.lsp

John Connor
08.09.2014, 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.

Kent Cooper
08.09.2014, 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.Kent Cooper2014-09-08 20:52:26

gugamg
08.09.2014, 22:48
I'm sorry if I'm posting this question on the wrong place, it's my first one on the forum :PI 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
09.09.2014, 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
09.09.2014, 07:14
GUGAMG AND EJAS, THIS IS FOR YOU POSTING YOUR OWN NEW TOPIC :
 
 

John Connor
09.09.2014, 11:38
[QUOTE=Ejas]
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.[/QUOTE]EATTEXTUsed to export block attribute information to a table or an external file.  Its use is explained in your AutoCAD Help file.

Ejas
10.09.2014, 05:58

Thanks John, apologies  on my part for placing my question in the wrong place

gugamg
10.09.2014, 13:37
Thank you philippe, just made a new topic for my questionSorry for posting on the wrong place