CAD Forum ► EN ► AutoCAD ► Fields and Conversion Factors
Display full version of the post: Fields and Conversion Factors
basinstreet
20.10.2016, 16:06
Hello all. I am working on a masterplan and experimenting with areas and massing. I am using fields to show the sqm of various parcels and I am using a conversion factor to display the units from mmsquared into m2. I am also altering the precision of the units to 0 decimal places. Is there a way that I can quickly repeat the field function, without having to change my precision and conversion units each time? The field - object - area command is very quick but it is quite laborious to make the aforementioned alterations each time for lots of parcels. I swear I used to know how to do this, but I cant remember what it was that you have to do. Matching properties only matches the style of the font, and doesnt amend my units for me. I am using LT so cannot use any lisp routines, but I am pretty sure I didnt have to before. Is this possible?Thanks for your time
rebellio
21.10.2016, 10:47
To solve this, you need to add some code to
acfields.fdc.
Make a back up of this file ;-)
First, close
Autocad completely.
This file can
be found at (windows 7) C:\Users\xxx\AppData\Roaming\Autodesk\AutoCAD
yyy\R19\enu\Support
You'll have to
open it with notepad and search for the following code:
<FormatType
name="Area">
<Formats>
<Format>
<DisplayName
resource="471" src="AcFieldRes.dll"/>
<FormatString/>
After the
second line <Formats> you have to copy-paste the following text:
<Format>
<DisplayName>Square
meters</DisplayName>
<FormatString>%lu2%pr0%ps[,m2]%ct8[0.001]</FormatString>
</Format>
Open Autocad again.
Now command field --> Object (field category)
--> select object --> format square meters --> OK and place the field
Good luck
Credits also to Jan vanderborght
Regards
basinstreet
21.10.2016, 11:35
Brilliant thanks. Will give this a go!