Print Page | Close Window

Fields and Conversion Factors

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12075
Printed Date: 13.Jun.2026 at 05:54


Topic: Fields and Conversion Factors
Posted By: basinstreet
Subject: Fields and Conversion Factors
Date Posted: 20.Oct.2016 at 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 



Replies:
Posted By: rebellio
Date Posted: 21.Oct.2016 at 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



Posted By: basinstreet
Date Posted: 21.Oct.2016 at 11:35
Brilliant thanks. 

Will give this a go! 



Print Page | Close Window