View Full Version : Formula using an Object's Area Field
rklee
2006-03-16, 07:46 PM
I am using a Polyline area field for showing the square footage, but I would also like to add another function tied to that field (in Mtext) that divides it by 7. Is there a way to include a field into a formula or lisp expression? Thanks for any ideas.
rkmcswain
2006-03-17, 12:09 AM
What version of AutoCAD?
Using 2006 and up, you can apply simple math to FIELD results.
http://forums.augi.com/attachment.php?attachmentid=21051&stc=1
http://forums.augi.com/attachment.php?attachmentid=21053&stc=1
[shameless plug]
BTW: this topic is covered in Segment 2 of ATP110 this month
[/shameless plug]
rklee
2006-03-17, 07:44 PM
Thank you for the information. I had to take it a bit farther in that the Field returned the area in square inches so I had to make two divisions on it. I ended up taking 1/144 and then dividing that by 7 to get the decimal reduction factor. I copied this from the calculator and pasted it into the conversion factor space. Thank you for your help in getting the cobwebs cleared.
anahmias
2006-12-11, 07:29 PM
I am using AutoCAD 2004, and I would like to create a field that converts the AREA (assumed to be Millimeters) to Meters. The resulting label will be a field displayed something like 53.25 Square Meters.
My current field expression is, for example:
%<\AcObjProp Object(%<\_ObjId 2130222152>%).Area \f "%lu6%qf1">%
This yields a field displayed something like 53249996 square millimeters
Can anyone assist with the field expression to express the area in SM?
I have reviewed a file showing field format strings, and there is an automatic conversion for feet/inches, but I need a conversion for metric...
Mike.Perry
2006-12-12, 07:54 AM
Hi
Have you browsed / reviewed the following threads...
Fields - Format area in Metres
Fields - Format area in Sq Metres
Customization of Fields - It is Possible!
Field gives me square units (meters), but I need hectare (=Sq.Meters/.0001)
Have a good one, Mike
anahmias
2006-12-12, 02:26 PM
Mike - thanks for pointing me to those threads. Some I had seen, others no, but it seems that there is still no solution for my problem since i am using AutoCAD 2005 and not 2006... If you or anyone else can help further, it will be much appreciated.
thanks!
casey2005
2007-11-22, 10:04 AM
Hiya, I'm using AutoCad 2005 and am also trying to convert the annoying 150000 to 15 (sq cm to sq m) in my field. I have understood that as of ACAD2006 you can punch in a multiplier which would make my problem inexistant, but how to do it in ACAD2005?
I've been messing with formulas to insert into mtext, but I haven't found the one that will multiply the output by 0.0001 (in my case).
Please please can anyone help?
PS I have been searching through the topics for 16 hours now!
ehabgeorge
2008-01-17, 05:44 PM
Hello,
I have a simillar problem. Is it possible to INSERT--> FORMULA-->CELL and choosing a table cell containing text?
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.