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: 9255
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 ClosedFields and Conversion Factors

 Post Reply Post Reply
Author
basinstreet View Drop Down
Newbie
Newbie


Joined: 20.Jan.2015
Location: United Kingdom
Using: Autocad 2015
Status: Offline
Points: 3
Direct Link To This Post Topic: Fields and Conversion Factors
    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 
Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post 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

Back to Top
basinstreet View Drop Down
Newbie
Newbie


Joined: 20.Jan.2015
Location: United Kingdom
Using: Autocad 2015
Status: Offline
Points: 3
Direct Link To This Post Posted: 21.Oct.2016 at 11:35
Brilliant thanks. 

Will give this a go! 
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,395 seconds.