CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 9050
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage 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.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedMy New Topic

 Post Reply Post Reply
Author
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post 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>>

Back to Top
thinker View Drop Down
Groupie
Groupie


Joined: 08.Jun.2013
Location: United Arab Emirates
Using: AutoCAD2020
Status: Offline
Points: 35
Direct Link To This Post 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.

Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post 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>>

Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 629
Direct Link To This Post 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
Back to Top
gugamg View Drop Down
Newbie
Newbie


Joined: 08.Sep.2014
Location: Brazil
Using: Autocad 2014
Status: Offline
Points: 4
Direct Link To This Post 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.
Back to Top
Ejas View Drop Down
Groupie
Groupie


Joined: 10.Apr.2013
Location: Fiji
Using: autocad2012, autocad 2013,vectorworks 2012
Status: Offline
Points: 33
Direct Link To This Post 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.
Back to Top
philippe JOSEPH View Drop Down
Senior Member
Senior Member


Joined: 14.Mar.2011
Location: France
Using: AutoCAD Mechanical 2017
Status: Offline
Points: 1428
Direct Link To This Post Posted: 09.Sep.2014 at 07:14
GUGAMG AND EJAS, THIS IS FOR YOU POSTING YOUR OWN NEW TOPIC :
 
 
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 09.Sep.2014 at 11:38
Originally posted by Ejas 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>>

Back to Top
Ejas View Drop Down
Groupie
Groupie


Joined: 10.Apr.2013
Location: Fiji
Using: autocad2012, autocad 2013,vectorworks 2012
Status: Offline
Points: 33
Direct Link To This Post Posted: 10.Sep.2014 at 05:58
Thanks John,
 
apologies  on my part for placing my question in the wrong place
Back to Top
gugamg View Drop Down
Newbie
Newbie


Joined: 08.Sep.2014
Location: Brazil
Using: Autocad 2014
Status: Offline
Points: 4
Direct Link To This Post Posted: 10.Sep.2014 at 13:37
Thank you philippe, just made a new topic for my question
Sorry for posting on the wrong place
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,391 seconds.