AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Expression help for map annotation template

9 REPLIES 9
Reply
Message 1 of 10
jrcolson
577 Views, 9 Replies

Expression help for map annotation template

I have created a annotation template using the area of a polyline ".area" however I would like to convert this area from square feet to acres. I tried(.area/43560)but this expression doesn't work. Any ideas on what to try would be appreciated.
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: jrcolson

If it's in a metric coordinate system then you need to convert sq meters to sq feet. Here's mine ((Area2D ( Geometry )) * 10.7639104 ) / 43560. 1 sq meter = 10.7639104 sq feet. Hope that helps.
Message 3 of 10
Anonymous
in reply to: jrcolson

Try this
(RTOS ( / .AREA 43560) 2 2)
It will use 2 decimal places in it, if you need only one or none change the
last "2" to 1 or 0.

--
Murph
www.map3d.wordpress.com


"jr2044" wrote in message news:6019493@discussion.autodesk.com...
I have created a annotation template using the area of a polyline ".area"
however I would like to convert this area from square feet to acres. I
tried(.area/43560)but this expression doesn't work. Any ideas on what to
try would be appreciated.
Message 4 of 10
JohnPM
in reply to: jrcolson

Murph, How would you do this if you wanted to go a step further and use attributes from a linked external table. What is the lisp expression.

Thanks

John
Message 5 of 10
Anonymous
in reply to: jrcolson

Depends on what the data type (field type) is in the DB.
the expression &Area@Parcel will return the whole value from a database link
called Parcel for the field named Area (provided there's a field named Area
in the DB) As for dropping or changing the precision you would have to
either use an SQL statement in the expression or do that in the DB ahead of
time. The RTOS or STRCAT lisp functions do not work in this.

--
Murph
www.map3d.wordpress.com


"JohnPM" wrote in message news:6019788@discussion.autodesk.com...
Murph, How would you do this if you wanted to go a step further and use
attributes from a linked external table. What is the lisp expression.

Thanks

John
Message 6 of 10
jrcolson
in reply to: jrcolson

This expression worked great thanks for the help!!
Message 7 of 10
Anonymous
in reply to: jrcolson

You're welcome.

--
Murph
www.map3d.wordpress.com


"jr2044" wrote in message news:6019904@discussion.autodesk.com...
This expression worked great thanks for the help!!
Message 8 of 10
JohnPM
in reply to: jrcolson

Thanks Murph, that should get some results.

John
Message 9 of 10
randyspear6624
in reply to: Anonymous

how would i add a prefix and suffix to this expression?

 

Is this something a fluent map 3d user should know? I use it quite a bit for basic tasks. I went through all the tutorials but never learned to manipulate expressions like this (ie; i have no idea what "rtos" means). Is there a guide to expressions somewhere? 

Message 10 of 10
Murph_Map
in reply to: randyspear6624

Randy, there is a short limited guide to expressions. RTOS is a lisp function the stands for Real To String. To add a prefix and/or suffix you would use STRCAT. 

Since the help is on line now there's no easy way, that I found, to look up expression or lisp functions. 

Murph
Supporting the troops daily.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost